/* Staff Schedule Management System - Main Stylesheet */

:root {
    --primary-color: #470e31;
    --primary-dark: #390a26;
    --secondary-color: #1d366e;
    --secondary-dark: #14264f;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #ffffff;
    --text-primary-dark: #000000;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(71, 14, 49, 0.15), 0 1px 2px 0 rgba(71, 14, 49, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(71, 14, 49, 0.15), 0 4px 6px -2px rgba(71, 14, 49, 0.1);
    --border-radius: 8px;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary-dark);
    line-height: 1.6;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-header p {
    color: #fff;
}

.login-form {
    text-align: left;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #470e31 0%, #1d366e 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: white;
    padding: 8px 16px;
    border-radius: 0;
    box-shadow: 
        0 2px 0 #fff,
        0 4px 4px rgba(0, 0, 0, 0.1),
        0 8px 8px rgba(71, 14, 49, 0.15),
        0 0 0 3px rgba(71, 14, 49, 0.1),
        0 0 0 6px rgba(71, 14, 49, 0.05);
    border: 2px solid #e5e7eb;
    border-radius: 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-logo::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 2px;
    z-index: -1;
}

.nav-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(71, 14, 49, 0.05) 100%);
    border-radius: 0;
    z-index: -1;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo i {
    font-size: 1.5rem;
    color: white;
    display: none; /* Hide icon when logo is present */
}

.nav-logo span {
    color: #470e31;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-user span {
    color: white;
}

/* Main Content */
.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 1%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

.page-header h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.week-navigation .btn {
    white-space: nowrap;
}

.week-display {
    padding: 0.5rem 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    min-width: 200px;
    text-align: center;
}

/* Buttons - Base styles (overridden by enhanced styles above) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Schedule Table */
.schedule-container {
    padding: 2rem;
}

.schedule-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.schedule-table th {
    background: var(--background-color);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary-dark);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    line-height: 1.3;
}

.schedule-table th small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 2px;
}

.schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.schedule-table tr:hover {
    background: var(--background-color);
}

.schedule-table tr:hover .staff-name {
    background: var(--surface-color) !important;
}

.staff-name {
    min-width: 150px;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid var(--border-color);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.staff-info strong {
    display: block;
    color: var(--text-primary-dark);
    margin-bottom: 0.25rem;
}

.staff-info small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.schedule-cell {
    min-width: 120px;
    text-align: center;
}

.shift-info {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.shift-info.completed {
    border-left-color: var(--success-color);
    background: #f0fdf4;
}

.shift-info.cancelled {
    border-left-color: var(--error-color);
    background: #fef2f2;
}

.shift-info.no_show {
    border-left-color: var(--warning-color);
    background: #fffbeb;
}

.shift-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shift-details {
    flex: 1;
}

.shift-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.shift-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 0.25rem;
}

.btn-edit, .btn-delete {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.btn-edit {
    color: var(--primary-color);
    background: rgba(71, 14, 49, 0.1);
}

.btn-edit:hover {
    background: rgba(71, 14, 49, 0.2);
    color: var(--primary-dark);
}

.btn-delete {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Disabled form fields */
.form-group input:disabled,
.form-group select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

.shift-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.shift-time.days-off {
    color: #f59e0b;
    font-weight: 600;
    font-style: italic;
}

.shift-notes {
    margin-top: 0.25rem;
    color: var(--text-secondary);
}

.no-shift {
    color: var(--text-secondary);
    font-style: italic;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary-dark);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    z-index: 1;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal.hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.modal-content {
    background: var(--surface-color);
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #470e31, #1d366e);
    color: white;
    border-bottom: none;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.close {
    font-size: 1.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 32px;
    background: #ffffff;
    max-height: 70vh;
    overflow-y: auto;
}

/* Enhanced Add Schedule Modal Styles */
.enhanced-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
}

.enhanced-modal .modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Form Sections */
.form-section {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: #470e31;
    font-size: 14px;
}

/* Radio Button Styling */
.radio-label {
    display: flex;
    align-items: center;
    margin-right: 24px;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #470e31;
    background: #470e31;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Schedule Sections */
.schedule-section {
    padding: 24px 32px;
    background: #ffffff;
}

.schedule-section .form-group {
    margin-bottom: 20px;
}

/* Multiple Select Styling */
select[multiple] {
    min-height: 120px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

select[multiple]:focus {
    outline: none;
    border-color: #470e31;
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.1);
}

select[multiple] option {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

select[multiple] option:hover {
    background-color: #f3f4f6;
}

select[multiple] option:checked {
    background-color: #470e31;
    color: white;
    font-weight: 600;
}

/* Date Range Container */
.date-range-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-range-container input[type="date"] {
    flex: 1;
    min-width: 150px;
}

.date-separator {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

/* Add Schedule Modal Specific Styles */
#addScheduleModal .modal-body {
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

#addScheduleModal .form-group {
    margin-bottom: 24px;
}

#addScheduleModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#addScheduleModal .form-group input,
#addScheduleModal .form-group select,
#addScheduleModal .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#addScheduleModal .form-group input:focus,
#addScheduleModal .form-group select:focus,
#addScheduleModal .form-group textarea:focus {
    outline: none;
    border-color: #470e31;
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.1);
    transform: translateY(-1px);
}

#addScheduleModal .form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

#addScheduleModal .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#addScheduleModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#addScheduleModal .btn-primary {
    background: linear-gradient(135deg, #470e31, #1d366e);
    color: white;
    border: none;
}

#addScheduleModal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

#addScheduleModal .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Edit Schedule Modal Specific Styles */
#editScheduleModal .modal-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 24px 32px;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

#editScheduleModal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

#editScheduleModal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

#editScheduleModal .modal-header h3 i {
    font-size: 1.25rem;
    opacity: 0.9;
}

#editScheduleModal .modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

#editScheduleModal .modal-header .close:hover {
    opacity: 1;
}

#editScheduleModal .modal-body {
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

#editScheduleModal .form-group {
    margin-bottom: 24px;
}

#editScheduleModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#editScheduleModal .form-group input,
#editScheduleModal .form-group select,
#editScheduleModal .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#editScheduleModal .form-group input:focus,
#editScheduleModal .form-group select:focus,
#editScheduleModal .form-group textarea:focus {
    outline: none;
    border-color: #470e31;
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.1);
    transform: translateY(-1px);
}

#editScheduleModal .form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

#editScheduleModal .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#editScheduleModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#editScheduleModal .btn-primary {
    background: linear-gradient(135deg, #470e31, #1d366e);
    color: white;
    border: none;
}

#editScheduleModal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

#editScheduleModal .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Disabled form fields */
.form-group input:disabled,
.form-group select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #d1d5db;
    box-shadow: none;
}

.form-group input:disabled:focus,
.form-group select:disabled:focus {
    border-color: #d1d5db;
    box-shadow: none;
    transform: none;
}

.form-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
    font-style: italic;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

/* Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary-dark);
    margin: 0;
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.card-content {
    padding: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background: #d1fae5;
    color: #065f46;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-holiday {
    background: #dbeafe;
    color: #470e31;
}

.badge-sick-leave {
    background: #fce7f3;
    color: #be185d;
}

.badge-personal-leave {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-other {
    background: #f3f4f6;
    color: #374151;
}

.badge-admin {
    background: #fef3c7;
    color: #92400e;
}

.badge-manager {
    background: #dbeafe;
    color: #470e31;
}

.badge-staff {
    background: #f3f4f6;
    color: #374151;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-scheduled {
    background: #dbeafe;
    color: #470e31;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-no-show {
    background: #fef3c7;
    color: #92400e;
}

.holiday-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.holiday-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.holiday-dates {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.holiday-reason {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.holiday-requested {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
}

.holiday-actions {
    display: flex;
    gap: 0.5rem;
}

.schedule-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.schedule-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.scheduled-days {
    font-weight: 600;
    color: var(--text-primary-dark);
}

.shifts {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th {
    background: var(--background-color);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary-dark);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.data-table tr:hover {
    background: var(--background-color);
}

.table-responsive {
    overflow-x: auto;
}

.text-muted {
    color: var(--text-secondary);
}

/* Admin Panel Styles */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary-dark);
    background: var(--background-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--background-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tab-header h3 {
    margin: 0;
    color: var(--text-primary-dark);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.settings-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.settings-card p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Form Sections */
.form-section {
    margin: 0 0 0 0;
    padding: 28px 32px;
    background: white;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.form-section:first-child {
    margin-top: 0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    margin: 0 0 24px 0;
    color: var(--text-primary-dark);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.form-section h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.form-section h4 i {
    color: var(--primary-color);
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

/* Enhanced Input Groups */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    z-index: 2;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s ease;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-primary-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(71, 14, 49, 0.1), 0 4px 12px rgba(0,0,0,0.1);
    background: white;
    transform: translateY(-1px);
}

.input-group input:hover,
.input-group select:hover,
.input-group textarea:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.input-group input:focus + i,
.input-group select:focus + i,
.input-group textarea:focus + i {
    color: var(--primary-color);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #adb5bd;
    font-style: normal;
    font-weight: 400;
}

/* Enhanced Labels */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.form-group label:after {
    content: '';
}

/* Required Field Indicator */
.form-group label:has(+ .input-group input[required]):after {
    content: ' *';
    color: var(--error-color);
    font-weight: bold;
    font-size: 16px;
}

/* Form Row Styling */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Modal Enhancements */
.modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-body .form-section:first-child {
    margin-top: 0;
}

.modal-body .form-section:last-child {
    margin-bottom: 0;
}

/* Enhanced Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #470e31);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 14, 49, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #475569);
    color: white;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569, #334155);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    border: 2px solid transparent;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Form Validation States */
.input-group input:invalid {
    border-color: var(--error-color);
}

.input-group input:valid {
    border-color: var(--success-color);
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Navbar Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navbar Mobile Styles */
    .navbar {
        position: relative;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        min-height: 64px;
        padding: 1rem;
    }
    
    /* Show hamburger menu on mobile */
    .nav-toggle {
        display: flex;
    }
    
    /* Hide menu by default on mobile */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #470e31 0%, #1d366e 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .nav-menu.show {
        max-height: 600px;
        padding: 1rem;
    }
    
    .nav-logo {
        padding: 6px 12px;
        box-shadow: 
            0 1px 0 #fff,
            0 3px 3px rgba(0, 0, 0, 0.1),
            0 6px 6px rgba(71, 14, 49, 0.15),
            0 0 0 2px rgba(71, 14, 49, 0.1);
    }
    
    .nav-logo img {
        height: 32px;
    }
    
    .nav-logo span {
        font-size: 0.95rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-user {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 0.75rem;
        gap: 0.5rem;
    }
    
    .nav-user span {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .header-actions .btn {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
    }
    
    .week-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .week-display {
        min-width: auto;
    }
    
    /* Additional mobile button styles for very small screens */
    @media (max-width: 480px) {
        .header-actions .btn {
            min-width: 100px;
            padding: 0.625rem 0.75rem;
            font-size: 0.8rem;
            white-space: normal;
        }
        
        .header-actions .btn i {
            font-size: 0.75rem;
        }
    }
    
    /* Schedule Container */
    .schedule-container {
        padding: 1rem;
    }
    
    /* Table Responsive */
    .schedule-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .schedule-table {
        min-width: 800px;
        font-size: 0.875rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Modal Responsive */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Main Content Padding */
    .main-content {
        padding: 1rem;
    }
    
    /* Container Padding */
    .container {
        padding: 1rem;
    }
    
    .holiday-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .holiday-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: flex-start;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: var(--primary-color);
        border-bottom-color: transparent;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
    }
    
    .shift-info {
        padding: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* Settings Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.settings-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #470e31, #1d366e);
}

.settings-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #470e31;
}

.settings-card h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.settings-card h4 i {
    margin-right: 12px;
    color: #470e31;
    font-size: 22px;
    width: 24px;
    text-align: center;
}

.settings-card p {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.5;
}

.settings-card .btn {
    width: 100%;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.settings-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 14, 49, 0.3);
}

/* Settings Modal Styles */
.settings-modal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.settings-modal .modal-header {
    background: linear-gradient(135deg, #470e31, #1d366e);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.settings-modal .modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.settings-modal .modal-header h3 i {
    margin-right: 12px;
    font-size: 24px;
}

.settings-modal .modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.settings-modal .modal-header .close:hover {
    opacity: 1;
}

.settings-modal .modal-body {
    padding: 24px;
    background: #f8f9fa;
}

.settings-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.settings-section h4 i {
    margin-right: 10px;
    color: #470e31;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #470e31;
}

/* Staff Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

/* Holiday Summary */
.holiday-summary .holiday-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.stat-item.highlight {
    background: linear-gradient(135deg, #470e31, #1d366e);
    color: white;
    border-color: #1d366e;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-item.highlight .stat-value {
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: #fff;
    font-weight: 500;
}

.stat-item.highlight .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Quick Actions */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.action-btn:hover {
    background: linear-gradient(135deg, #470e31, #1d366e);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 14, 49, 0.3);
}

.action-btn i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Week Navigation */
.week-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-week {
    font-weight: 600;
    color: white;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    min-width: 200px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-week strong {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    min-width: 200px;
    text-align: center;
    color: #292725;
    font-weight: 700;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.schedule-day {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 2px solid #e2e8f0;
}

.day-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.day-header h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.day-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.day-schedules {
    min-height: 60px;
}

.shift-item {
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shift-item:last-child {
    margin-bottom: 0;
}

.shift-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.shift-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.no-shift {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px 0;
}

.no-schedule {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-schedule i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.no-schedule h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

/* Requests List */
.requests-list {
    max-height: 400px;
    overflow-y: auto;
}

.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #e2e8f0;
}

.request-item:last-child {
    margin-bottom: 0;
}

.request-info {
    flex: 1;
}

.request-dates {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.request-days {
    color: var(--text-secondary);
    font-weight: normal;
}

.request-type {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.request-reason {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.request-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.no-requests {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-requests i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.no-requests a {
    color: var(--primary-color);
    text-decoration: none;
}

.no-requests a:hover {
    text-decoration: underline;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Staff Dashboard Header Navigation */
.header-right .nav-links {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.header-right .nav-links .btn {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Staff Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #470e31 0%, #1d366e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #470e31, #1d366e);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.login-logo-img {
    height: 80px;
    width: auto;
    margin: 0 auto 16px;
    display: block;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-header h1 {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary-dark);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.1);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
}

.login-footer {
    background: #f8fafc;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-footer strong {
    color: #470e31;
    font-weight: 700;
}

.login-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-links .link {
    color: #470e31;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.login-links .link:hover {
    color: #1d366e;
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .holiday-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .week-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-right .nav-links {
        flex-direction: column;
        gap: 4px;
    }
}

.info-item label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.info-item span {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.action-buttons .btn {
    margin: 0;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.backup-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.backup-item:last-child {
    border-bottom: none;
}

.backup-item:hover {
    background-color: #f8f9fa;
}

.backup-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.backup-info strong {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
}

.backup-date {
    color: #6c757d;
    font-size: 13px;
}

.backup-actions {
    display: flex;
    gap: 8px;
}

.backup-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* Enhanced Form styles for settings */
.settings-section .form-group {
    margin-bottom: 20px;
}

.settings-section .form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 15px;
}

.settings-section .form-group input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #470e31;
}

.settings-section .form-group input[type="email"],
.settings-section .form-group input[type="number"],
.settings-section .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.settings-section .form-group input[type="email"]:focus,
.settings-section .form-group input[type="number"]:focus,
.settings-section .form-group select:focus {
    outline: none;
    border-color: #470e31;
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.1);
    transform: translateY(-1px);
}

.settings-section .form-group input[type="email"]:hover,
.settings-section .form-group input[type="number"]:hover,
.settings-section .form-group select:hover {
    border-color: #470e31;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin: 32px 24px 24px 24px;
    padding: 24px 0 0 0;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 15px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.form-actions .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

/* Status indicators */
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive for settings */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .backup-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Modal responsive improvements */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .form-section {
        padding: 20px 24px;
    }
    
    .form-section h4 {
        font-size: 1.125rem;
        margin-bottom: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin: 24px 20px 20px 20px;
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 14px 18px 14px 46px;
        font-size: 16px;
    }
    
    .input-group i {
        left: 14px;
        font-size: 14px;
    }
}

/* Request Details Modal */
.request-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.detail-row label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
    margin-right: 15px;
}

.detail-row span {
    color: #666;
    flex: 1;
}

.reason-text {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #470e31;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 50px;
    max-height: 150px;
    overflow-y: auto;
}

/* Modern Holidays Admin Interface */
.holidays-admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.holidays-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #470e31 0%, #1d366e 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.header-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-number.pending { color: #f59e0b; }
.stat-number.approved { color: #10b981; }
.stat-number.rejected { color: #ef4444; }

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.empty-state-modern h3 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state-modern p {
    color: #6b7280;
    font-size: 1rem;
}

/* Modern Table Design */
.modern-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.table-wrapper {
    overflow-x: auto;
}

.modern-holiday-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.modern-holiday-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.modern-holiday-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-holiday-table th i {
    margin-right: 0.5rem;
    color: #6b7280;
}

.modern-holiday-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.modern-holiday-table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

.modern-holiday-table tbody tr.status-pending {
    border-left: 4px solid #f59e0b;
}

.modern-holiday-table tbody tr.status-approved {
    border-left: 4px solid #10b981;
}

.modern-holiday-table tbody tr.status-rejected {
    border-left: 4px solid #ef4444;
}

.modern-holiday-table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

/* Staff Column */
.staff-cell {
    min-width: 200px;
}

.staff-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staff-avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #470e31 0%, #1d366e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.staff-details {
    min-width: 0;
}

.staff-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    background-color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-position {
    color: #6b7280;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Type Column */
.type-cell {
    min-width: 150px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.type-badge.type-annual-leave {
    background: #dbeafe;
    color: #470e31;
}

.type-badge.type-sick-leave {
    background: #fef3c7;
    color: #d97706;
}

.type-badge.type-personal-leave {
    background: #e0e7ff;
    color: #5b21b6;
}

.type-badge.type-emergency-leave {
    background: #fee2e2;
    color: #dc2626;
}

/* Date Columns */
.date-cell {
    min-width: 120px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.date-display i {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Days Column */
.days-cell {
    min-width: 100px;
}

.duration-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.duration-display i {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Status Column */
.status-cell {
    min-width: 120px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.status-approved {
    background: #d1fae5;
    color: #059669;
}

.status-badge.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Actions Column */
.actions-cell {
    min-width: 150px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.view-btn {
    background: #470e31;
    color: white;
}

.view-btn:hover {
    background: #470e31;
    transform: translateY(-1px);
}

.approve-btn {
    background: #10b981;
    color: white;
}

.approve-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.reject-btn {
    background: #ef4444;
    color: white;
}

.reject-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.action-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.action-status.status-approved {
    background: #d1fae5;
    color: #059669;
}

.action-status.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Holiday Display in Schedule */
.shift-info.holiday {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.holiday-name {
    color: #92400e;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.holiday-name i {
    color: #f59e0b;
    font-size: 0.875rem;
}

.holiday-time {
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}

/* Holiday hover effects */
.shift-info.holiday:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
    border-color: #d97706;
}

/* Responsive Design */
@media (max-width: 768px) {
    .holidays-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .modern-holiday-table {
        font-size: 0.75rem;
    }
    
    .modern-holiday-table th,
    .modern-holiday-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .staff-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.625rem;
    }
    
    .holiday-name {
        font-size: 0.75rem;
    }
    
    .holiday-time {
        font-size: 0.625rem;
    }
}

/* Staff Dashboard Styles */
.dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    visibility: visible !important;
}

.dashboard-card {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    min-height: 200px !important;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #470e31 0%, #1d366e 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
}

.dashboard-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-card .card-header i {
    font-size: 1.2rem;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* Holiday Summary Card */
.holiday-summary .holiday-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.holiday-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.holiday-stats .stat-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.holiday-stats .stat-item.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #470e31;
}

.holiday-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #470e31;
    margin-bottom: 0.25rem;
}

.holiday-stats .stat-item.highlight .stat-value {
    color: #1d366e;
}

.holiday-stats .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions Card - Enhanced Styling */
.dashboard-card.quick-actions {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
}

.quick-actions .card-header {
    background: linear-gradient(135deg, #470e31 0%, #1d366e 100%) !important;
    color: white !important;
    padding: 1.5rem !important;
    border-bottom: none !important;
}

.quick-actions .card-header h3 {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.quick-actions .card-body {
    padding: 1.5rem !important;
    background: white !important;
}

.quick-actions .action-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
}

.quick-actions .action-btn {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.25rem !important;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    color: #374151 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    height: auto !important;
    text-align: left !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.quick-actions .action-btn:hover {
    background: #f8fafc !important;
    border-color: #470e31 !important;
    color: #470e31 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(71, 14, 49, 0.15) !important;
}

.quick-actions .action-btn i {
    font-size: 1.25rem !important;
    color: #6b7280 !important;
    width: 24px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.quick-actions .action-btn:hover i {
    color: #470e31 !important;
}

.quick-actions .action-btn span {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    flex: 1 !important;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.schedule-day {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
}

.schedule-day:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.day-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.day-header h4 {
    margin: 0 0 0.25rem 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.day-date {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.day-schedules {
    padding: 1rem;
}

.shift-item {
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #470e31;
}

.shift-item:last-child {
    margin-bottom: 0;
}

.shift-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.shift-time {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

.shift-time .days-off {
    color: #f59e0b;
    font-weight: 600;
}

.shift-notes {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.shift-notes i {
    color: #470e31;
}

.no-shift {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

/* Holiday Requests */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.request-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.request-info {
    flex: 1;
}

.request-dates {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.request-days {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.875rem;
}

.request-type {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.request-reason {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
}

.request-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-status.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.request-status.status-approved {
    background: #d1fae5;
    color: #059669;
}

.request-status.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

.no-requests {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.no-requests i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-requests a {
    color: #470e31;
    text-decoration: none;
    font-weight: 500;
}

.no-requests a:hover {
    text-decoration: underline;
}

/* Responsive Design for Staff Dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .holiday-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .holiday-stats .stat-item {
        padding: 0.75rem;
    }
    
    .holiday-stats .stat-value {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        gap: 0.75rem;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .request-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .request-status {
        align-self: flex-end;
    }
}

/* Holiday Request Actions */
.request-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.request-actions .request-status {
    margin: 0;
}

/* Withdraw Button */
.btn-danger {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-danger:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

.btn-danger:disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #007bff;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #374151;
}

.notification-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-content span {
    font-weight: 500;
    line-height: 1.4;
}

/* Request Item Animation */
.request-item {
    transition: all 0.3s ease;
}

.request-item.removing {
    opacity: 0.5;
    transform: translateX(-100%);
}

/* Responsive Design for Request Actions */
@media (max-width: 768px) {
    .request-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .request-actions .request-status {
        align-self: flex-start;
    }
    
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
}

/* Holiday Request Modal Specific Styling */
#holidayRequestModal {
    display: none !important;
    position: fixed !important;
    z-index: 2000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    animation: modalFadeIn 0.3s ease-out !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

/* When modal is shown */
#holidayRequestModal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* When modal is hidden */
#holidayRequestModal.hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Force modal to show when display is set to block */
#holidayRequestModal[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#holidayRequestModal .modal-content {
    background: white !important;
    margin: 5% auto !important;
    padding: 0 !important;
    border-radius: 16px !important;
    width: 90% !important;
    max-width: 600px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
}

#holidayRequestModal .modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 24px 32px !important;
    background: linear-gradient(135deg, #470e31 0%, #1d366e 100%) !important;
    color: white !important;
    border-bottom: none !important;
    position: relative !important;
}

#holidayRequestModal .modal-header::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1)) !important;
}

#holidayRequestModal .modal-header h3 {
    margin: 0 !important;
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

#holidayRequestModal .modal-header h3 i {
    font-size: 1.25rem !important;
    opacity: 0.9 !important;
}

#holidayRequestModal .close {
    font-size: 1.75rem !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1 !important;
}

#holidayRequestModal .close:hover {
    color: white !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

#holidayRequestModal .modal-body {
    padding: 32px !important;
    background: #ffffff !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

#holidayRequestModal .form-group {
    margin-bottom: 24px !important;
}

#holidayRequestModal .form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 0.95rem !important;
}

#holidayRequestModal .form-group select,
#holidayRequestModal .form-group input,
#holidayRequestModal .form-group textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    color: #374151 !important;
    background: white !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

#holidayRequestModal .form-group select:focus,
#holidayRequestModal .form-group input:focus,
#holidayRequestModal .form-group textarea:focus {
    outline: none !important;
    border-color: #470e31 !important;
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.1) !important;
}

#holidayRequestModal .form-group textarea {
    resize: vertical !important;
    min-height: 80px !important;
    font-family: inherit !important;
}

#holidayRequestModal .checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin: 0 !important;
}

#holidayRequestModal .checkbox-label input[type="checkbox"] {
    display: none !important;
}

#holidayRequestModal .checkbox-custom {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 4px !important;
    background: white !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

#holidayRequestModal .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #470e31 !important;
    border-color: #470e31 !important;
}

#holidayRequestModal .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Clone Schedule Modal Specific Styles */
#cloneScheduleModal .modal-header {
    background: linear-gradient(135deg, #1d366e, #470e31);
    color: white;
    padding: 24px 32px;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

#cloneScheduleModal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

#cloneScheduleModal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

#cloneScheduleModal .modal-header h3 i {
    font-size: 1.25rem;
    opacity: 0.9;
}

#cloneScheduleModal .modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

#cloneScheduleModal .modal-header .close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

#cloneScheduleModal .modal-body {
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

#cloneScheduleModal .form-group {
    margin-bottom: 24px;
}

#cloneScheduleModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    letter-spacing: 0.5px;
}

#cloneScheduleModal .form-group input,
#cloneScheduleModal .form-group select,
#cloneScheduleModal .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#cloneScheduleModal .form-group input:focus,
#cloneScheduleModal .form-group select:focus,
#cloneScheduleModal .form-group textarea:focus {
    outline: none;
    border-color: #1d366e;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

#cloneScheduleModal .form-group .form-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

#cloneScheduleModal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

#cloneScheduleModal .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#cloneScheduleModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#cloneScheduleModal .btn-primary {
    background: linear-gradient(135deg, #1d366e, #470e31);
    color: white;
    border: none;
}

#cloneScheduleModal .btn-primary:hover {
    background: linear-gradient(135deg, #470e31, #6d28d9);
}

#cloneScheduleModal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

#cloneScheduleModal .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

#cloneScheduleModal .checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin: 0 !important;
}

#cloneScheduleModal .checkbox-label input[type="checkbox"] {
    display: none !important;
}

#cloneScheduleModal .checkbox-custom {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 4px !important;
    background: white !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

#cloneScheduleModal .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #1d366e !important;
    border-color: #1d366e !important;
}

#cloneScheduleModal .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

#holidayRequestModal .form-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e5e7eb !important;
}

#holidayRequestModal .btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    min-height: 44px !important;
}

#holidayRequestModal .btn-secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

#holidayRequestModal .btn-secondary:hover {
    background: #e5e7eb !important;
    border-color: #9ca3af !important;
}

#holidayRequestModal .btn-primary {
    background: #470e31 !important;
    color: white !important;
}

#holidayRequestModal .btn-primary:hover {
    background: #470e31 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(71, 14, 49, 0.3) !important;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Password Change Modal Specific Styles */
#changePasswordModal .modal-content {
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#changePasswordModal .modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
}

#changePasswordModal .modal-header h3 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: white;
    font-weight: 600;
}

#changePasswordModal .modal-header h3 i {
    font-size: 1.25rem;
    opacity: 0.9;
}

#changePasswordModal .modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

#changePasswordModal .modal-header .close:hover {
    opacity: 1;
}

#changePasswordModal .modal-body {
    padding: 40px;
    background: #fafbfc;
}

#changePasswordModal .form-group {
    margin-bottom: 25px;
}

#changePasswordModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

#changePasswordModal .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

#changePasswordModal .form-control:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

#changePasswordModal .form-control[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

#changePasswordModal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

#changePasswordModal .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none;
}

#changePasswordModal .btn-secondary {
    background: #6c757d;
    color: white;
}

#changePasswordModal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

#changePasswordModal .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

#changePasswordModal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

#changePasswordModal .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design for Password Change Modal */
@media (max-width: 768px) {
    #changePasswordModal .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    #changePasswordModal .modal-header,
    #changePasswordModal .modal-body {
        padding: 20px;
    }
    
    #changePasswordModal .modal-header h3 {
        font-size: 1.25rem;
    }
    
    #changePasswordModal .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    #changePasswordModal .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Action Dropdown Styles */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown .btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-dropdown .btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.action-dropdown .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.25);
    border-color: #470e31;
}

