/* Studio Dashboard CMS - Main Stylesheet */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-primary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 80px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
}

.login-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

/* Filter Bar */
.filter-bar {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
}

/* For filter bars with only 2 columns (like engineer bookings) */
.filter-bar.filter-bar-2col {
    grid-template-columns: 1fr 1fr !important;
}

.filter-bar > div,
.filter-bar form > div {
    display: flex !important;
    flex-direction: column !important;
}

.filter-bar form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 1200px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .filter-bar.filter-bar-2col,
    .filter-bar form {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        grid-template-columns: 1fr !important;
    }
    
    .filter-bar.filter-bar-2col,
    .filter-bar form {
        grid-template-columns: 1fr !important;
    }
}

/* Filter Select and Input Styles */
.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-select:hover,
.filter-input:hover {
    border-color: var(--primary-color);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.filter-select::-ms-expand {
    display: none;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: visible;
    z-index: 1000;
    transition: width 0.3s ease;
}

.sidebar-nav {
    overflow: visible !important;
}

.nav-item-dropdown {
    overflow: visible !important;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    min-height: 80px;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 1.5rem 0.5rem;
    gap: 0;
}

.sidebar-header-content {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease, display 0.3s ease;
    min-width: 0;
}

.sidebar-header-content img {
    transition: opacity 0.3s ease, max-width 0.3s ease;
    max-width: 120px;
    max-height: 50px;
    height: auto;
    display: block;
    object-fit: contain;
}

.sidebar.collapsed .sidebar-header img {
    opacity: 0;
    max-width: 0;
    display: none;
}

.sidebar-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.375rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.mobile-close-btn {
    display: none !important;
}

.sidebar-toggle-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar.collapsed .sidebar-toggle-btn {
    margin: 0 auto;
    width: 36px;
    height: 36px;
}

.sidebar.collapsed .sidebar-header-content {
    opacity: 0;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden;
    flex: 0 0 0;
    display: none;
    padding: 0;
    margin: 0;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 1rem 0;
    position: relative;
    overflow: visible;
    overflow-x: visible;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.nav-item.active {
    background: var(--bg-card);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    border-left-width: 3px;
}

.nav-item.active i {
    color: var(--primary-color);
}

.nav-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-item {
    padding: 0.875rem 0;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.sidebar.collapsed .nav-item i {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.nav-item-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-item-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
}

/* Nav item with dropdown */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown .nav-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    padding: 0.875rem 1.5rem;
    pointer-events: auto;
}

.nav-item-dropdown .nav-item > i:first-of-type {
    flex-shrink: 0;
}

.nav-item-dropdown .nav-item .fa-chevron-right {
    margin-left: auto;
    margin-right: 0;
    font-size: 0.75rem;
    transition: transform 0.3s ease, margin-left 0.3s ease;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-item-dropdown .nav-item {
    padding: 0.875rem 0;
    justify-content: center;
}

.sidebar.collapsed .nav-item-dropdown .nav-item .fa-chevron-right {
    display: none;
}

.nav-item-dropdown-menu {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    position: fixed;
    min-width: 200px;
    z-index: 1001;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
}

/* Add invisible bridge to prevent gap between menu and dropdown */
.nav-item-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -0.4rem;
    width: 0.4rem;
    height: 100%;
    pointer-events: auto;
}

/* Dropdown menu visibility is handled by JavaScript in dropdown-menu.js */

.sidebar.collapsed .nav-item-dropdown-menu {
    display: none !important;
}

.nav-item-dropdown-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-item-dropdown-menu-item:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.nav-item-dropdown-menu-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item-dropdown-menu-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.nav-item-dropdown-menu-item:hover i,
.nav-item-dropdown-menu-item.active i {
    color: var(--primary-color);
}

/* Mobile: show dropdown on click/tap */
@media (max-width: 768px) {
    /* Disable hover on mobile - only allow click */
    .nav-item-dropdown:hover .nav-item-dropdown-menu:not(.show) {
        display: none !important;
    }
    
    .sidebar .nav-item-dropdown.open .nav-item-dropdown-menu {
        display: block !important;
    }
}

/* Ensure dropdown stays visible when open class is applied */
.nav-item-dropdown.open .nav-item-dropdown-menu {
    display: block !important;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    padding-bottom: 0;
    transition: margin-left 0.3s ease;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
    max-width: 100%;
}

/* Update main content margin when sidebar is collapsed */
.sidebar.collapsed + .dashboard-wrapper .main-content {
    margin-left: var(--sidebar-width-collapsed) !important;
}

/* For pages where sidebar is inside dashboard-wrapper */
.dashboard-wrapper:has(.sidebar.collapsed) .main-content {
    margin-left: var(--sidebar-width-collapsed) !important;
}

/* Top Bar */
.top-bar {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    z-index: 100;
    min-height: fit-content;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.top-bar h1 {
    font-size: 1.75rem;
    font-weight: 700;
    flex: 0 0 auto;
}

/* Notification bell positioned on the right, just left of user-info on desktop */
.top-bar .notification-bell {
    margin-left: auto;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: visible;
    z-index: 101;
    height: auto;
    min-height: fit-content;
    flex: 0 0 auto;
    padding-bottom: 0.5rem;
}

.user-info-content-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    position: relative;
}

.user-info-content-wrapper:hover {
    background: var(--bg-card);
}

/* Ensure user-info container maintains hover state */
.user-info:hover .user-info-content-wrapper {
    background: var(--bg-card);
}

.user-info-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    overflow: visible;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    pointer-events: none;
}

/* Add invisible bridge to prevent gap */
.user-info-dropdown::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    pointer-events: auto;
}

