* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --dark: #2c3e50;
    --light: #f5f6fa;
    --gray: #7f8c8d;
    --white: #ffffff;
    --sidebar-width: 250px;
    --sidebar-collapsed: 70px;
    --header-height: 60px;
}

body {
    background: var(--light);
    min-height: 100vh;
    color: var(--dark);
    overflow-x: hidden;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ========== MOBILE HEADER - FIXED ========== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

/* ========== SIDEBAR OVERLAY - FIXED ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    cursor: pointer;
}

.sidebar-overlay.active {
    display: block;
}

/* ========== SIDEBAR STYLES - FIXED ========== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 20px 0;
    transition: all 0.3s ease;
    z-index: 999;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    left: 0;
    top: 0;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    position: relative;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.sidebar.collapsed .logo h1 {
    opacity: 0;
}

.logo p {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
    transition: all 0.3s;
    color: white;
}

.sidebar.collapsed .logo p {
    opacity: 0;
}

/* Menu Toggle Button */
.menu-toggle {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    color: var(--dark);
    font-size: 0.8rem;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
}

.nav-link i {
    margin-right: 10px;
    font-size: 18px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

/* ========== DROPDOWN MENU STYLES - FIXED ========== */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown > .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8em;
    margin-left: auto;
    padding-left: 10px;
}

.nav-item.has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    padding: 0;
    margin: 5px 10px 0 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    animation: dropdownFadeIn 0.3s ease;
    position: relative;
    z-index: 1000;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item.has-dropdown.active .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-menu .nav-item {
    margin: 0;
}

.dropdown-menu .nav-link {
    padding: 12px 20px 12px 45px;
    font-size: 0.9em;
    border-left: none;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.dropdown-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.dropdown-menu .nav-link:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.dropdown-menu .nav-link:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.dropdown-menu .nav-link i {
    font-size: 0.8em;
    width: 20px;
    margin-right: 8px;
    opacity: 0.8;
}

/* ========== MAIN CONTENT STYLES ========== */
.main-content {
    flex: 1;
    padding: 20px;
    transition: all 0.3s;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
}

/* Header within main content */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-top: 10px;
}

.header h1 {
    color: var(--dark);
    font-size: 24px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--gray);
}

.logout-btn {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: #c0392b;
}