.action-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 180px;
    padding: 8px 0;
    margin: 4px 0 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.action-dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    list-style: none;
}

.action-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.action-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #212529;
    transform: translateX(4px);
}

.action-dropdown .dropdown-item.text-danger {
    color: #dc3545;
}

.action-dropdown .dropdown-item.text-danger:hover {
    background: #f8d7da;
    color: #721c24;
}

.action-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.action-dropdown .dropdown-divider {
    height: 1px;
    margin: 6px 0;
    background: #dee2e6;
    border: none;
}

/* Responsive Design for Action Dropdown */
@media (max-width: 768px) {
    .action-dropdown .dropdown-menu {
        right: auto;
        left: 0;
        min-width: 160px;
    }
    
    .action-dropdown .dropdown-item {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* Responsive Design for Holiday Request Modal */
@media (max-width: 768px) {
    #holidayRequestModal .modal-content {
        margin: 10% auto !important;
        width: 95% !important;
        max-width: none !important;
    }
    
    #holidayRequestModal .modal-header,
    #holidayRequestModal .modal-body {
        padding: 20px !important;
    }
    
    #holidayRequestModal .modal-header h3 {
        font-size: 1.25rem !important;
    }
    
    #holidayRequestModal .form-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    #holidayRequestModal .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.loading-spinner {
    font-size: 2.5rem;
    color: #470e31;
    margin-bottom: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loading-content p {
    color: #495057;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.loading-overlay.hidden {
    display: none !important;
}

