/* ===================================
   Rota Manager - Modern CSS Stylesheet
   =================================== */

/* CSS Variables - Modern Professional Theme */
:root {
    /* Primary Colors - Clean Blue Palette */
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385d6;
    --primary-lighter: #e6f2ff;
    
    /* Secondary/Accent - Teal */
    --secondary-color: #0891b2;
    --secondary-dark: #0e7490;
    --secondary-light: #06b6d4;
    
    /* Status Colors */
    --success-color: #059669;
    --success-light: #d1fae5;
    --danger-color: #dc2626;
    --danger-light: #fee2e2;
    --warning-color: #d97706;
    --warning-light: #fef3c7;
    --info-color: #2563eb;
    --info-light: #dbeafe;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --text-dark: #000000;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-gray: #e5e7eb;
    
    /* Border & Shadows */
    --border-color: #e5e7eb;
    --border-color-light: #f3f4f6;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Spacing & Sizing */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - Clean Professional Design */
.navbar {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: grid;
    grid-template-columns: 280px 1fr 400px;
    align-items: center;
    padding: 18px 40px;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Left: Logo & Brand */
.navbar-left {
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand svg {
    width: 36px;
    height: 36px;
}

.nav-brand:hover {
    color: var(--primary-dark);
}

.brand-name {
    white-space: nowrap;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
}

/* Center: Navigation Menu */
.navbar-center {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-link svg {
    width: 18px;
    height: 18px;
}

.nav-link span {
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-lighter);
    color: var(--primary-color);
    font-weight: 600;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    border-radius: 12px;
    padding: 3px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Right: User Info & Logout */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.user-info:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.role-badge {
    background: var(--primary-lighter);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    display: inline-block;
}

.workspace-name {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Subscription Status Badge */
.subscription-info-badge {
    margin-top: 4px;
}

.subscription-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    cursor: help;
}

.subscription-status-success {
    background: #d1fae5;
    color: #065f46;
}

.subscription-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.subscription-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.subscription-status-info {
    background: #dbeafe;
    color: #1e40af;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

.btn-logout:hover {
    background: var(--danger-light);
    color: var(--danger-color);
    border-color: var(--danger-color);
    box-shadow: var(--shadow-sm);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 20px 0 40px 0;
}

/* Modern Page Headers - Clean Professional Design */
.modern-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 0 auto 30px auto;
    padding: 32px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-header-content {
    width: 100%;
}

.modern-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modern-page-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-page-icon svg {
    stroke: white;
    width: 28px;
    height: 28px;
}

.modern-page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.modern-page-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.5;
}

/* Header with Actions */
.modern-header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-header-actions {
    display: flex;
    gap: 10px;
}

.modern-header-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.modern-header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-header-actions .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.modern-header-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .modern-page-header {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .modern-header-content {
        padding: 0 10px;
    }
    
    .modern-title-section {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .modern-page-icon {
        width: 48px;
        height: 48px;
    }
    
    .modern-page-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .modern-page-title {
        font-size: 1.6rem;
    }
    
    .modern-page-subtitle {
        font-size: 0.95rem;
    }
    
    .modern-header-with-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .modern-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .modern-header-actions .btn {
        width: 100%;
    }
}

/* Page Header */
.page-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-content h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.bg-blue {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.stat-icon.bg-purple {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-icon.bg-green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.stat-icon.bg-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Enterprise Cost Display */
.stat-card-enterprise {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.stat-card-enterprise .stat-icon {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stat-value-cost {
    color: #d97706;
    font-weight: 700;
    font-size: 2.2rem;
}

.rate-value {
    color: #059669;
    font-size: 1.05rem;
    font-weight: 600;
}

.cost-value {
    color: #047857;
    font-size: 1.05rem;
}

.cost-value-large {
    color: #047857;
    font-size: 1.15rem;
    font-weight: 600;
}

.cost-value-total {
    color: #047857;
    font-size: 1.35rem;
    font-weight: 700;
}

/* Hourly Rate Column - Fixed Width for Perfect Alignment */
.hourly-rate-col {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    text-align: center !important;
    vertical-align: middle;
}

.table-total-row {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-top: 3px solid #059669;
    border-bottom: 3px solid #059669;
    font-weight: 600;
}

.table-total-row td {
    padding: 18px 20px !important;
    font-size: 1.1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Week Navigation */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.week-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.day-column {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.day-column.today {
    border: 2px solid var(--primary-color);
}

.day-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

.day-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.day-date {
    font-size: 0.85rem;
    opacity: 0.9;
}

.day-schedules {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    padding: 12px;
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative;
}

.schedule-item:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.schedule-time {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.schedule-employee {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.schedule-hours {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
}

.break-indicator {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: normal;
}

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

.schedule-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.no-schedule {
    text-align: center;
    color: var(--text-light);
    padding: 40px 10px;
    font-size: 0.85rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 25px;
}

.card-header {
    margin: -25px -25px 20px -25px;
    padding: 20px 25px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 35px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 30px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #d8dfe6;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.btn-icon.text-danger:hover {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

.table thead {
    background: var(--bg-secondary);
}

.table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* Improved column widths for users table */
.table th:nth-child(1) {
    width: 25%;
    min-width: 200px;
}

.table th:nth-child(2),
.table th:nth-child(3),
.table th:nth-child(4) {
    width: auto;
    white-space: nowrap;
}

.table td:last-child,
.table th:last-child {
    width: 100px;
    text-align: center;
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email-small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.hide-on-mobile {
    display: table-cell;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hide-on-tablet {
    display: table-cell;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-blue {
    background: #bee3f8;
    color: #2c5282;
}

.badge-purple {
    background: #e9d8fd;
    color: #553c9a;
}

.badge-green {
    background: #c6f6d5;
    color: #276749;
}

.badge-gray {
    background: #e2e8f0;
    color: #4a5568;
}

.badge-success {
    background: #c6f6d5;
    color: #276749;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Enterprise Badge */
.enterprise-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    position: relative;
}

.alert-success {
    background: #c6f6d5;
    color: #276749;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid var(--info-color);
}

.alert-dismissible {
    padding-right: 45px;
}

.alert-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.notification-item.unread {
    background: #ebf8ff;
    border-left: 3px solid var(--primary-color);
}

.notification-item.read {
    background: var(--bg-secondary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 20px 30px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 0;
}

.footer-brand .logo svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.footer-tagline {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 8px 0;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.footer-column a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-light);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-header h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    margin-bottom: 25px;
}

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

.demo-credentials {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: left;
}

.demo-credentials p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.demo-credentials .small {
    font-size: 0.8rem;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .navbar-container {
        grid-template-columns: 250px 1fr 380px;
        padding: 16px 30px;
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .navbar-container {
        grid-template-columns: 220px 1fr 320px;
        padding: 14px 25px;
        gap: 25px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 12px;
        justify-content: center;
    }
    
    .user-name {
        font-size: 0.95rem;
    }
    
    .workspace-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .navbar-container {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
        padding: 14px 20px;
    }
    
    .brand-name {
        display: none;
    }
    
    .user-info {
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        grid-template-columns: 1fr auto;
        padding: 10px 15px;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-center {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar-center.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 10px;
        gap: 4px;
    }
    
    .nav-link {
        width: 100%;
        padding: 14px 16px;
        justify-content: flex-start;
    }
    
    .nav-link span {
        display: inline;
    }
    
    .user-details {
        display: none;
    }
    
    .btn-logout span {
        display: none;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .week-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 10px;
    }
    
    /* Modern page header mobile improvements */
    .modern-page-header {
        margin-bottom: 20px;
    }
    
    .modern-title-section {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .modern-page-icon {
        width: 40px;
        height: 40px;
    }
    
    .modern-page-title {
        font-size: 1.5rem;
    }
    
    .modern-page-subtitle {
        font-size: 0.85rem;
    }
    
    .modern-header-with-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .modern-header-actions {
        width: 100%;
    }
    
    .modern-header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Card adjustments */
    .card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .form-card {
        padding: 20px 15px;
    }
    
    /* Form improvements for mobile */
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Date input specific fixes */
    input[type="date"] {
        min-width: 0;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding: 12px 10px;
    }
    
    input[type="date"]::-webkit-datetime-edit {
        font-size: 14px;
    }
    
    input[type="date"]::-webkit-calendar-picker-indicator {
        padding: 0;
        margin-left: 4px;
    }
    
    /* Time input specific fixes */
    input[type="time"] {
        min-width: 0;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding: 12px 10px;
    }
    
    input[type="time"]::-webkit-datetime-edit {
        font-size: 14px;
    }
    
    input[type="time"]::-webkit-calendar-picker-indicator {
        padding: 0;
        margin-left: 4px;
    }
    
    /* Number input specific fixes */
    input[type="number"] {
        min-width: 0;
        padding: 12px 10px;
    }
    
    /* Form actions - stack buttons */
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Hide duplicate email column on mobile */
    .hide-on-mobile {
        display: none !important;
    }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .hide-on-tablet {
        display: none !important;
    }
    
    /* Make table more compact on tablets */
    .table th,
    .table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .enterprise-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
    }
    
    .btn-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Table responsive improvements */
    .table-responsive {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        position: relative;
        width: 100%;
        margin: 0;
    }
    
    /* Scroll indicator hint - only for multi-column tables */
    .mobile-scroll-hint + .table-responsive {
        overflow-x: auto;
    }
    
    .mobile-scroll-hint + .table-responsive::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
        z-index: 1;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    /* Reports table specific - fit 3 columns on mobile */
    .table {
        width: 100%;
        margin: 0;
        table-layout: auto;
    }
    
    /* Override base thead background */
    .table thead {
        background: #f8fafc !important;
    }
    
    .table thead th {
        padding: 10px 6px;
        font-size: 0.8rem;
        background: #f8fafc !important;
    }
    
    .table tbody td {
        padding: 10px 6px;
        font-size: 0.8rem;
        background: #fff;
    }
    
    .table tbody td:first-child {
        font-weight: 600;
    }
    
    /* Specific column sizing for reports table */
    .table th:nth-child(1),
    .table td:nth-child(1) {
        width: 45%;
    }
    
    .table th:nth-child(2),
    .table td:nth-child(2) {
        width: 25%;
        text-align: center;
    }
    
    .table th:nth-child(3),
    .table td:nth-child(3) {
        width: 30%;
        text-align: right;
    }
    
    .user-cell {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 150px;
    }
    
    .action-buttons {
        display: flex;
        gap: 8px;
        justify-content: flex-start;
        min-width: 80px;
    }
    
    /* Stats grid for reports page */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Bulk schedule page improvements */
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    /* Alert messages */
    .alert {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    /* Badge sizing */
    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    /* Footer mobile improvements */
    .footer {
        padding: 25px 0;
        margin-top: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }
    
    .footer-section {
        width: 100%;
        min-width: unset;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - phones */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card {
        padding: 15px 10px;
        border-radius: 8px;
    }
    
    .form-card {
        padding: 15px 10px;
    }
    
    .modern-page-title {
        font-size: 1.25rem;
    }
    
    .modern-page-subtitle {
        font-size: 0.8rem;
    }
    
    .modern-page-icon {
        width: 36px;
        height: 36px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn svg {
        width: 16px;
        height: 16px;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Date inputs for small phones */
    input[type="date"] {
        font-size: 14px;
        padding: 10px 8px;
    }
    
    input[type="date"]::-webkit-datetime-edit {
        font-size: 13px;
    }
    
    /* Time inputs for small phones */
    input[type="time"] {
        font-size: 14px;
        padding: 10px 8px;
    }
    
    input[type="time"]::-webkit-datetime-edit {
        font-size: 13px;
    }
    
    /* Table even smaller */
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
    }
    
    .table th:nth-child(1),
    .table td:nth-child(1) {
        width: 40%;
        padding-left: 6px;
    }
    
    .table th:nth-child(2),
    .table td:nth-child(2) {
        width: 25%;
    }
    
    .table th:nth-child(3),
    .table td:nth-child(3) {
        width: 35%;
        padding-right: 6px;
    }
    
    /* Stat cards more compact */
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    /* User avatar smaller */
    .user-avatar-sm {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    /* Action buttons more compact */
    .btn-icon {
        width: 32px;
        height: 32px;
    }
    
    .btn-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Mobile scroll hint smaller */
    .mobile-scroll-hint {
        font-size: 0.85rem;
        padding: 8px;
    }
    
    /* Footer even more compact */
    .footer {
        padding: 20px 0;
        margin-top: 25px;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .footer-section p {
        font-size: 0.8rem;
    }
}

/* Report Actions */
.report-actions {
    margin-top: 20px;
    text-align: right;
}

@media (max-width: 768px) {
    .report-actions {
        text-align: center;
    }
    
    .report-actions .btn {
        width: 100%;
    }
}

/* Date Filter Form */
.date-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-filter-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.date-filter-row .form-group {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below content size */
    margin: 0;
}

.date-filter-row .form-group input {
    width: 100%;
}

@media (max-width: 768px) {
    .date-filter-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .date-filter-row .form-group {
        width: 100%;
    }
    
    .date-filter-form .btn {
        margin-top: 5px;
    }
}

/* Mobile Scroll Hint */
.mobile-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    color: #0066cc;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-scroll-hint svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mobile-scroll-hint {
        display: flex;
    }
}

/* Bulk Schedule Form Specific Styles */
.employee-selection-box {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
}

.employee-selection-box .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.employee-selection-box .checkbox-label:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.employee-selection-box .checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

@media (max-width: 768px) {
    .employee-selection-box {
        padding: 12px;
    }
    
    .days-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .employee-selection-box {
        max-height: 180px;
        padding: 10px;
    }
    
    .employee-selection-box .checkbox-label {
        padding: 6px;
        font-size: 0.9rem;
    }
}

/* Print Styles for Reports */
@media print {
    .navbar,
    .modern-page-header,
    .btn,
    .mobile-scroll-hint {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        page-break-inside: avoid;
    }
}

/* Touch Improvements for Mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    a, button, input[type="checkbox"], input[type="radio"], select {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .checkbox-label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Better spacing for clickable elements */
    .nav-link {
        min-height: 48px;
    }
    
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Analytics Styles */
.analytics-period-selector {
    display: flex;
    gap: 8px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.analytics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analytics-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.analytics-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-icon {
    font-size: 1.5rem;
}

.analytics-label {
    font-weight: 500;
    color: var(--text-primary);
}

.analytics-item-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.analytics-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.analytics-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-gray);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s ease;
}

/* Utility Classes */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

