@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
/* Premium Font */

/* --- Utilities --- */
.no-scroll::-webkit-scrollbar {
    display: none;
}

.no-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Glassmorphism --- */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-input {
    background: rgba(2, 6, 23, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: #f1f5f9;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(2, 6, 23, 0.6);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.glass-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Spinner Overlay --- */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.spinner-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Maps & Sync --- */
.map-box {
    height: 200px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    z-index: 0;
}

.sync-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f59e0b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    animation: bounce-in 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes bounce-in {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* --- Calendar Grid --- */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 1rem;
}

.cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    position: relative;
    cursor: default;
    transition: all 0.2s ease;
}

.cal-day:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cal-day.today {
    border: 1px solid #6366f1;
    color: #fff;
}

.cal-day.has-event {
    cursor: pointer;
}

/* Status Colors */
.st-work {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.st-late {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.st-sick {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.st-vac {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.st-pend {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px dashed rgba(234, 179, 8, 0.4);
    animation: pulse 2s infinite;
}

/* --- Admin Cards --- */
.dev-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.dev-card:active {
    transform: scale(0.98);
}

/* --- Animations --- */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fade-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Premium feel */
    -webkit-tap-highlight-color: transparent;
}

/* --- Day Details Modal --- */
.details-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    background: #0f172a;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.details-modal.open {
    transform: translateY(0);
}

.dm-handle {
    width: 40px;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    margin: 0 auto 20px auto;
}