/* Main Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Server Cards */
.server-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.server-card .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

.server-card .card-body {
    padding: 1.5rem;
}

.server-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.server-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 100%;
}

.server-card .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.server-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.server-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.server-specs li:last-child {
    border-bottom: none;
}

.server-specs i {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

/* Forms */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
}

.form-label {
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Dashboard */
.dashboard-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: 100%;
}

.dashboard-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
}

.balance-card h3 {
    color: white;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Stats */
.stat-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.referral-code {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    margin: 1rem 0;
    text-align: center;
}

.referral-link {
    word-break: break-all;
}

.copy-btn {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Admin Panel */
.admin-sidebar {
    background-color: var(--secondary-color);
    color: white;
    min-height: calc(100vh - 56px);
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-left: 0.5rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 1.5rem;
}

.admin-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Rewards System */
.points-display {
    text-align: center;
    margin: 20px 0;
}

.points-amount {
    font-size: 48px;
    font-weight: bold;
    color: #28a745;
}

.points-label {
    font-size: 18px;
    color: #6c757d;
}

.level-info {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.level-label {
    font-weight: bold;
    margin-right: 10px;
}

.level-value {
    font-size: 18px;
    color: #007bff;
}

.points-info {
    list-style-type: none;
    padding-left: 0;
}

.points-info li {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.level-progress {
    margin: 20px 0;
}

/* Price Summary */
.price-summary {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.price-summary h5 {
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.price-summary .d-flex {
    margin-bottom: 5px;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}
