/**
 * Main Stylesheet - Vacation Management System
 * Responsive design with hamburger menu
 */

/* ========== RESET & GENERAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* ========== APP CONTAINER ========== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ========== TOPBAR ========== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 4px;
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #fecaca;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout-icon {
    font-size: 14px;
}

.logout-text {
    font-size: 13px;
}

/* Hamburger Button */
.hamburger-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.3s;
}

.hamburger-btn:hover {
    background: #f7fafc;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #2d3748;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Logo */
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-img {
    height: 28px;
    width: auto;
}

.logo-text {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

/* Topbar Stats */
.topbar-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f7fafc;
    font-size: 13px;
}

.stat-icon {
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #2d3748;
}

.stat-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 2px;
}

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

.badge-approved {
    background: #d1fae5;
    color: #065f46;
}

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

/* Balance coloring */
.balance-stat {
    font-weight: 700;
}

.balance-good {
    background: #d1fae5;
    color: #065f46;
}

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

.balance-low {
    background: #fee2e2;
    color: #991b1b;
}

/* ========== HAMBURGER MENU ========== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.hamburger-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.hamburger-menu.active {
    left: 0;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.menu-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.menu-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #718096;
    line-height: 1;
    padding: 0;
    border-radius: 4px;
    transition: all 0.3s;
}

.menu-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.menu-items {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.menu-item:hover {
    background: #f7fafc;
    color: #667eea;
}

.menu-item.active {
    background: #eff6ff;
    color: #667eea;
    border-left: 4px solid #667eea;
    padding-left: 16px;
}

.menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-weight: 500;
}

.menu-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background: #667eea;
    color: white;
}

.menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

/* ========== MAIN AREA ========== */
.main-area {
    flex: 1;
    overflow-y: auto;
    background: #f5f7fa;
    padding: 0;
}

.content-section {
    display: none;
    height: 100%;
}

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

/* Calendar full screen */
#section-calendar {
    padding: 0;
}

#calendar {
    height: calc(100vh - 40px);
    padding: 20px;
    background: white;
}

/* Other sections */
.section-header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

.section-content {
    padding: 20px;
}

.loading-text {
    text-align: center;
    color: #718096;
    padding: 40px 20px;
}

/* ========== LOGIN PAGE ========== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

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

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-header p {
    color: #718096;
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #a0aec0;
}

/* ========== ALERTS ========== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.alert::before {
    font-size: 16px;
    flex-shrink: 0;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 3px solid #dc2626;
}

.alert-error::before {
    content: '⚠️';
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 3px solid #10b981;
}

.alert-success::before {
    content: '✓';
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.alert-warning::before {
    content: '⚠️';
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.alert-info::before {
    content: 'ℹ️';
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Info boxes for modal */
.info-box {
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    font-weight: 600;
}

