/* ==========================================================================
   ITER Platform - site.css
   Supplementary styles for things Tailwind CDN cannot handle.
   The main styling is done via Tailwind utility classes in markup.
   ========================================================================== */

/* --- Sidebar scrollbar --------------------------------------------------- */
.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

/* Firefox scrollbar */
.sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

/* --- Active nav link indicator ------------------------------------------- */
.nav-active {
    position: relative;
}

.nav-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #818cf8;
    border-radius: 0 3px 3px 0;
}

/* --- Transitions --------------------------------------------------------- */
a, button {
    transition: color 150ms ease, background-color 150ms ease,
                border-color 150ms ease, box-shadow 150ms ease;
}

/* --- Alpine.js: hide elements until initialized -------------------------- */
[x-cloak] { display: none !important; }

/* --- Focus: remove default browser outline, let Tailwind handle it ------- */
*:focus {
    outline: none;
}

/* --- Table row hover ----------------------------------------------------- */
.table-row-hover:hover {
    background-color: #f8fafc;
}

/* --- Fade-in animation for page content ---------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 200ms ease-out;
}

/* --- Badge / status pill ------------------------------------------------- */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}

/* --- Loading skeleton ---------------------------------------------------- */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* --- Print styles -------------------------------------------------------- */
@media print {
    aside, header, .no-print {
        display: none !important;
    }

    main {
        margin: 0 !important;
        padding: 1rem !important;
    }

    body {
        background: white !important;
    }
}
