/* HiFi Bandung — Custom CSS */

:root {
    --color-primary: #ED1D25;
    --color-teal: #32BCAD;
    --color-dark: #4C4D4F;
    --color-white: #FFFFFF;
    --color-bg: #F5F5F5;
    --color-border: #E0E0E0;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Focus ring */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Prose (rich text) image handling */
.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
}

/* Quill editor height */
.ql-editor {
    min-height: 200px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark);
}

/* Admin sidebar active state */
.sidebar-link.active {
    background-color: rgba(237, 29, 37, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

/* Transition helpers */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsive table */
@media (max-width: 640px) {
    table {
        font-size: 0.8rem;
    }
    table th, table td {
        padding: 0.5rem;
    }
}

/* Print styles */
@media print {
    nav, footer, .no-print { display: none !important; }
    body { font-size: 12pt; }
}