/* ========== MOBILE RESPONSIVE STYLES - FIXED ========== */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    /* FIXED: Sidebar mobile behavior */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 70px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Adjust dropdowns for mobile */
    .dropdown-menu {
        background: rgba(0, 0, 0, 0.4);
        margin: 8px 15px 0 15px;
    }
    
    .dropdown-menu .nav-link {
        padding: 14px 20px 14px 50px;
        font-size: 0.95em;
    }
    
    .nav-item.has-dropdown.active .nav-link {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-info {
        align-self: flex-end;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .booking-details {
        grid-template-columns: 1fr;
    }
    
    .booking-actions {
        justify-content: center;
    }
    
    .status-tab-header {
        flex-direction: column;
    }
    
    .status-tab-btn {
        min-width: auto;
        text-align: center;
    }
    
    .reports-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .date-range-selector {
        align-self: stretch;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .logout-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .main-content {
        padding: 70px 10px 20px 10px;
    }
    
    .dropdown-menu .nav-link {
        padding-left: 60px;
    }
    
    .booking-item-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .booking-status {
        align-self: flex-start;
    }
}

/* ========== DESKTOP SPECIFIC STYLES ========== */
@media (min-width: 769px) {
    .menu-toggle {
        display: flex;
    }
    
    .sidebar.collapsed .dropdown-menu {
        display: none !important;
    }
    
    .stats-cards {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .booking-details {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .status-tab-btn {
        flex-direction: row;
        gap: 8px;
    }
    
    .charts-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== REST OF YOUR STYLES ========== */
/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
}

.login-box {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    color: var(--dark);
    font-size: 28px;
    margin-bottom: 5px;
}

.login-logo p {
    color: var(--gray);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--info);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    font-size: 14px;
}

.error-message {
    background: #ffeaa7;
    color: #d63031;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    background: #55efc4;
    color: #00b894;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    padding: 18px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-new { border-left-color: var(--info); }
.stat-accepted { border-left-color: var(--success); }
.stat-rejected { border-left-color: var(--danger); }
.stat-working { border-left-color: var(--warning); }
.stat-completed { border-left-color: #9b59b6; }

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--white);
}

.stat-new .stat-icon { background: var(--info); }
.stat-accepted .stat-icon { background: var(--success); }
.stat-rejected .stat-icon { background: var(--danger); }
.stat-working .stat-icon { background: var(--warning); }
.stat-completed .stat-icon { background: #9b59b6; }

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* Status Tabs */
.status-tabs {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.status-tab-header {
    display: flex;
    border-bottom: 1px solid #ecf0f1;
    overflow-x: auto;
    background: #f8f9fa;
    padding: 0 5px;
}

.status-tab-btn {
    flex: 1;
    padding: 14px 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s;
    position: relative;
    min-width: 110px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.status-tab-btn:hover {
    color: var(--info);
    background: rgba(52, 152, 219, 0.05);
}

.status-tab-btn.active {
    color: var(--info);
    background: var(--white);
}

.status-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--info);
}

.status-icon {
    font-size: 16px;
}

.status-count {
    background: var(--info);
    color: var(--white);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.status-tab-content {
    padding: 0;
}

.status-tab-pane {
    display: none;
    padding: 20px;
}

.status-tab-pane.active {
    display: block;
}

/* Booking List */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-item {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-left: 4px solid var(--info);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.booking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.booking-id {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

.booking-time {
    color: var(--gray);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.booking-time i {
    color: var(--info);
}

.booking-status {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-new { background: rgba(52, 152, 219, 0.1); color: var(--info); }
.status-accepted { background: rgba(46, 204, 113, 0.1); color: var(--success); }
.status-working { background: rgba(243, 156, 18, 0.1); color: var(--warning); }
.status-completed { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }

.booking-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
}

.customer-name {
    font-weight: 700;
    color: var(--dark);
}

.service-type {
    color: var(--danger);
}

.employee-name {
    color: var(--success);
}

.booking-amount {
    color: #9b59b6;
    font-weight: 700;
}

.booking-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-accept {
    background: var(--success);
    color: var(--white);
}

.btn-accept:hover {
    background: #27ae60;
}

.btn-reject {
    background: var(--danger);
    color: var(--white);
}

.btn-reject:hover {
    background: #c0392b;
}

.btn-start {
    background: var(--warning);
    color: var(--white);
}

.btn-start:hover {
    background: #d35400;
}

.btn-complete {
    background: #9b59b6;
    color: var(--white);
}

.btn-complete:hover {
    background: #8e44ad;
}

/* Filters */
.filters-container {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.apply-filters {
    background: var(--info);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.apply-filters:hover {
    background: #2980b9;
}

/* Reports Styles */
.reports-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.reports-header h2 {
    color: var(--dark);
    font-size: 22px;
}

.date-range-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-range-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--white);
}

.reports-tabs {
    margin-bottom: 25px;
}

.reports-tab-header {
    display: flex;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 20px;
}

.reports-tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s;
    position: relative;
}

.reports-tab-btn.active {
    color: var(--info);
}

.reports-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--info);
}

.reports-tab-content {
    min-height: 400px;
}

.reports-tab-pane {
    display: none;
}

.reports-tab-pane.active {
    display: block;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.chart-container {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chart-container h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 18px;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--gray);
}

.date-list {
    display: grid;
    gap: 10px;
}

.date-item {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.date-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-main {
    font-weight: 600;
    color: var(--dark);
}

.date-sub {
    font-size: 12px;
    color: var(--gray);
}

.date-stats {
    display: flex;
    gap: 20px;
    text-align: center;
}

.stat-count {
    font-weight: 600;
    color: var(--dark);
    font-size: 16px;
}

.stat-label-small {
    font-size: 11px;
    color: var(--gray);
}

.revenue-amount {
    font-weight: 600;
    color: var(--success);
    font-size: 16px;
}

/* Profile Styles */
.profile-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-right: 20px;
}

.profile-info h2 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 20px;
}

.profile-info p {
    color: var(--gray);
    font-size: 14px;
}

.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary {
    background: var(--info);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Password Change Styles */
.password-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px;
    max-width: 600px;
}

.password-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.password-header h2 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 20px;
}

.password-header p {
    color: var(--gray);
    font-size: 14px;
}

/* Logout Page */
.logout-content {
    text-align: center;
    padding: 50px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logout-content i {
    font-size: 70px;
    color: var(--danger);
    margin-bottom: 20px;
}

.logout-content h2 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 22px;
}

.logout-content p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 16px;
}

.logout-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel {
    background: var(--gray);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.empty-state p {
    font-size: 14px;
}

/* Page Content Animation */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Additional responsive adjustments */
@media (min-width: 1200px) {
    .main-content {
        padding: 30px;
    }
    
    .stats-cards {
        gap: 20px;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.hidden { display: none; }
.visible { display: block; }

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.timesheet-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.tabs-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    color: var(--gray);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab:hover {
    color: var(--primary-dark);
    background-color: #f8fafc;
}

.tab-pane {
    display: none;
    padding: 20px;
}

.tab-pane.active {
    display: block;
}

.timesheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.timesheet-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-range-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-range-form {
    margin: 0;
}

.date-range-inputs {
    display: flex;
    gap: 15px;
    align-items: end;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.btn-primary.btn-sm {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    height: fit-content;
}

.btn-primary.btn-sm:hover {
    background: var(--primary-dark);
}

.print-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.current-session {
    background: rgba(16, 185, 129, 0.1);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-info h4 {
    color: var(--success);
    margin-bottom: 5px;
}

.session-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.duration-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--success);
}

.duration-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.table-container {
    overflow-x: auto;
}

.timesheet-table {
    width: 100%;
    border-collapse: collapse;
}

.timesheet-table th {
    background: #f8fafc;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid #e2e8f0;
}

.timesheet-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.timesheet-table tr:last-child td {
    border-bottom: none;
}

.timesheet-table tr:hover {
    background: #f8fafc;
}

.clock-time.in {
    color: var(--success);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.clock-time.out {
    color: var(--danger);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.duration {
    font-weight: 600;
    color: var(--primary);
}

.month-hours {
    font-weight: 600;
    color: var(--primary);
}

.total-row {
    background: #f1f5f9 !important;
    font-weight: 600;
}

.total-row td {
    border-top: 2px solid #e2e8f0;
}

.total-hours {
    font-weight: 600;
    color: var(--primary);
}

.current-month {
    background: rgba(59, 130, 246, 0.05);
}

.month-name {
    font-weight: 600;
}

.current-badge {
    color: var(--primary);
    font-size: 0.8rem;
    margin-left: 5px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--gray);
}

.no-sessions {
    text-align: center;
    color: var(--gray);
    padding: 20px;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--dark);
    padding: 10px 15px;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    margin-left: auto;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    color: var(--gray);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.pagination-btn:hover {
    background: var(--primary-dark);
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-number {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: #f8fafc;
    border-color: var(--primary);
}

.pagination-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-ellipsis {
    padding: 8px 5px;
    color: var(--gray);
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-section,
    .print-section * {
        visibility: visible;
    }
    
    .print-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #333;
    }
    
    .print-header h2 {
        margin: 0 0 5px 0;
        color: #333;
        font-size: 24px;
    }
    
    .print-header p {
        margin: 5px 0;
        color: #666;
        font-size: 14px;
    }
    
    .print-meta {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
        font-size: 12px;
        color: #666;
    }
    
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    
    .print-table th {
        background: #f5f5f5 !important;
        color: #000 !important;
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
        font-weight: bold;
    }
    
    .print-table td {
        border: 1px solid #ddd;
        padding: 8px;
    }
    
    .print-total {
        font-weight: bold;
        background: #f9f9f9 !important;
    }
    
    .print-footer {
        text-align: center;
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
        color: #666;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timesheet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .date-range-inputs {
        flex-direction: column;
        width: 100%;
    }
    
    .date-input-group {
        width: 100%;
    }
    
    .date-input {
        width: 100%;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}


/* Main Container */
.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.timesheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.header-info h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.header-info p {
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-size: 15px;
}

.salon-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.salon-badge, .staff-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.header-stats .stat-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* Quick Filters */
.quick-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.filter-label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-btn i {
    font-size: 11px;
}

/* Custom Date Range */
.custom-range {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.range-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.range-label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    white-space: nowrap;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-input {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: white;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.range-separator {
    color: #6b7280;
    font-weight: 500;
    font-size: 13px;
}

.range-submit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.range-submit:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.clear-range {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.clear-range:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Summary Grid - Always 4 columns */
.summary-grid {
    display: flex;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--card-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover::before {
    opacity: 1;
}

.total-hours-card { --card-color: #10b981; }
.staff-card { --card-color: #3b82f6; }
.days-card { --card-color: #8b5cf6; }
.avg-card { --card-color: #f59e0b; }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.total-hours-card .card-icon { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.staff-card .card-icon { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.days-card .card-icon { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.avg-card .card-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.card-content {
    flex: 1;
    min-width: 0;
}

.card-value {
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-link {
    color: #9ca3af;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.summary-card:hover .card-link {
    color: var(--card-color);
    transform: translateX(2px);
}

/* Timesheet Section */
.timesheet-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.section-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
}

.timesheet-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.timesheet-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timesheet-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    font-size: 13px;
}

.timesheet-table tr:last-child td {
    border-bottom: none;
}

.timesheet-table tr:hover {
    background: #fafafa;
}

/* Column Specific Styles */
.staff-col { width: 25%; }
.hours-col { width: 14%; }
.days-col { width: 12%; }
.avg-col { width: 14%; }
.status-col { width: 12%; }
.last-col { width: 18%; }
.action-col { width: 5%; }

.staff-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: all 0.3s ease;
}

.staff-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateX(2px);
}

.staff-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.staff-link:hover .staff-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.staff-details {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.staff-link:hover .staff-name {
    color: #3b82f6;
}

.staff-email {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-id {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hours-display, .days-display, .avg-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hours-value, .days-value, .avg-value {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.hours-unit, .days-unit, .avg-unit {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* Hours Progress Bar */
.hours-bar {
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.hours-progress {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.status-badge.active .status-dot {
    background: #10b981;
}

.status-badge.inactive .status-dot {
    background: #6b7280;
}

/* Last Activity */
.last-activity {
    text-align: left;
}

.last-time {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.last-type {
    font-size: 11px;
    color: #6b7280;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-activity {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.btn-view, .btn-export {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    text-decoration: none;
}

.btn-view {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.btn-view:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.btn-export {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.btn-export:hover {
    background: #10b981;
    color: white;
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #374151;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Tooltip Styles */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    margin-bottom: -5px;
    z-index: 1000;
}

/* Responsive Design - Enhanced for better mobile experience */
@media (max-width: 1200px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .staff-col { width: 22%; }
    .hours-col { width: 13%; }
    .days-col { width: 11%; }
    .avg-col { width: 13%; }
    .status-col { width: 11%; }
    .last-col { width: 20%; }
    .action-col { width: 10%; }
}

@media (max-width: 1024px) {
    .profile-container {
        padding: 16px;
    }
    
    .timesheet-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .range-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .range-inputs {
        width: 100%;
        justify-content: center;
    }
    
    /* Table responsive adjustments */
    .staff-col { width: 25%; }
    .hours-col { width: 15%; }
    .days-col { width: 12%; }
    .avg-col { width: 15%; }
    .status-col { width: 13%; }
    .last-col { width: 15%; }
    .action-col { width: 5%; }
}

@media (max-width: 768px) {
  
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 20px;
    }
    
    .section-actions {
        width: 100%;
        justify-content: center;
    }
    
    .timesheet-table th,
    .timesheet-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .staff-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .staff-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .hours-display, .days-display, .avg-display {
        align-items: center;
        text-align: center;
    }
    
    .card-value {
        font-size: 20px;
    }
    
    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    /* Smaller font sizes for mobile */
    .staff-name {
        font-size: 13px;
    }
    
    .staff-email {
        font-size: 11px;
    }
    
    .staff-id {
        font-size: 9px;
    }
    
    .hours-value, .days-value, .avg-value {
        font-size: 13px;
    }
    
    .hours-unit, .days-unit, .avg-unit {
        font-size: 10px;
    }
    
    .last-time {
        font-size: 12px;
    }
    
    .last-type {
        font-size: 10px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 640px) {
    /* Stack table columns for very small screens */
    .timesheet-table {
        display: block;
    }
    
    .timesheet-table thead {
        display: none;
    }
    
    .timesheet-table tbody,
    .timesheet-table tr,
    .timesheet-table td {
        display: block;
        width: 100%;
    }
    
    .timesheet-table tr {
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 16px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .timesheet-table td {
        padding: 8px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .timesheet-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .staff-info {
        flex-direction: row;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .hours-bar {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .quick-filters {
        padding: 16px;
    }
    
    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        justify-content: center;
    }
    
    .range-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .range-separator {
        display: none;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-view, .btn-export {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    /* Even smaller fonts for very small screens */
    .staff-name {
        font-size: 12px;
    }
    
    .staff-email {
        font-size: 10px;
    }
    
    .card-value {
        font-size: 18px;
    }
    
    .card-label {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .quick-filters,
    .section-actions,
    .action-cell {
        display: none !important;
    }
    
    .timesheet-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========== SIDEBAR COLLAPSED STATES - ADD THESE ========== */

/* When sidebar is collapsed, adjust nav items */
.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    display: none;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px !important;
    margin: 0 5px !important;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0 !important;
    font-size: 18px !important;
}

.sidebar.collapsed .dropdown-arrow {
    display: none !important;
}

/* Hide dropdown menus when sidebar is collapsed */
.sidebar.collapsed .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Logo adjustments for collapsed state */
.sidebar.collapsed .logo {
    padding: 15px 5px !important;
}

.sidebar.collapsed .logo h1 {
    display: none;
}

.sidebar.collapsed .logo p {
    display: none;
}

.sidebar.collapsed .logo img {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto;
}

/* Menu toggle button adjustments */
.menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    color: var(--dark);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.sidebar.collapsed .menu-toggle {
    right: -15px;
    transform: translateY(-50%) rotate(180deg);
}

.sidebar.collapsed .menu-toggle:hover {
    transform: translateY(-50%) rotate(180deg) scale(1.1);
}

/* ========== MAIN CONTENT ADJUSTMENTS ========== */

.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    min-height: 100vh;
    padding: 20px;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ========== MOBILE RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 768px) {
    .menu-toggle {
        display: none !important; /* Hide toggle on mobile */
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px !important;
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }
    
    .sidebar.collapsed {
        width: 280px !important; /* Full width on mobile */
        transform: translateX(-100%);
    }
    
    .sidebar.active.collapsed {
        width: 280px !important;
        transform: translateX(0) !important;
    }
    
    /* On mobile, always show full menu text */
    .sidebar.active .nav-link span {
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        display: inline !important;
    }
    
    .sidebar.active .nav-link {
        justify-content: flex-start !important;
        padding: 12px 20px !important;
    }
    
    .sidebar.active .nav-link i {
        margin-right: 10px !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: calc(var(--header-height) + 20px);
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0 !important;
    }
}

/* ========== DESKTOP SPECIFIC ADJUSTMENTS ========== */

@media (min-width: 769px) {
    .menu-toggle {
        display: flex !important;
    }
    
    /* Hide mobile header on desktop */
    .mobile-header {
        display: none !important;
    }
    
    /* Show sidebar overlay only on mobile */
    .sidebar-overlay {
        display: none !important;
    }
    
    /* Ensure sidebar is visible on desktop */
    .sidebar {
        transform: translateX(0) !important;
    }
    
    /* Adjust dropdown menus for collapsed sidebar */
    .sidebar.collapsed .nav-item.has-dropdown:hover .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: absolute;
        left: 100%;
        top: 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        min-width: 200px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 1001;
    }
    
    .sidebar.collapsed .dropdown-menu .nav-link {
        padding: 12px 20px !important;
        justify-content: flex-start !important;
    }
    
    .sidebar.collapsed .dropdown-menu .nav-link i {
        margin-right: 10px !important;
    }
    
    .sidebar.collapsed .dropdown-menu .nav-link span {
        display: inline !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
    }
}