:root {
        --cricket-green: #1a5d1a;
        --cricket-gold: #ffd700;
        --cricket-blue: #1a56db;
        --cricket-red: #dc2626;
        --cricket-dark: #0f172a;
        --cricket-light: #f8fafc;
    }

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

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f8fafc;
        overflow-x: hidden;
    }

    /* ========== ENHANCED HEADER/NAVBAR ========== */
    .navbar-main {
        background: linear-gradient(135deg, var(--cricket-dark) 0%, #1e293b 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 0;
        height: 80px;
        /* Increased height */
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .navbar-container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand {
        font-family: 'Segoe UI', sans-serif;
        font-weight: 700;
        font-size: 1.8rem;
        background: linear-gradient(90deg, var(--cricket-gold), #ffffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .navbar-brand i {
        color: var(--cricket-gold);
        font-size: 1.8rem;
    }

    /* User Dropdown */
    .user-dropdown {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 15px;
        padding: 8px 15px;
        transition: all 0.3s ease;
    }

    .user-dropdown:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .user-dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        color: white !important;
        text-decoration: none;
        font-weight: 500;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--cricket-green), var(--cricket-blue));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
    }

    .role-badge {
        background: linear-gradient(135deg, var(--cricket-green), var(--cricket-blue));
        border-radius: 20px;
        padding: 4px 12px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .dropdown-menu {
        border: none;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 10px;
        margin-top: 10px;
        min-width: 200px;
    }

    .dropdown-item {
        border-radius: 8px;
        padding: 10px 15px;
        margin: 3px 0;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dropdown-item:hover {
        background: linear-gradient(135deg, var(--cricket-green), var(--cricket-blue));
        color: white !important;
        transform: translateX(5px);
    }

    /* ========== RESPONSIVE SIDEBAR ========== */
    .sidebar-wrapper {
        position: fixed;
        top: 80px;
        /* Match navbar height */
        left: 0;
        height: calc(100vh - 80px);
        width: 280px;
        background: linear-gradient(180deg, var(--cricket-dark) 0%, #1e293b 100%);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1020;
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    /* Mobile sidebar toggle */
    .sidebar-toggle {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--cricket-green), var(--cricket-blue));
        border-radius: 50%;
        color: white;
        border: none;
        z-index: 1040;
        box-shadow: 0 4px 15px rgba(26, 93, 26, 0.3);
        font-size: 1.2rem;
    }

    /* Main content area */
    .main-content {
        margin-left: 280px;
        padding: 30px;
        min-height: calc(100vh - 80px);
        transition: margin-left 0.3s ease;
    }

    /* Mobile responsive */
    @media (max-width: 991.98px) {
        .sidebar-wrapper {
            transform: translateX(-100%);
        }

        .sidebar-wrapper.active {
            transform: translateX(0);
        }

        .main-content {
            margin-left: 0;
        }

        .sidebar-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Overlay when sidebar is open */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 80px;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1015;
        }

        .sidebar-overlay.active {
            display: block;
        }
    }

    /* ========== SIDEBAR MENU ========== */
    .sidebar-menu {
        padding: 20px 15px;
    }

    .sidebar-header {
        padding: 0 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
    }

    .sidebar-title {
        color: var(--cricket-gold);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .sidebar-subtitle {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.8rem;
    }

    .nav-item {
        margin-bottom: 5px;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        color: rgba(255, 255, 255, 0.8);
        padding: 12px 15px;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        transform: translateX(5px);
    }

    .nav-link.active {
        background: linear-gradient(135deg, var(--cricket-green), var(--cricket-blue));
        color: white;
        box-shadow: 0 4px 15px rgba(26, 93, 26, 0.2);
    }

    .nav-link i {
        width: 20px;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-link .badge {
        margin-left: auto;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* ========== ALERTS ========== */
    .alert {
        border: none;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    /* ========== CARDS ========== */
    .card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin-bottom: 20px;
    }

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

    .card-header {
        background: linear-gradient(135deg, var(--cricket-dark), #1e293b);
        color: white;
        border-radius: 15px 15px 0 0 !important;
        border: none;
        padding: 20px;
    }

    /* ========== SCROLLBAR ========== */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, var(--cricket-green), var(--cricket-blue));
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, var(--cricket-blue), var(--cricket-green));
    }

    /* For sidebar scrollbar */
    .sidebar-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    .sidebar-wrapper::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }

    /* ========== RESPONSIVE UTILITIES ========== */
    @media (max-width: 768px) {
        .navbar-brand {
            font-size: 1.4rem;
        }

        .user-dropdown-toggle span:not(.role-badge) {
            display: none;
        }

        .main-content {
            padding: 20px 15px;
        }
    }

    @media (max-width: 576px) {
        .navbar-main {
            height: 70px;
        }

        .sidebar-wrapper {
            top: 70px;
            height: calc(100vh - 70px);
            width: 260px;
        }
    }