:root {
    --primary-green: #00ff88;
    --gold-yellow: #ffd700;
    --royal-blue: #4169e1;
    --dark-blue: #0a0a2a;
    --light-bg: #1a1a4a;
    --success: #00ff88;
    --warning: #ffd700;
    --error: #ff4444;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--dark-blue);
    color: var(--text-light);
    line-height: 1.6;
}

/* Common Layout Styles */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 42, 0.95);
    padding: 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.sponsor-name {
    margin-top: 5px;
    font-size: 14px;
    padding: 5px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #155724;
    margin-top: 0;
}

.credential-box {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
}

.credential-title {
    font-weight: bold;
    color: #155724;
    margin-bottom: 10px;
    font-size: 16px;
}

.credential-details {
    background: white;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}


.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.info-icon {
    font-size: 2rem;
}

.info-content h4 {
    margin: 0 0 0.5rem 0;
    color: #00ff88;
}

.info-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}




.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    background: linear-gradient(45deg, var(--primary-green), var(--gold-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.user-info, .admin-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.user-info strong, .admin-info strong {
    display: block;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.status-active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-green);
}

.status-inactive {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
}

.sidebar-menu a:hover {
    background: rgba(65, 105, 225, 0.3);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
}

.sidebar-menu a.active {
    background: rgba(65, 105, 225, 0.3);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
}

.menu-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-bg) 100%);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    color: var(--primary-green);
    margin: 0;
    font-size: 1.3rem;
}

.card-body {
    padding: 1.5rem;
}

/* Wallet Cards */
.wallet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wallet-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--royal-blue));
}

.wallet-card:hover {
    transform: translateY(-5px);
}

.wallet-card.income {
    background: linear-gradient(135deg, var(--primary-green), #00cc6a);
}

.wallet-card.capital {
    background: linear-gradient(135deg, var(--royal-blue), #2a2a6a);
}

.wallet-card.info {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.wallet-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.wallet-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: white;
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-green), var(--royal-blue));
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: var(--primary-green);
    color: var(--dark-blue);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: var(--dark-blue);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-green);
    border-color: rgba(0, 255, 136, 0.3);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error);
    border-color: rgba(255, 68, 68, 0.3);
}

.alert-warning {
    background: rgba(255, 215, 0, 0.1);
    color: var(--warning);
    border-color: rgba(255, 215, 0, 0.3);
}

.alert-info {
    background: rgba(65, 105, 225, 0.1);
    color: var(--royal-blue);
    border-color: rgba(65, 105, 225, 0.3);
}

/* Tables */
.table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    text-align: left;
    color: var(--primary-green);
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-green);
}

.badge-warning {
    background: rgba(255, 215, 0, 0.2);
    color: var(--warning);
}

.badge-danger {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.badge-info {
    background: rgba(65, 105, 225, 0.2);
    color: var(--royal-blue);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-green);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Referral Link */
.referral-link {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.referral-link input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.activity-icon {
    font-size: 1.2rem;
    color: var(--primary-green);
}

.activity-content p {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.activity-content small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Training List */
.training-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.training-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.training-date {
    background: var(--royal-blue);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
}

.training-date strong {
    display: block;
    font-size: 0.9rem;
}

.training-details {
    flex: 1;
}

.training-details strong {
    display: block;
    margin-bottom: 0.25rem;
}

.training-details small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Income Types */
.income-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.income-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.income-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-green);
}

.income-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.income-icon {
    font-size: 2rem;
    color: var(--primary-green);
}

.income-title h4 {
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.income-title small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.income-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 1rem 0;
}

.income-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Login Page */
.login-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem auto;
}

.logo {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-green), var(--gold-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.tagline {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.demo-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-title {
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.credential-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.credential-title {
    color: var(--gold-yellow);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.credential-details {
    font-size: 0.9rem;
    line-height: 1.4;
}

.links {
    text-align: center;
    margin-top: 1.5rem;
}

.links a {
    color: var(--primary-green);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.links a:hover {
    color: var(--gold-yellow);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .wallet-cards, .stats-grid, .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .referral-link {
        flex-direction: column;
    }
}