/* Schedule Table Loading State */
#schedule-table.loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Ensure table container has minimum height for overlay */
.table-responsive {
    min-height: 200px;
    position: relative;
}

/* Schedule table wrapper for main page */
.schedule-table-wrapper {
    min-height: 300px;
    position: relative;
}

/* Week Navigation Loading State */
.week-navigation.loading {
    position: relative;
}

.week-navigation.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(71, 14, 49, 0.05);
    border-radius: 8px;
    z-index: 1;
}

.week-navigation.loading button {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.week-navigation.loading .current-week {
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

/* Smooth transitions for loading states */
.loading-state, #schedule-table, .week-navigation {
    transition: all 0.3s ease;
}

/* Holiday Request Details Modal Specific Styles */
#requestDetailsModal .modal-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 24px 32px;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

#requestDetailsModal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

#requestDetailsModal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

#requestDetailsModal .modal-header h3 i {
    font-size: 1.25rem;
    opacity: 0.9;
}

#requestDetailsModal .modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

#requestDetailsModal .modal-header .close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

#requestDetailsModal .modal-body {
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

#requestDetailsModal .request-details-container {
    margin-bottom: 32px;
}

#requestDetailsModal .detail-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#requestDetailsModal .detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

#requestDetailsModal .detail-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

