/* ============================================
   Base Styles
   ============================================
   Resets, scrollbar, fonts, typography,
   utility classes, animations, loading states
   ============================================ */

/* ── Scrollbar ── */
* {
    scrollbar-width: auto;
    scrollbar-color: var(--hb-scrollbar-thumb) var(--hb-scrollbar-track);
}

*::-webkit-scrollbar {
    width: var(--hb-scrollbar-width);
}

*::-webkit-scrollbar-track {
    background: var(--hb-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--hb-scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--hb-scrollbar-track);
}

/* ── Fonts ── */
@font-face {
    font-family: "Inter";
    src: url("/assets/content/fonts/Inter.ttf") format("ttf");
}

/* ── Warning banner ── */
.warning {
    position: fixed;
    top: 0;
    z-index: 9999;
    text-align: center;
    padding: 1rem;
    background: var(--hb-status-red);
    width: 100%;
    color: white;
}

.warning a {
    color: inherit;
    text-decoration: underline;
}

/* ── Loading states ── */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── User-select prevention for DataTables rows ── */
.list_item {
    user-select: none;
    -webkit-user-select: none;
}

/* ── Print ── */
@media print {
    .toolbar,
    .sidebar,
    .topbar,
    .no-print {
        display: none !important;
    }

    .main_content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* ── Quill spacing classes ── */
.ql-spacing-small {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.ql-spacing-medium {
    margin-top: 1em;
    margin-bottom: 1em;
}

.ql-spacing-large {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

/* ── Utility classes ── */
.w-auto { width: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 1rem; }
.hidden { display: none; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.dialog-actions button,
.dialog-actions [role="button"] { width: auto; }
div.dialog-actions { margin-top: 1rem; }
.dialog-sm { max-width: 400px; }
.dialog-md { max-width: 500px; }
.dialog-lg { max-width: 620px; }
.dialog-xl { max-width: 768px; }