.info-box-primary {
    background: #eff6ff;
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.info-box-success {
    background: #f0fdf4;
    color: #166534;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* ========== VACATION SUMMARY CARDS (NEW MODERN DESIGN) ========== */
.vacation-summary {
    margin-bottom: 20px;
}

.summary-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.summary-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.summary-card-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.summary-card-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    color: #718096;
    letter-spacing: 0.5px;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.summary-card-value {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
    margin-left: 34px;
    word-break: break-all;
    overflow-wrap: break-word;
}

.summary-card-value.date-value {
    margin-left: 0;
    margin-top: 4px;
    font-size: 15px;
}

.summary-card.highlight .summary-card-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
}

.summary-card.warning::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.summary-card.warning .summary-card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.summary-card.success::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.summary-card.success .summary-card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.summary-card.danger::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.summary-card.danger .summary-card-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.summary-card.danger .summary-card-value {
    color: #dc2626;
}

/* Summary grid layout */
.summary-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.summary-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .summary-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.summary-card-large {
    grid-column: span 2;
    margin-bottom: 0;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #e2e8f0 50%, transparent 100%);
    margin: 16px 0;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3::before {
    content: '🏖️';
    font-size: 22px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-footer {
    padding: 16px 20px;
    background: linear-gradient(to top, #f8fafc 0%, white 100%);
    border-top: 1px solid #e2e8f0;
    text-align: right;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ========== TABLE ========== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    font-size: 13px;
    text-transform: uppercase;
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:hover {
    background-color: #f7fafc;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

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

.badge-approved {
    background-color: #d1fae5;
    color: #065f46;
}

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

.badge-cancelled {
    background-color: #e5e7eb;
    color: #374151;
}

/* ========== FULLCALENDAR CUSTOMIZATION ========== */
.fc {
    font-family: inherit;
}

.fc-event {
    cursor: pointer;
}

.event-pending {
    opacity: 0.85;
    border-style: dashed !important;
    border-width: 2px !important;
}

/* Custom day cell styling */
.custom-day-cell {
    padding: 4px;
    text-align: center;
}

.custom-day-cell .day-number {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.custom-day-cell .day-date {
    font-size: 10px;
    color: #718096;
    text-transform: uppercase;
}

/* Highlight today */
.custom-day-cell.is-today {
    background: transparent;
    border-radius: 0;
    padding: 4px;
}

.custom-day-cell.is-today .day-number {
    color: #FF00CD;
    font-size: 20px;
    font-weight: 700;
}

.custom-day-cell.is-today .day-date {
    color: #FF00CD;
    font-weight: 700;
}

/* FullCalendar today cell - border only */
.fc .fc-day-today {
    background: transparent !important;
    border: 3px solid #FF00CD !important;
    box-shadow: inset 0 0 0 1px #FF00CD;
}

/* Holiday background events */
.fc .fc-bg-event {
    opacity: 1 !important;
}

.fc .fc-daygrid-day.fc-day-past .fc-bg-event,
.fc .fc-daygrid-day.fc-day-future .fc-bg-event,
.fc .fc-daygrid-day.fc-day-today .fc-bg-event {
    opacity: 1 !important;
}

.fc .fc-event[data-type="holiday"] {
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Highlight Sundays with same red background */
.fc .fc-day-sun {
    background: rgba(220, 38, 38, 0.3) !important;
}

/* Temporary date selection */
.fc-daygrid-day.temp-selected {
    background-color: rgba(102, 126, 234, 0.15) !important;
    border: 2px solid #667eea !important;
    position: relative;
}

.fc-daygrid-day.temp-selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    color: #667eea;
    font-size: 16px;
    font-weight: bold;
}

/* Calendar message */
.calendar-message {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Customize toolbar layout - center everything */
.fc .fc-toolbar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.fc .fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Center title and make it prominent */
.fc .fc-toolbar-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #2d3748;
    margin: 0 20px;
}

/* Style navigation buttons */
.fc .fc-button {
    background: white !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s !important;
}

.fc .fc-button:hover {
    background: #f7fafc !important;
    border-color: #cbd5e0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.fc .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.fc .fc-button-active {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

.fc .fc-button-active:hover {
    background: #5568d3 !important;
    border-color: #5568d3 !important;
}

/* Make prev/next buttons icon-based */
.fc .fc-prev-button,
.fc .fc-next-button {
    padding: 8px 12px !important;
    min-width: 40px !important;
}

.fc .fc-today-button {
    background: #eff6ff !important;
    color: #667eea !important;
    border-color: #c7d2fe !important;
}

.fc .fc-today-button:hover {
    background: #dbeafe !important;
}

/* Responsive toolbar */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        gap: 12px;
        padding: 12px 0;
    }
    
    .fc .fc-toolbar-title {
        font-size: 18px !important;
        margin: 0 12px;
    }
    
    .fc .fc-button {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    .fc .fc-prev-button,
    .fc .fc-next-button {
        padding: 6px 10px !important;
        min-width: 36px !important;
    }
}

@media (max-width: 480px) {
    .fc .fc-toolbar {
        gap: 8px;
        padding: 8px 0;
    }
    
    .fc .fc-toolbar-title {
        font-size: 16px !important;
        margin: 0 8px;
    }
    
    .fc .fc-button {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet Portrait / Large Mobile (768px - 1024px) */
@media (max-width: 1024px) {
    .logo-text {
        font-size: 14px;
    }
    
    .topbar-stat {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .user-name-full {
        display: none;
    }
    
    .user-name-short {
        display: inline;
    }
    
    .user-name-initials {
        display: none;
    }
    
    .logout-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) {
    .topbar {
        padding: 0 10px;
        height: 38px;
    }
    
    .topbar-left {
        gap: 8px;
    }
    
    .topbar-right {
        gap: 6px;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .topbar-divider {
        display: none;
    }
    
    .workdays-stat {
        display: none;
    }
    
    .user-name-short {
        display: none;
    }
    
    .user-name-initials {
        display: inline;
    }
    
    .logout-text {
        display: none;
    }
    
    .logout-btn {
        padding: 6px;
        min-width: 32px;
        justify-content: center;
    }
    
    #calendar {
        height: calc(100vh - 38px);
        padding: 12px;
    }
    
    .hamburger-menu {
        width: 80%;
        max-width: 300px;
    }
}

/* Mobile Small (< 480px) */
@media (max-width: 480px) {
    .topbar {
        height: 36px;
        padding: 0 8px;
    }
    
    .topbar-left {
        gap: 6px;
    }
    
    .topbar-right {
        gap: 4px;
    }
    
    .logo-img {
        display: none;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .topbar-stat {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .stat-icon {
        font-size: 12px;
    }
    
    .requests-stat {
        padding: 3px 5px;
    }
    
    .hamburger-btn {
        width: 28px;
        height: 28px;
    }
    
    .hamburger-btn span {
        width: 18px;
    }
    
    .logout-btn {
        padding: 5px;
        min-width: 28px;
    }
    
    .logout-icon {
        font-size: 12px;
    }
    
    #calendar {
        height: calc(100vh - 36px);
        padding: 8px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 16px;
    }
    
    .btn {
        min-height: 44px;
        font-size: 16px;
    }
    
    .form-control {
        font-size: 16px;
        min-height: 48px;
    }
}

/* Hide responsive elements by default */
.user-name-short,
.user-name-initials,
.stat-value-short {
    display: none;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
/* ========== CONFIGURATION PAGE ========== */
.config-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px 30px 20px;
}

.config-header {
    margin-bottom: 20px;
    text-align: center;
}

.config-header h1 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 4px;
}

.config-subtitle {
    color: #718096;
    font-size: 13px;
}

.config-form {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 14px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 600;
    font-size: 13px;
}

.required {
    color: #e53e3e;
}

.form-control {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    display: block;
    margin-top: 3px;
    color: #718096;
    font-size: 11px;
    line-height: 1.3;
}

.form-help a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.form-help a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.4;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 1024px) {
    .config-container {
        max-width: 100%;
        margin: 15px auto 25px;
    }
}

@media (max-width: 768px) {
    .config-container {
        margin: 10px auto 20px;
        padding: 0 12px 20px 12px;
    }
    
    .config-form {
        padding: 18px 14px;
    }
    
    .config-header h1 {
        font-size: 22px;
    }
    
    .config-subtitle {
        font-size: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ========== MAIN CONTENT SCROLL ========== */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 40px);
}

/* ========== MY REQUESTS SECTION ========== */
.requests-group {
    margin-bottom: 32px;
}

.group-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.requests-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

.requests-table-grid th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requests-table-grid td {
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #4a5568;
}

.requests-table-grid tbody tr:hover {
    background: #f7fafc;
}

.requests-table-grid tbody tr:last-child td {
    border-bottom: none;
}

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

.comment {
    color: #718096;
    font-style: italic;
}

.comment-row td {
    background: #f7fafc;
    padding: 10px 12px;
    font-size: 13px;
}

.admin-comment {
    color: #c53030;
    border-left: 3px solid #fc8181;
}

.approval-info {
    color: #2f855a;
    border-left: 3px solid #68d391;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.badge-approved {
    background: #d1fae5;
    color: #065f46;
}

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

/* Small buttons */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

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

.btn-small.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* Loading/error text */
.loading-text, .error-text {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #718096;
}

.error-text {
    color: #e53e3e;
}

/* Responsive */
@media (max-width: 768px) {
    .requests-table {
        overflow-x: auto;
    }
    
    .requests-table-grid {
        min-width: 600px;
    }
    
    .requests-table-grid th,
    .requests-table-grid td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .group-title {
        font-size: 16px;
    }
}

.badge-past {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-future {
    background: #dbeafe;
    color: #1e40af;
}

/* ========== REQUEST DETAIL MODAL ========== */
.modal-large {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.request-detail-container {
    padding: 8px;
}

.detail-section-compact {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-section-compact:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.detail-item-inline {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.detail-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    min-width: 90px;
}

.detail-value {
    font-size: 14px;
    color: #2d3748;
}

.text-danger {
    color: #e53e3e;
}

.text-warning {
    color: #ed8936;
}

.text-success {
    color: #38a169;
}

/* Comment boxes */
.comment-box {
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.user-comment {
    background: #edf2f7;
    border-left: 3px solid #4299e1;
    color: #2d3748;
}

.system-comment {
    background: #fef5e7;
    border-left: 3px solid #f6ad55;
    color: #744210;
}

.manager-comment {
    background: #fed7d7;
    border-left: 3px solid #fc8181;
    color: #742a2a;
}

.approval-badge {
    background: #c6f6d5;
    border-left: 3px solid #48bb78;
    padding: 10px 12px;
    border-radius: 6px;
    color: #22543d;
    font-size: 13px;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

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

/* Reject form */
.reject-form {
    margin-top: 12px;
    padding: 12px;
    background: #fff5f5;
    border-radius: 6px;
    border: 2px solid #feb2b2;
}

.reject-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #742a2a;
    margin-bottom: 6px;
}

.reject-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #fc8181;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.reject-form textarea:focus {
    outline: none;
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.reject-form-buttons {
    display: flex;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-large {
        max-width: 95%;
        margin: 10px;
    }
    
    .detail-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .reject-form-buttons {
        flex-direction: column;
    }
}

/* Request Detail Modal - Custom styles */
#requestDetailModal .modal-header {
    padding: 12px 16px;
}

#requestDetailModal .modal-header h2 {
    font-size: 18px;
    color: white;
    margin: 0;
}

#requestDetailModal .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

#requestDetailModal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#requestDetailModal .modal-body {
    padding: 12px;
    max-height: calc(85vh - 60px);
}

/* ========== ALL REQUESTS TABLE (OWNER) ========== */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

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

.all-requests-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.all-requests-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

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

.all-requests-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-requests-table th.text-center {
    text-align: center;
}

.all-requests-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.all-requests-table tbody tr.request-row:hover {
    background: #f7fafc;
}

.comment-preview {
    color: #718096;
    font-style: italic;
    display: block;
    margin-top: 4px;
}

.comment-row td {
    background: #fef5e7;
    padding: 8px 12px;
    font-size: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.system-comment-cell {
    color: #744210;
}

/* Table actions */
.table-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.btn-icon.btn-info {
    background: #e0e7ff;
    color: #4c51bf;
}

.btn-icon.btn-info:hover {
    background: #c3dafe;
    transform: scale(1.1);
}

.btn-icon.btn-success {
    background: #d1fae5;
    color: #065f46;
}

.btn-icon.btn-success:hover {
    background: #a7f3d0;
    transform: scale(1.1);
}

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

.btn-icon.btn-danger:hover {
    background: #fecaca;
    transform: scale(1.1);
}

/* Request row status colors */
.request-row.pending {
    border-left: 4px solid #f59e0b;
}

.request-row.approved {
    border-left: 4px solid #10b981;
}

.request-row.rejected {
    border-left: 4px solid #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
    }
    
    .filter-tab {
        width: 100%;
    }
    
    .all-requests-table-wrapper {
        overflow-x: scroll;
    }
}

/* Search box */
.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 0 0 300px;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: #a0aec0;
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
    }
    
    .search-box {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ========== PENDING REQUESTS ALERT ========== */
.pending-alert {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pending-alert-icon {
    font-size: 40px;
    line-height: 1;
}

.pending-alert-content {
    flex: 1;
}

.pending-alert-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
}

.pending-alert-content p {
    margin: 0;
    font-size: 14px;
    color: #78350f;
}

.pending-alert-content strong {
    font-size: 16px;
    color: #f59e0b;
}

.pending-alert-action {
    padding: 12px 24px;
    background: #f59e0b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.pending-alert-action:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .pending-alert {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .pending-alert-action {
        width: 100%;
    }
}
