/*
 * File: Assets/css/custom.css
 * Path: /Assets/css/custom.css
 * Deskripsi: Kustomisasi CSS murni untuk elemen yang tidak tercakup Tailwind dasar,
 * seperti Scrollbar, WYSIWYG Output (QuillJs), dan utilitas spesifik UI/UX.
 */

/* ----------------------------------------------------------------------
 * 1. Kustomisasi Scrollbar (Bebas bawaan OS yang kaku)
 * ---------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc; /* slate-50 */
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* Utilitas menyembunyikan scrollbar (contoh: untuk menu horizontal di mobile) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ----------------------------------------------------------------------
 * 2. Sistem Grid Dinamis (Sesuai Spesifikasi: Mobile 2 Kolom, Desktop 4 Kolom)
 * ---------------------------------------------------------------------- */
.grid-dynamic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Mobile: 2x1 */
    gap: 1rem;
}
@media (min-width: 768px) {
    .grid-dynamic {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* Desktop: 4x1 */
        gap: 1.5rem;
    }
}

/* ----------------------------------------------------------------------
 * 3. Formatter Konten WYSIWYG (QuillJs / Markdown Output)
 * Deskripsi: Karena hasil editor berupa tag HTML murni (tanpa class Tailwind),
 * kita harus menata tampilannya agar konsisten dengan tema aplikasi.
 * ---------------------------------------------------------------------- */
.editor-content {
    color: #334155; /* slate-700 */
    line-height: 1.6;
}
.editor-content p {
    margin-bottom: 1rem;
}
.editor-content a {
    color: #1e3a8a; /* blue-900 (Biru Utama) */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.editor-content a:hover {
    text-decoration: underline;
    color: #1e40af;
}
.editor-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.editor-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}
.editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.editor-content table th, 
.editor-content table td {
    border: 1px solid #e2e8f0; /* slate-200 */
    padding: 0.75rem;
    text-align: left;
}
.editor-content table th {
    background-color: #f1f5f9; /* slate-100 */
    font-weight: 600;
    color: #1e3a8a; /* blue-900 */
}

/* ----------------------------------------------------------------------
 * 4. Efek Floating Action Button (FAB) Mobile & Indikator Navigasi
 * ---------------------------------------------------------------------- */
.fab-button {
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3); /* Soft shadow biru */
}
.fab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.4);
}

/* Penanda titik (dot) untuk menu notifikasi / indikator status aktif */
.nav-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #10b981; /* emerald-500 (Hijau Daun) */
    border-radius: 50%;
    border: 2px solid #ffffff;
}