/* --- BASE STYLES --- */
body { text-transform: lowercase; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e5e5e5; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #008080; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Animations */
.fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.loader {
    border: 3px solid #f3f3f3; border-radius: 50%; border-top: 3px solid #001F3F;
    width: 20px; height: 20px; animation: spin 1s linear infinite;
    display: inline-block; vertical-align: middle;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- CHAT BUBBLES --- */
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; margin-bottom: 8px; position: relative; }
.bubble-user { background-color: #E0F2F1; color: #001F3F; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-ai { background-color: #F3F4F6; color: #374151; align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid #e5e7eb; }

.typing-dot {
    height: 6px; width: 6px; border-radius: 50%; background-color: #aaa;
    display: inline-block; animation: typing 1.4s infinite ease-in-out both; margin: 0 1px;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* --- BLUEPRINT CHIPS (Light Mode) --- */
.bp-chip {
    font-size: 0.75rem; padding: 5px 12px; border-radius: 99px; cursor: pointer;
    background-color: #F3F4F6; color: #374151; border: 1px solid transparent; 
    transition: all 0.2s ease-in-out; font-weight: 500;
}
.bp-chip:hover { 
    background-color: #E0F2F1 !important; 
    color: #008080 !important; 
    border-color: #008080 !important;
    transform: translateY(-1px);
}
.bp-chip:active { transform: scale(0.95); }

/* --- BUTTON FIXES (Agar teks tidak hilang saat hover) --- */
button.bg-mutedTeal:hover, button.bg-darkBlue:hover {
    color: #FFFFFF !important; 
    filter: brightness(110%);
}
button:not(.bg-mutedTeal):not(.bg-darkBlue).type-toggle:hover {
    color: #008080;
    border-color: #008080;
}

/* --- LIGHT CONTENT STUDIO --- */
/* Placeholder styling khusus preview card agar tetap terbaca */
#previewCard textarea::placeholder { 
    color: rgba(255,255,255,0.4); 
    font-style: italic; 
}
/* Override placeholder warna gelap untuk mode Kamus/Micromap */
#previewCard.bg-white textarea::placeholder, 
#previewCard.bg-subtleGray textarea::placeholder {
    color: rgba(0, 31, 63, 0.3);
}

/* --- DARK ROOM SPECIFIC (Halaman Ruang Gelap) --- */
.sens-chip {
    font-size: 0.75rem; 
    padding: 6px 12px; 
    border-radius: 8px; 
    cursor: pointer;
    background-color: #1E1E1E; /* Dark Gray Input */
    color: #9CA3AF; /* Gray-400 */
    border: 1px solid #374151;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.sens-chip:hover { 
    background-color: #374151; 
    color: #E5E7EB; 
    transform: translateY(-1px);
}

.sens-chip.active {
    background-color: #FFD700; /* Golden Yellow */
    color: #121212; /* Dark Background */
    border-color: #FFD700; 
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Loader khusus background gelap */
.bg-darkRoom .loader {
    border-color: #333;
    border-top-color: #FFD700;
}