/* TPQ Sunan Kalijaga Static Stylesheet */
[x-cloak] {
    display: none !important;
}

:root {
    --tpq-emerald: #059669;
    --tpq-emerald-dark: #047857;
    --tpq-emerald-light: #d1fae5;
    --tpq-slate: #0f172a;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}

/* Custom Slim Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
}

/* Subtle Islamic Geometric Pattern Overlay */
.bg-islamic-pattern {
    background-image: radial-gradient(rgba(5, 150, 105, 0.08) 1.5px, transparent 1.5px),
                      radial-gradient(rgba(5, 150, 105, 0.05) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
}

/* ================= DARK MODE GLOBAL OVERRIDES ================= */
html.dark {
    color-scheme: dark;
    background-color: #0f172a;
}

html.dark body {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

html.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

html.dark .bg-white,
html.dark .bg-white\/80,
html.dark .bg-white\/90 {
    background-color: #1e293b !important;
}

/* Keep QR code scan surfaces bright so cameras can read them cleanly */
html.dark .qr-surface-light,
html.dark #wali-qr-container,
html.dark #modal-qr-preview {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html.dark .bg-slate-50,
html.dark .bg-slate-50\/60,
html.dark .bg-slate-50\/70,
html.dark .bg-slate-50\/80 {
    background-color: #0f172a !important;
}

html.dark .bg-slate-100,
html.dark .bg-slate-200,
html.dark .bg-slate-200\/70 {
    background-color: #334155 !important;
}

html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-200\/70,
html.dark .border-slate-200\/80,
html.dark .border-slate-300,
html.dark .border-slate-900 {
    border-color: #334155 !important;
}

html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: #334155 !important;
}

html.dark .text-black,
html.dark .text-gray-900,
html.dark .text-slate-950,
html.dark .text-slate-900 {
    color: #f8fafc !important;
}

html.dark .text-gray-800,
html.dark .text-slate-800 {
    color: #f1f5f9 !important;
}

html.dark .text-gray-700,
html.dark .text-slate-700 {
    color: #e2e8f0 !important;
}

html.dark .text-gray-600,
html.dark .text-slate-600 {
    color: #cbd5e1 !important;
}

html.dark .text-gray-500,
html.dark .text-slate-500 {
    color: #94a3b8 !important;
}

html.dark .text-slate-400 {
    color: #94a3b8 !important;
}

html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html.dark input[type="file"],
html.dark select,
html.dark select option,
html.dark textarea {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

html.dark input:disabled,
html.dark select:disabled,
html.dark textarea:disabled {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #64748b !important;
}

html.dark table th,
html.dark table td {
    color: inherit;
}

html.dark tbody tr:hover,
html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-50\/70:hover,
html.dark .hover\:bg-slate-50\/80:hover,
html.dark .hover\:bg-slate-100:hover {
    background-color: rgba(51, 65, 85, 0.65) !important;
}

/* Soft tinted surfaces & badges in Dark Mode */
html.dark .bg-emerald-50,
html.dark .bg-emerald-50\/50,
html.dark .bg-emerald-50\/60,
html.dark .bg-emerald-50\/70,
html.dark .bg-emerald-50\/80,
html.dark .bg-emerald-50\/90 {
    background-color: rgba(6, 78, 59, 0.38) !important;
}

html.dark .bg-emerald-100 {
    background-color: rgba(6, 95, 70, 0.5) !important;
}

html.dark .text-emerald-900,
html.dark .text-emerald-800,
html.dark .text-emerald-700,
html.dark .text-emerald-600 {
    color: #6ee7b7 !important;
}

html.dark .border-emerald-200,
html.dark .border-emerald-200\/70,
html.dark .border-emerald-200\/80,
html.dark .border-emerald-300 {
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html.dark .bg-sky-50,
html.dark .bg-sky-50\/70 {
    background-color: rgba(12, 74, 110, 0.38) !important;
}

html.dark .bg-sky-100 {
    background-color: rgba(7, 89, 133, 0.5) !important;
}

html.dark .text-sky-800,
html.dark .text-sky-700,
html.dark .text-sky-600 {
    color: #7dd3fc !important;
}

html.dark .border-sky-200,
html.dark .border-sky-300 {
    border-color: rgba(56, 189, 248, 0.35) !important;
}

html.dark .bg-amber-50,
html.dark .bg-amber-50\/40,
html.dark .bg-amber-50\/50,
html.dark .bg-amber-50\/70 {
    background-color: rgba(120, 53, 15, 0.38) !important;
}

html.dark .bg-amber-100 {
    background-color: rgba(146, 64, 14, 0.5) !important;
}

html.dark .text-amber-800,
html.dark .text-amber-700,
html.dark .text-amber-600 {
    color: #fcd34d !important;
}

html.dark .border-amber-200,
html.dark .border-amber-300 {
    border-color: rgba(245, 158, 11, 0.38) !important;
}

html.dark .bg-rose-50,
html.dark .bg-rose-50\/40,
html.dark .bg-rose-50\/50,
html.dark .bg-rose-50\/70 {
    background-color: rgba(136, 19, 55, 0.38) !important;
}

html.dark .bg-rose-100 {
    background-color: rgba(159, 18, 57, 0.5) !important;
}

html.dark .text-rose-800,
html.dark .text-rose-700,
html.dark .text-rose-600 {
    color: #fda4af !important;
}

html.dark .border-rose-200,
html.dark .border-rose-300 {
    border-color: rgba(244, 63, 94, 0.38) !important;
}

html.dark .bg-indigo-50,
html.dark .bg-indigo-50\/70 {
    background-color: rgba(49, 46, 129, 0.4) !important;
}

html.dark .bg-indigo-100 {
    background-color: rgba(55, 48, 163, 0.5) !important;
}

html.dark .text-indigo-800,
html.dark .text-indigo-700,
html.dark .text-indigo-600 {
    color: #a5b4fc !important;
}

html.dark .border-indigo-200,
html.dark .border-indigo-300 {
    border-color: rgba(99, 102, 241, 0.38) !important;
}

html.dark .bg-teal-100 {
    background-color: rgba(17, 94, 89, 0.5) !important;
}

html.dark .text-teal-700 {
    color: #5eead4 !important;
}

/* Keep solid dark-accent buttons/cards legible */
html.dark .bg-slate-900.text-white,
html.dark .bg-emerald-600.text-white,
html.dark .bg-\[\#059669\].text-white,
html.dark .bg-indigo-600.text-white,
html.dark .bg-rose-600.text-white,
html.dark .bg-amber-600.text-white,
html.dark .bg-sky-600.text-white {
    color: #ffffff !important;
}
