/* ========== MODERN DESIGN SYSTEM ========== */
:root {
    /* Orange Fire Theme */
    --primary: #ff4d00;
    --primary-dark: #cc3d00;
    --primary-light: #ff7a33;
    --secondary: #ffa500;
    --accent: #ffcc00;
    
    /* Status Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Neutrals */
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.9);
    --bg-glass: rgba(30, 30, 30, 0.85);
    --border: rgba(255, 77, 0, 0.2);
    --text: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 77, 0, 0.3);
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== VIDEO BACKGROUND ========== */
#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.4);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(20, 20, 20, 0.9) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
    z-index: -1;
}

/* ========== MODERN HEADER ========== */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text);
}

.logo-text .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 77, 0, 0.1);
    border-color: var(--border);
}

.nav-link.active {
    color: var(--text);
    background: rgba(255, 77, 0, 0.15);
    border-color: var(--primary);
}

.nav-link.logout {
    color: var(--danger);
}

.nav-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

/* ========== DASHBOARD CONTAINER ========== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========== HERO SECTION ========== */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

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

/* Card Variants */
.primary-card {
    border-color: rgba(255, 77, 0, 0.3);
}

.primary-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.2);
}

.success-card {
    border-color: rgba(16, 185, 129, 0.3);
}

.success-card:hover {
    border-color: var(--success);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.danger-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.danger-card:hover {
    border-color: var(--danger);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

.info-card {
    border-color: rgba(59, 130, 246, 0.3);
}

.info-card:hover {
    border-color: var(--info);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

/* ========== REVENUE BREAKDOWN ========== */
.revenue-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.breakdown-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease both;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Chart Bars */
.chart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    height: 50px;
}

.bar-segment {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transition: width 1s ease;
    position: relative;
}

.bar-label {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.paid-segment {
    background: linear-gradient(90deg, var(--success), #14b8a6);
    color: white;
}

.unpaid-segment {
    background: linear-gradient(90deg, var(--danger), #dc2626);
    color: white;
}

.active-segment {
    background: linear-gradient(90deg, var(--info), #2563eb);
    color: white;
}

/* Today's Stats */
.highlight-card {
    background: linear-gradient(135deg, rgba(255, 77, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-color: var(--primary);
}

.today-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.today-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.today-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.today-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.today-value.amount {
    color: var(--success);
}

.divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

/* Distribution Grid */
.distribution-grid {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
}

.dist-item {
    text-align: center;
}

.dist-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    margin: 0 auto 0.75rem;
    border: 3px solid;
}

.total-circle {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
}

.active-circle {
    background: linear-gradient(135deg, var(--info), #2563eb);
    border-color: var(--info);
    color: white;
}

.expired-circle {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    border-color: var(--danger);
    color: white;
}

.dist-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
    animation: fadeInUp 1s ease both;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.action-btn {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    font-size: 2rem;
    line-height: 1;
}

.action-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* ========== OLD STYLES (Keep for other pages) ========== */
header {
    width: 100%;
    padding: 16px;
    text-align: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-center {
    min-height: calc(100vh - 64px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 950px;
    padding: 30px;
    border-radius: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.form-title {
    font-size: 26px;
    margin-bottom: 6px;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: var(--primary-dark);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.members-table thead {
    background: rgba(255,60,0,0.15);
}

.members-table th {
    padding: 12px 10px;
    text-align: left;
    color: #ff9a3c;
    font-weight: 600;
}

.members-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #eee;
}

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

.members-table tr.overdue {
    background: rgba(255,0,0,0.25);
}

.members-table tr.paid {
    background: rgba(0,255,0,0.15);
    opacity: 0.6;
}

.sent-label {
    color: #22c55e;
    font-weight: 600;
}

.days-left-label {
    color: #facc15;
    font-weight: 600;
}

.overdue-label {
    color: #ef4444;
    font-weight: 600;
}

.paid-label {
    color: #22c55e;
    font-weight: 600;
}

.action {
    text-align: center;
}

.action a {
    font-size: 18px;
    text-decoration: none;
    margin: 0 6px;
    transition: transform 0.2s ease;
}

.action a:hover {
    transform: scale(1.3);
}

.members-table input[type="file"] {
    background: #111;
    border: 1px solid #333;
    padding: 6px;
    font-size: 12px;
    border-radius: 6px;
    color: #ccc;
}

.members-table form button {
    padding: 6px;
    font-size: 12px;
    border-radius: 6px;
}

.upload-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.dashboard-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.dashboard-buttons button {
    flex: 1;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .revenue-breakdown {
        grid-template-columns: 1fr;
    }
    
    .today-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .divider {
        width: 100%;
        height: 1px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== HIDE AUDIO ========== */
audio {
    display: none;
}
