/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.login-header h1 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.25);
}

/* Required field styling */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group textarea[required] {
    border-left: 4px solid #ffc107;
}

.form-group textarea[required]:focus {
    border-left: 4px solid #667eea;
}

.form-group small {
    color: #666;
    font-size: 0.875rem;
    display: none;
}

.form-group .help-text {
    color: #6c757d;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
    font-style: italic;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: inherit;
}

.btn.loading.btn-primary::after {
    border-top-color: white;
}

.btn.loading.btn-secondary::after {
    border-top-color: white;
}

.btn.loading.btn-success::after {
    border-top-color: white;
}

.btn.loading.btn-danger::after {
    border-top-color: white;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header h1 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 600;
    color: #555;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Dashboard Styles */
.dashboard-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.status-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.status-card h2 {
    margin-bottom: 1rem;
    color: #333;
}

.status-info {
    margin-bottom: 2rem;
}

.status-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Calendar Styles */
.calendar-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.calendar-controls #weekRange {
    font-weight: 600;
    color: #333;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.calendar-controls .btn {
    white-space: nowrap;
}

.calendar-controls #currentWeek {
    order: -1;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .calendar-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .calendar-controls #weekRange {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .header-content {
        padding: 0.75rem 1rem;
    }
    
    .header-brand {
        gap: 0.5rem;
    }
    
    .header-logo {
        height: 32px;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
    
    .login-logo {
        height: 50px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}

.weekly-calendar {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: #e1e5e9;
    border-radius: 5px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.calendar-time-header {
    background: #f8f9fa;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e1e5e9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e1e5e9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.calendar-day-header.today {
    background: #667eea;
    color: white;
}

.calendar-time-slot {
    background: #f8f9fa;
    padding: 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #666;
    border-right: 1px solid #e1e5e9;
    min-height: 40px;
    writing-mode: horizontal-tb;
    text-align: center;
}

.calendar-day-slot {
    background: white;
    min-height: 40px;
    position: relative;
    border-right: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    overflow: hidden;
}

.calendar-day-slot:hover {
    background: #f8f9fa;
}

.calendar-day-slot.today {
    background: #f0f7ff;
}

.session-indicator {
    position: absolute;
    left: 2px;
    right: 2px;
    background: #28a745;
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.65rem;
    text-align: center;
    z-index: 5;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.session-indicator:hover {
    background: #218838;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.session-indicator.active {
    background: #fd7e14;
    animation: pulse 2s infinite;
}

.session-indicator.partial {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.session-indicator.consolidated {
    background: linear-gradient(135deg, #6f42c1 0%, #5a67d8 100%);
    font-weight: 600;
}

.session-indicator.consolidated:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4c51bf 100%);
}

.session-indicator.extending {
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.session-indicator.extending::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(253, 126, 20, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(253, 126, 20, 0);
    }
}

/* Session Details Modal */
.session-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.session-details-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.session-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e5e9;
}

.session-details-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.session-details-close {
    background: #f8f9fa;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.2s ease;
}

.session-details-close:hover {
    background: #e9ecef;
    color: #333;
}

.session-timeline {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.timeline-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-align: center;
}

.timeline-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.timeline-session {
    position: absolute;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 600;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.session-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.session-card.active {
    border-color: #fd7e14;
    background: #fff7f0;
}

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

.session-card-time {
    font-weight: 600;
    color: #333;
}

.session-card-duration {
    font-size: 0.9rem;
    color: #666;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.session-card-duration.active {
    background: #fd7e14;
    color: white;
    border-color: #fd7e14;
}

.session-card-notes {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Sessions Styles */
.sessions-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sessions-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.session-item.active {
    border-left-color: #28a745;
    background: #e8f5e8;
}

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

.session-time {
    font-weight: 600;
    color: #333;
}

.session-duration {
    color: #666;
    font-size: 0.9rem;
}

.session-details {
    color: #666;
    font-size: 0.9rem;
}

.session-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.session-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: auto;
}

.session-user {
    font-weight: 600;
    color: #333;
}

.session-notes {
    margin-top: 0.5rem;
    font-style: italic;
    color: #777;
}

/* Admin Styles */
.admin-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: white;
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.tab-button:hover {
    color: #667eea;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

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

.section-header h2 {
    color: #333;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 0.5rem;
    border: 1px solid #e1e5e9;
    border-radius: 3px;
}

/* User List Styles */
.users-list {
    display: grid;
    gap: 1rem;
}

.user-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.user-details {
    color: #666;
    font-size: 0.9rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Deactivated User Styles */
.user-item.deactivated {
    background: #f1f1f1;
    border-left: 4px solid #6c757d;
    opacity: 0.8;
}

.user-item.deactivated .user-name {
    color: #6c757d;
}

.user-item.deactivated .user-details {
    color: #adb5bd;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.text-muted {
    color: #6c757d !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Error and Success Messages */
.error-message,
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    z-index: 1000;
    max-width: 400px;
    word-wrap: break-word;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Custom Time Validation Popup */
.time-validation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    margin: 1rem;
    animation: slideIn 0.3s ease;
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.popup-message {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.popup-close {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.popup-content.shake {
    animation: shake 0.5s ease-in-out;
}

/* Calendar Styles */

/* FullCalendar Custom Styles */
.full-calendar-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.fc-theme-standard .fc-scrollgrid {
    border: 1px solid #e0e4e7;
}

.fc-event {
    border-radius: 4px !important;
    border: none !important;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 4px;
}

.fc-event.active-session {
    background: #fd7e14 !important;
    color: white !important;
    animation: pulse 2s infinite;
}

.fc-timegrid-slot {
    height: 3rem !important;
}

.fc-timegrid-slot-label {
    vertical-align: middle;
    font-size: 0.8rem;
    color: #666;
}

.fc-col-header-cell {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.fc-today {
    background: #f0f7ff !important;
}

.fc-event:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* Calendar section styles */
.calendar-section {
    margin: 2rem 0;
}

.calendar-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Report Table Styles */
.report-results {
    margin-top: 2rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.report-table thead {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d72 100%);
    color: white;
}

.report-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.report-table tbody tr {
    transition: background-color 0.2s ease;
}

.report-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.report-table tbody tr:hover {
    background-color: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e0e4e7;
    font-size: 0.9rem;
    color: #495057;
}

.report-table tbody td:first-child {
    font-weight: 600;
    color: #2c5aa0;
}

.report-table tbody td:nth-child(3),
.report-table tbody td:nth-child(4),
.report-table tbody td:nth-child(5) {
    text-align: center;
    font-weight: 500;
}

/* Report table improvements for approval and hours columns */
.report-table th:nth-child(4),
.report-table th:nth-child(5),
.report-table th:nth-child(6),
.report-table th:nth-child(7),
.report-table th:nth-child(8),
.report-table th:nth-child(9) {
    text-align: center;
    min-width: 80px;
}

.report-table td:nth-child(4),
.report-table td:nth-child(5),
.report-table td:nth-child(6),
.report-table td:nth-child(7),
.report-table td:nth-child(8),
.report-table td:nth-child(9) {
    text-align: center;
}

/* Responsive table handling */
@media (max-width: 768px) {
    .report-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .report-table th,
    .report-table td {
        padding: 8px 4px;
        min-width: 60px;
    }
    
    .report-table thead th {
        font-size: 0.7rem;
    }
    
    /* Hide less important columns on mobile */
    .report-table th:nth-child(2),
    .report-table td:nth-child(2) {
        display: none;
    }
}

/* Report Summary Styles */
.report-results h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.report-results > div:last-child {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.report-results > div:last-child p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #495057;
}

.report-results > div:last-child p strong {
    color: #2c5aa0;
    font-weight: 600;
}

/* Responsive design for report table */
@media (max-width: 768px) {
    .report-table {
        font-size: 0.8rem;
    }
    
    .report-table thead th,
    .report-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .report-table thead th {
        font-size: 0.8rem;
    }
}

/* Form Select Styling */
.form-select {
    padding: 0.5rem;
    border: 1px solid #e1e5e9;
    border-radius: 3px;
    background-color: white;
    font-size: 0.9rem;
    min-width: 200px;
    color: #495057;
}

.form-select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

/* PDF Export Specific Styles */
.report-results {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.pdf-header {
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 2px solid #2c5aa0;
}

.pdf-header h2 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
}

.pdf-header p {
    margin: 5px 0;
    font-size: 14px;
}

.report-results h3 {
    color: #2c5aa0;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Ensure good contrast for PDF */
.report-table th {
    background-color: #2c5aa0 !important;
    color: white !important;
}

.report-table td {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Summary section styling for PDF */
.report-results div:last-child {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #2c5aa0;
}

/* Manager and Approval Styles */
.approval-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.approval-container input[type="checkbox"] {
    margin-right: 5px;
}

.session-approval {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-right: 10px;
}

.session-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.session-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#managerSelectGroup {
    margin-top: 10px;
}

/* Custom checkbox styling for lunch break */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    padding: 10px 0;
    user-select: none;
}

/* Override form-group label styling for checkboxes */
.form-group .checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label .checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkbox-label .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    display: block;
}

.checkbox-label:hover .checkmark {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Time-Off Styles */
.timeoff-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.balance-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.balance-item.used {
    border-left-color: #dc3545;
}

.balance-item.available {
    border-left-color: #28a745;
}

.balance-label {
    font-weight: 600;
    color: #495057;
}

.balance-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.balance-value.used {
    color: #dc3545;
}

.balance-value.available {
    color: #28a745;
}

.timeoff-requests-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.requests-list {
    display: grid;
    gap: 1rem;
}

.request-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
}

.request-item.pending {
    border-left-color: #ffc107;
    background: #fff8e1;
}

.request-item.approved {
    border-left-color: #28a745;
    background: #f1f8e9;
}

.request-item.rejected {
    border-left-color: #dc3545;
    background: #ffeaa7;
}

.request-item.cancelled {
    border-left-color: #6c757d;
    background: #f8f9fa;
    opacity: 0.8;
}

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

.request-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.request-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.request-status.pending {
    background: #ffc107;
    color: #856404;
}

.request-status.approved {
    background: #28a745;
    color: white;
}

.request-status.rejected {
    background: #dc3545;
    color: white;
}

.request-status.cancelled {
    background: #6c757d;
    color: white;
}

.request-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.request-detail {
    color: #666;
}

.request-detail strong {
    color: #333;
}

.request-reason {
    background: white;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    font-style: italic;
    margin-bottom: 1rem;
}

.request-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.calculated-days {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    margin-top: 1rem;
}

.approval-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.approval-actions {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.reason-text {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    font-style: italic;
    margin: 0.5rem 0;
    white-space: pre-wrap;
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #495057;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Time-Off Request Cards */
.request-card.admin-request {
    background: white;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 5px solid #6c757d;
}

.request-card.admin-request:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.request-card.admin-request.status-pending {
    border-left-color: #ffc107;
    background: linear-gradient(to right, #fff8e1 0%, white 10%);
}

.request-card.admin-request.status-approved {
    border-left-color: #28a745;
    background: linear-gradient(to right, #f1f8e9 0%, white 10%);
}

.request-card.admin-request.status-rejected {
    border-left-color: #dc3545;
    background: linear-gradient(to right, #ffeee9 0%, white 10%);
}

.request-card .request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.request-card .request-employee {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.request-card .request-employee strong {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.request-card .employee-role {
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

.request-card .request-status {
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-card .request-status.status-pending {
    background: #ffc107;
    color: #856404;
}

.request-card .request-status.status-approved {
    background: #28a745;
    color: white;
}

.request-card .request-status.status-rejected {
    background: #dc3545;
    color: white;
}

.request-card .request-details {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.request-card .request-details > div {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
}

.request-card .request-dates {
    border-left-color: #007bff !important;
}

.request-card .request-duration {
    border-left-color: #17a2b8 !important;
}

.request-card .request-reason {
    border-left-color: #6f42c1 !important;
}

.request-card .manager-comments {
    border-left-color: #fd7e14 !important;
    background: #fff3cd !important;
}

.request-card .request-details strong {
    color: #495057;
    margin-right: 0.8rem;
    min-width: 80px;
    font-weight: 600;
}

.request-card .request-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #f8f9fa;
}

.request-card .request-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.request-card .request-meta small {
    color: #6c757d;
    font-size: 0.8rem;
}

.request-card .approval-actions {
    display: flex;
    gap: 0.8rem;
}

.request-card .approval-actions .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.request-card .approval-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.request-card .approval-actions .btn-success {
    background: linear-gradient(45deg, #28a745, #34ce57);
    color: white;
}

.request-card .approval-actions .btn-danger {
    background: linear-gradient(45deg, #dc3545, #e55353);
    color: white;
}

.no-requests {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}
