@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 6rem; 
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent; 
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

.dark ::-webkit-scrollbar-track {
    background: #020617; 
}
.dark ::-webkit-scrollbar-thumb {
    background: #1e293b; 
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #334155; 
}

/* --- CALENDAR GRID STYLES --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

/* --- MODAL (POPUP) STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dim background */
    backdrop-filter: blur(4px);
    z-index: 50; /* Above Navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.hidden {
    display: none;
}