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

:root {
    /* Primary Colors - inspirováno Renomia designem */
    --primary: #0B4A8A;
    --primary-dark: #083968;
    --primary-light: #1066B8;
    --accent: #00A6E1;
    --accent-dark: #0088BC;
    
    /* Status colors */
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Shift colors - výrazně rozlišitelné barvy */
    --shift-morning: #DBEAFE;
    --shift-middle: #FDE68A;
    --shift-afternoon: #FED7AA;
    --shift-weekend: #DDD6FE;
    --shift-vacation: #22C55E;     /* Zelená pro dovolenou */
    --shift-sick: #F1F5F9;
    --shift-compensatory: #86EFAC; /* Světlejší zelená pro NV */
    --shift-unpaid: #F9FAFB;
    
    /* UI colors - světlejší, vzdušnější */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #EFF6FF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    
    /* Shadows - jemnější */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.03);
    --shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px 0 rgba(15, 23, 42, 0.03);
    
    /* Border radius - větší pro modernější look */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    
    /* Spacing - více prostoru */
    --spacing-xs: 6px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 28px;
    --spacing-xl: 40px;
    
    /* Typography */
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Roboto, sans-serif;
}

body {
    font-family: var(--font-base);
    background: #F5F8FA;
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 100%;
    margin: 0;
    padding: 20px 24px;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    border: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.month-display {
    font-weight: 600;
    min-width: 110px;
    text-align: center;
    font-size: 0.938rem;
    color: var(--text-primary);
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.zoom-level {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: center;
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn, button {
    padding: 11px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: var(--font-base);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.01em;
}

.btn:hover, button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active, button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary, button:not([class*="btn-"]):not(.close) {
    background: linear-gradient(135deg, #0B4A8A 0%, #1066B8 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(11, 74, 138, 0.15);
}

.btn-primary:hover, button:not([class*="btn-"]):not(.close):hover {
    background: linear-gradient(135deg, #083968 0%, #0B4A8A 100%);
    box-shadow: 0 4px 12px rgba(11, 74, 138, 0.25);
}

.btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-icon {
    padding: 8px;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.logout-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    box-shadow: none;
}

.logout-btn:hover {
    background: var(--border);
    color: var(--text-primary);
    transform: none;
}

/* ===== LEGEND ===== */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    background: var(--bg-primary);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
    border: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.813rem;
    color: #64748B;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    gap: 24px;
    background: var(--bg-primary);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    border: 1px solid var(--border);
}

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

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

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

/* ===== CALENDAR ===== */
.calendar-wrapper {
    overflow: auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 0;
    max-height: calc(100vh - 180px);
    position: relative;
    border: none;
}

.calendar-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.calendar-wrapper::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.calendar-wrapper::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

.calendar-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.calendar-container {
    padding: 16px;
    overflow-x: auto;
}

/* Today view - zobrazit pouze jeden sloupec */
.calendar-container.today-view .calendar-grid {
    max-width: 600px;
    margin: 0 auto;
    grid-template-columns: 150px 250px !important;
}

/* Skrýt všechny hlavičky dnů kromě dnešního */
.calendar-container.today-view .calendar-day-header:not(:first-child):not(.today-column) {
    display: none !important;
}

/* Skrýt všechny buňky kromě dnešního dne */
.calendar-container.today-view .calendar-cell:not(.today-column) {
    display: none !important;
}

/* Zachovat zobrazení jmen operátorů (první sloupec) */
.calendar-container.today-view .calendar-operator-name {
    display: flex !important;
    min-width: 150px;
    font-size: 0.95rem;
    padding: 12px 8px;
}

/* Dnešní sloupec - zachovat normální zobrazení */
.calendar-container.today-view .calendar-day-header.today-column {
    display: flex !important;
    min-width: 250px;
}

.calendar-container.today-view .calendar-cell.today-column {
    display: flex !important;
    min-width: 250px;
    min-height: 50px;
    font-size: 0.95rem;
    padding: 8px;
}

.calendar-grid {
    display: grid;
    gap: 1px;
    background: #E2E8F0;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
    min-width: 100%;
}

.calendar-header {
    display: contents;
}

.calendar-day-header {
    background: #F8FAFC;
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.72rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 65px;
}

.calendar-day-header.weekend {
    background: #FEF3C7;
    color: var(--accent-dark);
}

.calendar-day-header.special {
    background: #FEE2E2;
    color: var(--danger);
}

.calendar-row {
    display: contents;
}

.operator-name {
    background: var(--bg-primary);
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    position: sticky;
    left: 0;
    z-index: 10;
    min-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    border-right: 2px solid var(--border);
}

.calendar-cell {
    background: var(--bg-primary);
    padding: 8px 6px;
    min-height: 38px;
    min-width: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.12s ease;
    font-size: 0.75rem;
    text-align: center;
    overflow: visible;
    font-weight: 500;
}

/* Indikátory absencí - HTML elementy vložené do buňky */
/* Tímto způsobem můžeme kombinovat libovolný počet indikátorů */

.absence-indicator {
    position: absolute;
    top: 0;
    height: 9px;
    z-index: 10;
    pointer-events: none;
}

.absence-indicator.doctor {
    background: #DC2626;
}

.absence-indicator.vacation {
    background: #22C55E;  /* Zelená pro dovolenou */
}

.absence-indicator.compensatory {
    background: #86EFAC;  /* Světlejší zelená pro NV */
}

.absence-indicator.first-half {
    left: 0;
    width: 50%;
}

.absence-indicator.second-half {
    right: 0;
    width: 50%;
}

.calendar-cell:hover {
    background: #F8FAFC;
    box-shadow: inset 0 0 0 2px #0B4A8A;
    z-index: 5;
}

.calendar-cell.has-shift {
    font-weight: 600;
}

.calendar-cell.has-preference {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
    border-left: 3px dashed var(--info) !important;
}

.calendar-cell.weekend {
    background: #FFFEF0;
}

.calendar-cell.special {
    background: #FFF5F5;
}

/* Shift type colors - jemné, čisté barvy */
.calendar-cell[data-shift="morning"] {
    background: var(--shift-morning);
    color: #1E40AF;
    border-left: 3px solid var(--primary);
}

.calendar-cell[data-shift="middle"] {
    background: var(--shift-middle);
    color: #92400E;
    border-left: 3px solid var(--warning);
}

.calendar-cell[data-shift="afternoon"] {
    background: var(--shift-afternoon);
    color: #9A3412;
    border-left: 3px solid #F97316;
}

.calendar-cell[data-shift="weekend"] {
    background: var(--shift-weekend);
    color: #4C1D95;
    border-left: 3px solid #6366F1;
}

.calendar-cell[data-shift="vacation"] {
    background: #DCFCE7;  /* Světle zelené pozadí */
    color: #166534;       /* Tmavě zelený text */
    border-left: 3px solid #22C55E;  /* Zelený border */
    font-weight: 600;
}

.calendar-cell[data-shift="sick"] {
    background: #F1F5F9;
    color: #475569;
    border-left: 3px solid #94A3B8;
    font-weight: 600;
}

.calendar-cell[data-shift="compensatory"] {
    background: #F0FDF4;  /* Velmi světle zelené pozadí */
    color: #15803D;       /* Středně zelený text */
    border-left: 3px solid #86EFAC;  /* Světle zelený border */
    font-weight: 600;
}

.calendar-cell[data-shift="unpaid"] {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 3px solid #DC2626;
    font-weight: 600;
}

/* Dnešní den - zvýraznění */
.calendar-cell.today {
    box-shadow: inset 0 0 0 2px var(--primary);
    font-weight: 600;
}

.calendar-day-header.today {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 700;
}

.office-day-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.875rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.change-request-badge {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 1rem;
    color: #DC2626;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Badge pro počet žádostí */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: #DC2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

.badge:empty {
    display: none;
}

.shift-time {
    font-size: 0.7rem;
    display: block;
    line-height: 1.3;
    opacity: 0.85;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: white;
    margin: auto;
    padding: 36px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.modal-content.large {
    max-width: 900px;
}

/* Logout button styling */
.logout-btn {
    background: var(--danger) !important;
    color: white !important;
}

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

.modal h2 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: var(--text-muted);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.close:hover {
    color: var(--danger);
    background: var(--bg-secondary);
    transform: rotate(90deg) translateY(0);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-base);
    transition: all 0.15s ease;
    background: white;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0B4A8A;
    box-shadow: 0 0 0 3px rgba(11, 74, 138, 0.08);
    background: #FAFBFC;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-size: 0.938rem;
    box-shadow: none;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--bg-secondary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transform: none;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

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

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--bg-secondary);
}

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

/* ===== RESPONSIVE ===== */
/* Quick Shift Menu */
.quick-shift-menu {
    position: absolute;
    background: white;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15), 0 2px 4px rgba(15, 23, 42, 0.05);
    z-index: 1000;
    padding: 6px;
    display: none;
    min-width: 200px;
}

.quick-shift-menu.active {
    display: block;
}

.quick-shift-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: white;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    margin: 2px 0;
}

.quick-shift-menu button:hover {
    background: #F8FAFC;
    transform: translateX(2px);
    box-shadow: none;
}

.quick-shift-menu button:active {
    transform: translateX(0);
    background: #F1F5F9;
    box-shadow: none;
}

.quick-shift-menu button.shift-morning:hover {
    background: #ecfdf5;
}

.quick-shift-menu button.shift-middle:hover {
    background: #f0f9ff;
}

.quick-shift-menu button.shift-afternoon:hover {
    background: #fef2f2;
}

.quick-shift-menu button.shift-delete {
    color: #dc2626;
    border-top: 1px solid #e5e7eb;
    margin-top: 6px;
    padding-top: 12px;
}

.quick-shift-menu button.shift-delete:hover {
    background: #fef2f2;
}

/* Drag & Fill */
.calendar-cell {
    position: relative;
    user-select: none;
}

.calendar-cell.drag-source {
    border: 2px dashed var(--primary);
    opacity: 0.7;
}

.calendar-cell.drag-target {
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--primary);
}

.calendar-cell .drag-handle {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    cursor: crosshair;
    opacity: 0;
    transition: opacity 0.2s;
}

.calendar-cell:hover .drag-handle {
    opacity: 0.7;
}

.calendar-cell .drag-handle:hover {
    opacity: 1;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .month-selector,
    .zoom-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .legend {
        gap: 8px;
    }
    
    .legend-item {
        font-size: 0.75rem;
        flex: 1 1 45%;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .calendar-wrapper {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
    }
    
    .calendar-day-header {
        font-size: 0.688rem;
        padding: 8px 4px;
    }
    
    .operator-name {
        font-size: 0.813rem;
        min-width: 90px;
    }
    
    .calendar-cell {
        min-height: 44px;
        min-width: 55px;
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 16px;
    }
    
    .header h1 {
        font-size: 1.25rem;
    }
}

/* ===== CHANGE REQUESTS ===== */
.change-requests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.change-request-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--background-light);
}

.change-request-item.pending {
    border-left: 4px solid var(--warning);
}

.change-request-item.resolved {
    opacity: 0.7;
}

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

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

.request-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.request-details p {
    margin: 4px 0;
}

.request-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.request-status {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--background-light);
    font-size: 0.875rem;
}

.request-status.success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #6EE7B7;
}

.request-status.danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

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

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
