/* dashboard.css - Premium Dashboard Styles */

.dashboard-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(rgba(11, 14, 20, 0.85), rgba(11, 14, 20, 0.95)),
        url('../assets/efootball_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
}

.dashboard-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ============================== SIDEBAR ============================== */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    z-index: 10;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header h2 {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin: 0;
}

.logo-icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-item:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
    color: white;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 15px var(--glow-primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 0 1rem;
}

/* ============================== MAIN CONTENT ============================== */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(88, 166, 255, 0.04), transparent 60%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.dashboard-main::-webkit-scrollbar {
    width: 6px;
}

.dashboard-main::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    width: 320px;
    gap: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.search-bar input {
    background: none;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-bar svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.avatar svg {
    width: 20px;
    height: 20px;
}

.dashboard-content {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================== GLASS PANELS ============================== */
.glass-panel {
    background: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================== WELCOME BANNER ============================== */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.12) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-left: 4px solid var(--accent);
    padding: 2rem;
}

.banner-text h1 {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 3rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    line-height: 1;
}

.banner-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    max-width: 560px;
}

.banner-icon {
    width: 120px;
    height: 120px;
    color: var(--primary);
    opacity: 0.15;
}

.banner-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================== STATS GRID ============================== */
.stats-grid,
.stats-grid-4 {
    display: grid;
    gap: 1.5rem;
}

.stats-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.stat-icon.pink {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

.stat-icon.blue {
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
}

.stat-icon.gold {
    background: linear-gradient(135deg, var(--gold), #b45309);
}

.stat-info h3 {
    margin: 0 0 0.3rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-value {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

/* ============================== TABLES ============================== */
.recent-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.recent-section h2 {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

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

.dashboard-table th {
    text-align: start;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--glass-border);
}

.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-table tbody tr {
    transition: background 0.2s ease;
}

.dashboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.row-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 0.4rem;
    color: var(--primary);
}

/* ============================== BADGES ============================== */
.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-completed {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-draft {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
        min-width: 220px;
    }

    .dashboard-content {
        padding: 1.5rem;
    }

    .topbar {
        padding: 1rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-text h1 {
        font-size: 1.6rem;
    }

    .banner-icon {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        padding: 0.5rem;
        overflow-x: auto;
    }

    .sidebar-header {
        padding: 0.5rem 1rem;
        border-bottom: none;
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .sidebar-footer {
        display: none;
    }

    .nav-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .search-bar {
        width: 200px;
    }

    .stats-grid,
    .stats-grid-4 {
        grid-template-columns: 1fr !important;
    }
}