#requestDetailsModal .detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#requestDetailsModal .detail-label i {
    color: #f59e0b;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

#requestDetailsModal .detail-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

#requestDetailsModal .detail-value.reason-text {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    font-style: italic;
    min-height: 60px;
    display: flex;
    align-items: center;
}

#requestDetailsModal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

#requestDetailsModal .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

#requestDetailsModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#requestDetailsModal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

#requestDetailsModal .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

#requestDetailsModal .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

#requestDetailsModal .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

#requestDetailsModal .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

#requestDetailsModal .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Forgot Password Link Styling */
.forgot-password {
    text-align: center;
    margin: 20px 0;
}

.forgot-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.forgot-link:hover {
    color: #470e31;
    background: #eff6ff;
    text-decoration: none;
}

.forgot-link i {
    font-size: 12px;
}

/* Login and Auth Pages Styling */
.login-body, .auth-body {
    background: linear-gradient(135deg, #470e31 0%, #1d366e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.login-container, .auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-card, .auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

.login-header, .auth-header {
    /* background: linear-gradient(135deg, #470e31, #1d366e); */
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.login-logo, .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
}

.login-logo i, .auth-logo i {
    font-size: 2rem;
    opacity: 0.9;
}

.login-header h2, .auth-header h2 {
    margin: 0 0 12px 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.login-header p, .auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.5;
}

.login-form, .auth-form {
    padding: 40px 32px;
}

.login-form .form-group, .auth-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-group label, .auth-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-form .form-group label i, .auth-form .form-group label i {
    color: #6b7280;
    font-size: 14px;
    width: 16px;
}

.login-form input, .auth-form input {
    width: 100%;
    padding: 12px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.login-form input:focus, .auth-form input:focus {
    outline: none;
    border-color: #470e31;
    background: white;
    box-shadow: 0 0 0 3px rgba(71, 14, 49, 0.1);
}

.login-form .form-text, .auth-form .form-text {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.btn-full, .auth-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #470e31, #1d366e);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-full:hover, .auth-btn:hover {
    background: linear-gradient(135deg, #1d366e, #470e31);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(71, 14, 49, 0.3);
}

.btn-full:disabled, .auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-footer, .auth-footer {
    padding: 24px 32px;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.login-footer p, .auth-footer p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
}

.link, .auth-link {
    color: #470e31;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.link:hover, .auth-link:hover {
    color: #1d366e;
    text-decoration: none;
}

.link i, .auth-link i {
    font-size: 12px;
}

/* Change Password Modal Specific Styles */
#changePasswordModal .modal-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 24px 32px;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

#changePasswordModal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

#changePasswordModal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

#changePasswordModal .modal-header h3 i {
    font-size: 1.25rem;
    opacity: 0.9;
}

#changePasswordModal .modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

#changePasswordModal .modal-header .close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

#changePasswordModal .modal-body {
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

#changePasswordModal .form-group {
    margin-bottom: 24px;
}

#changePasswordModal .form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

#changePasswordModal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

#changePasswordModal .form-group input:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

#changePasswordModal .form-text {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

#changePasswordModal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

#changePasswordModal .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

#changePasswordModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#changePasswordModal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

#changePasswordModal .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

#changePasswordModal .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

#changePasswordModal .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
}
