:root {
    --primary: #00A651;
    --primary-dark: #008c44;
    --secondary: #FFC107;
    --bg-light: #F3F4F6;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #ffffff;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.user-profile {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info .role {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 20px 40px;
    padding-bottom: 80px;
    /* Add padding for mobile nav */
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 15px;
    border-radius: 8px;
    width: 300px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Utility & Card Styles */
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-section h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.facility-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    border-left: 5px solid transparent;
}

.facility-card:hover {
    transform: translateY(-5px);
}

.facility-card.football {
    border-color: var(--primary);
}

.facility-card.lounge {
    border-color: var(--secondary);
}

.facility-card.games {
    border-color: #00bcd4;
}

.facility-card.food {
    border-color: #ff9800;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.bg-green-light {
    background: #e8f5e9;
    color: var(--primary);
}

.bg-yellow-light {
    background: #fff8e1;
    color: var(--secondary);
}

.bg-blue-light {
    background: #e0f7fa;
    color: #00bcd4;
}

.bg-orange-light {
    background: #fff3e0;
    color: #ff9800;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.booking-item:last-child {
    border-bottom: none;
}

.booking-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.booking-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.booking-time {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-confirmed {
    background: #e8f5e9;
    color: var(--primary);
}

.status-pending {
    background: #fff8e1;
    color: #f57f17;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
}

/* Mobile Media Query */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-bottom: 80px;
    }

    /* Top Bar Mobile Optimization */
    .top-bar {
        padding: 10px 15px;
        flex-direction: row;
        /* Keep row layout */
        gap: 10px;
        align-items: center;
    }

    .search-bar {
        width: 100%;
        flex: 1;
        /* Take available space */
    }

    .actions {
        width: auto;
        /* Only take necessary width */
        display: flex;
        gap: 10px;
    }

    .top-bar .actions .btn-primary {
        display: none;
        /* Hide 'New Booking' button on mobile */
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
    }

    /* Stack the two columns layout on dashboard */
    .dashboard-grid+div {
        grid-template-columns: 1fr !important;
    }

    /* Mobile Bottom Navigation */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #eee;
        padding: 10px 0;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        color: var(--text-light);
        font-size: 0.75rem;
        font-weight: 500;
    }

    .mobile-nav-item i {
        width: 24px;
        height: 24px;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }
}

/* Profile Dropdown Styles */
.profile-dropdown-container {
    position: relative;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
    margin-top: 10px;
}

.profile-dropdown.show {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.profile-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.profile-dropdown a i {
    width: 18px;
    height: 18px;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}