/* --- CORE STYLES --- */
body { font-family: 'Poppins', sans-serif; background-color: #f0fdf4; }

/* Typography */
.font-arabic { font-family: 'Amiri', serif; }
.arabic-text { font-family: 'Amiri', serif; line-height: 2.4; direction: rtl; } 
.arabic-continuous { 
    text-align: justify; text-align-last: center; line-height: 2.6; 
    direction: rtl; padding: 0 5px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background-color: #d1fae5; border-radius: 10px; }
::-webkit-scrollbar-track { background-color: transparent; }

/* Glassmorphism General */
.glass-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

/* Components */
.ayah-end-symbol {
    font-family: sans-serif; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 1.5px solid #10b981; border-radius: 50%;
    font-size: 0.75rem; color: #059669; margin: 0 4px; vertical-align: middle; 
    background-color: #ecfdf5; cursor: pointer; transition: all 0.2s; position: relative; top: -2px;
}
.ayah-end-symbol:hover { background-color: #10b981; color: white; transform: scale(1.1); }
.ayah-end-symbol.bookmarked {
    background-color: #f59e0b !important;
    color: white !important;
    border-color: #f59e0b !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.mic-bar { transition: height 0.1s ease; }

.loader {
    border: 3px solid #f1f5f9; border-top: 3px solid #10b981;
    border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.nav-select { 
    appearance: none; background: transparent; text-align: center; font-weight: 600; width: 100%; cursor: pointer; 
}
.active-ayah { background-color: #fff7ed !important; border-right: 4px solid #f59e0b !important; }
.tahfidz-history-item { animation: slideIn 0.3s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.blur-text { filter: blur(4px); opacity: 0.6; transition: all 0.3s; }
.reveal-text { filter: blur(0); opacity: 1; transition: all 0.3s; }

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

select { background-image: none; }

/* --- TARTIL SPECIFIC STYLES --- */
#tartilContainer .arabic-text { line-height: 3; }

/* -----------------------------------------------------------
   DASHBOARD / JADWAL SHOLAT STYLES 
   ----------------------------------------------------------- */
:root {
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

#dashboardView {
    color: white;
    background-color: #0f172a; 
}

@keyframes breathe {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.dashboard-glass-panel {
    background: rgba(17, 24, 39, 0.7); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.dashboard-glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-glass-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.15);
}

.prayer-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

.zikir-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.ripple {
    position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.4);
    transform: scale(0); animation: ripple 0.6s linear; pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Animasi Hadist Berjalan (Vertikal Marquee) */
.animate-scroll-vertical {
    animation: scrollVert 10s linear infinite;
}
@keyframes scrollVert {
    0% { transform: translateY(110px); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

.fade-enter { opacity: 0; transform: translateY(5px); }
.fade-enter-active { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }

/* Calendar Grid Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendar-day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #a855f7;
    padding-bottom: 4px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.calendar-day:hover { background-color: #f3e8ff; }
.calendar-day.active {
    background-color: #9333ea;
    color: white;
    border-color: #7e22ce;
}
.calendar-day.today {
    border: 2px solid #9333ea;
}
.calendar-day.empty { background: transparent; border: none; cursor: default; }

/* New Calendar Markers */
.calendar-day.sunnah-fast {
    background-color: #d1fae5; 
    border-color: #10b981;
}
.calendar-day.sunnah-fast.active {
    background-color: #059669;
    color: white;
}
.calendar-day.haid-period {
    background-color: #fce7f3; 
    border-color: #ec4899;
}
.calendar-day.haid-period.active {
    background-color: #db2777;
    color: white;
}

/* Hadith Styles */
.hadith-action-btn {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    color: #94a3b8;
    background-color: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.hadith-action-btn:hover { background-color: #f0fdfa; color: #0d9488; border-color: #0d9488; }
.hadith-tag {
    padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: bold;
    cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
    border: 1px solid #2dd4bf; color: #ffffff; background: rgba(13, 148, 136, 0.4);
}
.hadith-tag:hover, .hadith-tag.active {
    background: #f0fdfa; color: #0f766e;
}
.hadith-book-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 8px; transition: all 0.2s; cursor: pointer;
}
.hadith-book-card:hover {
    border-color: #0d9488; box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.1);
}

/* Ebook Styles */
.ebook-tag {
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: bold;
    cursor: pointer; 
    transition: all 0.2s; 
    white-space: nowrap; 
    flex-shrink: 0;
    border: 1px solid #22d3ee; 
    color: #ffffff; 
    background: rgba(6, 182, 212, 0.4);
}
.ebook-tag:hover, .ebook-tag.active {
    background: #ecfeff; 
    color: #0891b2;
}

/* Qibla Compass Specific */
#qiblaDial {
    will-change: transform;
}

/* ========================================================================== */
/* --- GOOGLE TRANSLATE CUSTOM STYLE (MODERN DROPDOWN) --- */
/* ========================================================================== */
body { top: 0 !important; }
.skiptranslate iframe { display: none !important; }
#goog-gt-tt { display: none !important; }

.goog-te-gadget { 
    font-family: 'Poppins', sans-serif !important; 
    font-size: 0px !important; 
    color: transparent !important; 
}

/* Desain dropdown agar persis seperti kolom input "Nama Panggilan" Anda */
.goog-te-gadget .goog-te-combo { 
    font-family: 'Poppins', sans-serif;
    font-size: 14px !important; 
    font-weight: 600;
    padding: 12px 16px; 
    border-radius: 12px; 
    border: 1px solid #e5e7eb; 
    color: #374151; 
    background-color: #ffffff; 
    width: 100%; 
    margin-top: 5px; 
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: all 0.2s;
}

.goog-te-gadget .goog-te-combo:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 2px #d1fae5;
}