.user-info-content-wrapper:hover ~ .user-info-dropdown,
.user-info-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Prevent notification bell from triggering user-info dropdown */
.notification-bell {
    pointer-events: auto;
}

.user-info:has(.notification-bell:hover) .user-info-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
}

.user-info-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
}

.user-info-dropdown-item:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.user-info-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.user-info-dropdown-item:hover i {
    color: var(--primary-color);
}

.user-info-dropdown-item {
    position: relative;
}

.notification-menu-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-left: 0.15rem;
    margin-top: -1rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.user-info-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    overflow: visible;
    z-index: 101;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.notification-bell:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid var(--bg-card);
    min-width: 18px;
    padding: 0 2px;
}

.notification-badge.hidden {
    display: none;
}

/* User Avatar */
.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.message-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.message-indicator.hidden {
    display: none;
}

.message-menu-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-left: 0.15rem;
    margin-top: -1rem;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Content Sections */
.content-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.content-section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.content-section-half {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.card-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.card-icon.accent {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-color);
}

.card-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-footer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Buttons */
.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Forms */
.form-section {
    max-width: 800px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.full-width {
    flex-direction: column;
}

.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Form control styling (for select dropdowns outside form-group) */
.form-control {
    padding: 0.875rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: -2rem;
    padding: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background: var(--bg-dark);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    color: var(--text-primary);
}

table tr:hover {
    background: var(--bg-dark);
}

/* Status Badges */
.badge,
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.active,
.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.badge.inactive,
.status-inactive {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
}

.badge.pending,
.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.badge.unconfirmed,
.status-unconfirmed,
.status-badge.status-unconfirmed {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.badge.confirmed,
.status-confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.badge.completed,
.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.badge.cancelled,
.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-card);
    margin: 2rem auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

/* Calendar Widget */
.calendar-widget {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1.5rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s ease;
    cursor: default;
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day:not(.empty):not(.today):not(.has-bookings):hover {
    border: 2px solid var(--primary-color);
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.calendar-day.has-bookings {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    cursor: pointer;
}

.calendar-day.has-bookings:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.calendar-day.clickable {
    cursor: pointer;
}

.booking-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.calendar-legend-item {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Booking Items */
.booking-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.booking-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.booking-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.booking-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.booking-detail-row i {
    color: var(--primary-color);
    width: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.booking-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.6;
}

.booking-notes {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Notifications */
.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item:hover {
    background: var(--bg-dark);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.notification-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.notification-item-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.notification-item-message a,
.notification-item-message .notification-link {
    color: var(--primary-color) !important;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-left: 0.25rem;
}

.notification-item-message .notification-link[style*="background"] {
    color: white !important;
    text-decoration: none;
}

.notification-item-message .notification-link[style*="background"]:hover {
    color: white !important;
    opacity: 0.9;
}

.notification-item-message a:hover,
.notification-item-message .notification-link:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

.notification-item-message button.notification-project-btn,
button.notification-project-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.notification-item-message button.notification-project-btn:hover,
button.notification-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.notification-item-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.notification-item-sender {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.notification-empty {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10001;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
}

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

/* Notification Dropdown */
.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 10000;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.notification-dropdown.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notification-header-actions button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.notification-header-actions button:hover {
    background: var(--bg-dark);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notification-view-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.notification-view-more-btn:hover {
    color: var(--accent-color);
}

/* Site Footer */
.site-footer {
    background: var(--bg-dark) !important;
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: auto;
    margin-left: -2rem !important;
    width: calc(100vw - var(--sidebar-width)) !important;
    position: relative;
    box-sizing: border-box;
    right: 0;
}

.sidebar.collapsed ~ .dashboard-wrapper .main-content .site-footer,
.dashboard-wrapper:has(.sidebar.collapsed) .main-content .site-footer {
    width: calc(100vw - var(--sidebar-width-collapsed)) !important;
}

.footer-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.footer-row-1 {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    position: relative !important;
    justify-content: space-between !important;
}

.footer-col-1 {
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    align-items: flex-start !important;
}

.footer-col-2 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: -1rem !important;
}

.footer-col-3 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link-group.multi-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
    align-content: start;
}

.footer-link-group.multi-column .footer-group-title {
    grid-column: 1 / -1;
}

.footer-group-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link-item:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-copyright-text {
    text-align: center !important;
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Heatmap Styles */
.heatmap-container {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.heatmap-header {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.heatmap-y-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.heatmap-hours {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 0.25rem;
}

.heatmap-hour {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.heatmap-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.heatmap-day {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: center;
}

.heatmap-cells {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 0.25rem;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.heatmap-cell:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.heatmap-legend-gradient {
    width: 200px;
    height: 20px;
    background: linear-gradient(to right, 
        rgb(30, 58, 138), 
        rgb(70, 130, 206), 
        rgb(220, 220, 20), 
        rgb(252, 165, 3), 
        rgb(220, 53, 20)
    );
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Tablet Responsive Styles */
@media (max-width: 1024px) {
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 10000 !important;
        position: relative !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-menu-btn:hover {
        background: var(--bg-card-hover) !important;
        border-color: var(--primary-color) !important;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-btn i {
        pointer-events: none;
    }

    /* Hide fixed mobile menu button outside top-bar */
    .mobile-menu-btn:not(.top-bar .mobile-menu-btn) {
        display: none !important;
    }

    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: var(--sidebar-width) !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
        -moz-transform: translateX(0) !important;
        -ms-transform: translateX(0) !important;
        -o-transform: translateX(0) !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: var(--sidebar-width) !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 1rem;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .site-footer {
        background: var(--bg-dark) !important;
        width: calc(100% + 2rem) !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding: 1.5rem 1rem !important;
        max-width: 100vw !important;
    }

    .mobile-close-btn {
        display: flex !important;
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 1001 !important;
    }

    .mobile-close-btn:hover {
        background: var(--bg-card-hover) !important;
        border-color: var(--primary-color) !important;
        color: var(--primary-color) !important;
    }

    .top-bar {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        flex-wrap: nowrap;
        gap: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow: visible !important;
        position: relative;
        z-index: 100;
    }

    .top-bar h1 {
        display: none !important;
    }

    .top-bar .mobile-menu-btn {
        order: 1;
        flex-shrink: 0;
        margin-right: auto;
    }

    .user-info {
        margin-left: 0;
        order: 3;
        display: flex;
        align-items: center;
        gap: 0;
        overflow: visible !important;
        position: relative;
        z-index: 101;
        flex-shrink: 0;
        margin-left: auto;
    }

    .notification-bell {
        order: 2;
        flex-shrink: 0;
        position: relative;
        margin: 0;
        margin-right: 0.5rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .user-info-dropdown {
        right: 0;
        left: auto;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cards-grid-4 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.25rem;
    }

    .card-value {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .table-container {
        margin: -1.5rem;
        padding: 1.5rem;
    }

    table {
        min-width: 600px;
    }

    .top-bar .notification-dropdown {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        z-index: 10000 !important;
        width: calc(100vw - 2rem) !important;
        max-width: 400px !important;
        pointer-events: auto !important;
    }
    
    .top-bar .notification-bell .notification-dropdown {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }

    .top-bar .notification-bell .notification-dropdown.show {
        transform: none !important;
    }
    
    /* Fallback for when bell is inside user-info */
    .user-info .notification-dropdown {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        right: 0 !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
    }

    .user-info-dropdown {
        right: 0;
        left: auto;
    }

    .calendar-header,
    .calendar-grid {
        gap: 0.25rem;
    }

    .calendar-day {
        font-size: 0.875rem;
    }

    .booking-item {
        padding: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .footer-row-1 {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .footer-col-1,
    .footer-col-2,
    .footer-col-3 {
        position: static !important;
        transform: none !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .footer-link-group.multi-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        flex-wrap: nowrap;
        gap: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow: visible !important;
        position: relative;
        z-index: 100;
    }

    .top-bar h1 {
        display: none !important;
    }

    .top-bar .mobile-menu-btn {
        flex-shrink: 0;
        margin-right: auto;
    }

    /* Notification bell positioned on the right, just left of user-info */
    .top-bar .notification-bell {
        flex-shrink: 0;
        position: relative;
        z-index: 102;
        margin-right: 0.5rem;
        order: 2;
    }

    /* User-info on the far right */
    .user-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        overflow: visible !important;
        position: relative;
        z-index: 101;
        flex-shrink: 0;
        width: auto;
        justify-content: flex-end;
        order: 3;
    }

    /* Position user-info-content-wrapper normally */
    .user-info .user-info-content-wrapper {
        position: relative;
        z-index: 101;
    }

    /* User info dropdown - positioned relative to user-info-content-wrapper */
    .user-info .user-info-dropdown {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        z-index: 10000 !important;
        width: calc(100vw - 2rem) !important;
        max-width: 300px !important;
        pointer-events: auto !important;
        min-width: 200px !important;
    }

    .top-bar .notification-dropdown {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        z-index: 10000 !important;
        width: calc(100vw - 2rem) !important;
        max-width: 400px !important;
        pointer-events: auto !important;
    }

    /* Also handle if dropdown is still in user-info (fallback) */
    .user-info .notification-dropdown {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10000 !important;
        width: calc(100vw - 2rem) !important;
        max-width: 400px !important;
        pointer-events: auto !important;
    }

    .notification-dropdown.show {
        display: flex !important;
        transform: translateX(-50%) !important;
        pointer-events: auto !important;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .content-section,
    .content-section-half {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .card {
        padding: 1rem;
    }

    .card-value {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .table-container {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }

    table {
        min-width: 500px;
    }

    table th,
    table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.8rem;
    }

    .filter-bar {
        padding: 0.75rem;
    }

    .filter-bar > div:first-child {
        gap: 0.5rem;
    }

    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100%;
    }

    .modal-header {
        padding: 0.875rem 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .booking-item {
        padding: 0.875rem;
    }

    .booking-header h3 {
        font-size: 1rem;
    }

    .booking-detail-row {
        font-size: 0.875rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
