/* Custom CSS FAST Workspace */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #2e2e2a;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a35;
}

/* Base Prose Customization */
.prose p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.prose pre {
    background-color: #141413 !important;
    border: 1px solid #2e2e2a;
    border-radius: 0.75rem;
    padding: 1rem;
}

/* Memaksa menu popup option HTML native menggunakan tema gelap */
select option {
    background-color: #1c1c1a !important;
    color: #e0e0ce !important;
}

/* ==========================================
   STYLING KHUSUS ACTION MENU FLYOUT (OPSI E)
   ========================================== */
#action-menu-popover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    animation: fadeInMenu 0.15s ease-out;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   STYLING KHUSUS EKSPOR PDF & CETAK
   ========================================== */
@media print {
    /* Sembunyikan seluruh elemen antarmuka luar */
    aside, 
    header, 
    #main-header, 
    #canvas-panel, 
    #chat-search-modal, 
    #shortcuts-modal,
    #action-menu-popover,
    .no-print, 
    button, 
    form, 
    input, 
    textarea,
    .border-t {
        display: none !important;
        visibility: hidden !important;
    }

    /* Paksa kontainer obrolan menjadi full page tanpa latar hitam */
    html, body, main, #view-chat, #view-project {
        background: #ffffff !important;
        color: #111111 !important;
        height: auto !important;
        width: 100% !important;
        position: static !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #chat-thread-container, #project-chat-thread-body {
        overflow: visible !important;
        height: auto !important;
        max-width: 100% !important;
        padding: 20px !important;
    }

    /* Gelembung Pesan Bersih untuk Cetak */
    .prose {
        color: #111111 !important;
        font-size: 11pt !important;
        line-height: 1.6 !important;
    }

    .bg-fast-card, .bg-fast-bg {
        background-color: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        color: #111111 !important;
        box-shadow: none !important;
    }

    /* Pastikan warna teks dibaca hitam tegas saat diprint */
    .text-gray-100, .text-gray-200, .text-gray-300, .text-\[\#e0e0ce\] {
        color: #111111 !important;
    }
}


/* ==========================================
   LOGO ADAPTIF FAST AI (DARK & LIGHT THEME)
   ========================================== */
.fast-logo-dark {
    display: inline-block;
}
.fast-logo-light {
    display: none !important;
}

html:not(.dark) .fast-logo-dark,
body.light-theme .fast-logo-dark {
    display: none !important;
}

html:not(.dark) .fast-logo-light,
body.light-theme .fast-logo-light {
    display: inline-block !important;
}
