body {
    scroll-behavior: smooth;
}

.glass-panel {
    background: rgba(250, 249, 247, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.premium-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-glass-card:hover {
    box-shadow: 0 15px 35px 0 rgba(168, 124, 43, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    border-color: rgba(168, 124, 43, 0.3);
    transform: translateY(-5px);
}

.timer-glass-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 3px 3px 8px rgba(255, 255, 255, 0.9), inset -3px -3px 8px rgba(0, 0, 0, 0.03), 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}
.timer-glass-box:hover {
    transform: scale(1.05);
    box-shadow: inset 3px 3px 8px rgba(255, 255, 255, 1), inset -3px -3px 8px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(168, 124, 43, 0.1);
}

@keyframes slowPan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a87c2b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: slowPan 40s linear infinite;
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.05);
}

.pulse-soft {
    animation: pulseSoft 4s ease-in-out infinite;
}

@keyframes pulseSoft {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.85;
    }
}

@keyframes blob-bounce {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}
.animate-blob {
    animation: blob-bounce 15s infinite alternate;
}
.animation-delay-2000 {
    animation-delay: 2s;
}
.animation-delay-4000 {
    animation-delay: 4s;
}

/* --- PRELOADER CSS --- */
.loader {
    --ANIMATION-DELAY-MULTIPLIER: 45ms;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 0.2rem;
}

.loader span {
    padding: 0;
    margin: 0;
    animation-delay: 0s;
    transform: translateY(4rem);
    animation: hideAndSeek 0.7s alternate infinite cubic-bezier(0.86, 0, 0.07, 1);
}

.loader .l {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 0);
}

.loader .o {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 1);
}

.loader .a {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 2);
}

.loader .d {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 3);
}

.loader .ispan {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 4);
}

.loader .n {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 5);
}

.loader .g {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 6);
}

.loader .letter {
    width: auto;
    height: 3rem;
}

.loader .i {
    margin-inline: 5px;
}

@keyframes hideAndSeek {
    0% {
        transform: translateY(4rem);
    }

    100% {
        transform: translateY(0rem);
    }
}

/* --- MOROCCAN ZELLIGE SECTION DIVIDER --- */
.moroccan-divider {
    width: 100%;
    height: 40px;
    overflow: hidden;
    line-height: 0;
    position: relative;
    z-index: 5;
}
.moroccan-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}
@media (max-width: 640px) {
    .moroccan-divider {
        height: 28px;
    }
}

/* --- DARK SECTION (Consulta al Imán) --- */
.section-dark-green {
    background: linear-gradient(135deg, #0a2e1f 0%, #0d3b28 40%, #0a2e1f 100%);
    color: #f0ead9;
}
.section-dark-green h2,
.section-dark-green h4,
.section-dark-green .font-bold {
    color: #f5efe4;
}
.section-dark-green p,
.section-dark-green label,
.section-dark-green .text-on-surface-variant {
    color: rgba(240, 234, 217, 0.8);
}
.section-dark-green .premium-glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: rgba(168, 124, 43, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.section-dark-green .premium-glass-card:hover {
    border-color: rgba(168, 124, 43, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.section-dark-green .material-symbols-outlined.text-primary {
    color: #e9c176;
}
.section-dark-green .bg-primary\/10 {
    background-color: rgba(168, 124, 43, 0.15);
}
.section-dark-green .text-primary {
    color: #e9c176;
}
.section-dark-green .w-8.h-\[2px\].bg-primary {
    background-color: #e9c176;
}
.section-dark-green .bg-gradient-to-b.from-primary {
    --tw-gradient-from: #e9c176;
}
.section-dark-green .border-outline-variant\/30 {
    border-color: rgba(168, 124, 43, 0.2);
}
.section-dark-green .bg-surface {
    background-color: rgba(255, 255, 255, 0.06);
}
.section-dark-green input,
.section-dark-green select,
.section-dark-green textarea {
    color: #f0ead9;
    border-color: rgba(240, 234, 217, 0.25);
}
.section-dark-green input::placeholder,
.section-dark-green textarea::placeholder {
    color: rgba(240, 234, 217, 0.4);
}
.section-dark-green input:focus,
.section-dark-green select:focus,
.section-dark-green textarea:focus {
    border-color: #e9c176;
}
.section-dark-green select option {
    background-color: #0d3b28;
    color: #f0ead9;
}
/* Form card in dark section */
.section-dark-green .shadow-\[0_8px_30px_rgba\(0\2c 0\2c 0\2c 0\.08\)\] {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(168, 124, 43, 0.3);
}
.section-dark-green .bg-white\/75 {
    background: rgba(10, 46, 31, 0.85);
}
.section-dark-green .bg-\[url\(\'assets\/contacto_bg\.webp\'\)\] {
    opacity: 0.15;
}
.section-dark-green .bg-primary\/20 {
    background-color: rgba(233, 193, 118, 0.15);
}
/* Decorative image overlay in dark section */
.section-dark-green .bg-gradient-to-r.from-\[\#f0ead9\] {
    background: linear-gradient(to right, #0a2e1f, rgba(10, 46, 31, 0.6), transparent);
}

/* --- HORARIOS SECTION DARK OVERRIDES --- */
/* Prayer cards (beautiful dark glass panels) */
.section-dark-green .prayer-col {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(233, 193, 118, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease;
}
.section-dark-green .prayer-col:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(233, 193, 118, 0.45) !important;
    box-shadow: 0 12px 35px rgba(233, 193, 118, 0.15);
    transform: translateY(-4px);
}
.section-dark-green .prayer-col .name-el {
    color: #f5efe4 !important;
}
.section-dark-green .prayer-col .time-el {
    color: #e9c176 !important;
}
.section-dark-green .prayer-col .icon-el {
    color: rgba(233, 193, 118, 0.75) !important;
}
/* Active prayer card: stands out as a vibrant emerald green with gold border */
.section-dark-green .prayer-col.bg-\[\#2C5F44\] {
    background: linear-gradient(135deg, #1e4d35 0%, #2c5f44 100%) !important;
    border-color: #fbca1f !important;
    border-width: 2px !important;
    box-shadow: 0 8px 30px rgba(44, 95, 68, 0.5), 0 0 15px rgba(251, 202, 31, 0.3) !important;
    opacity: 1 !important;
}
.section-dark-green .prayer-col.bg-\[\#2C5F44\] .name-el,
.section-dark-green .prayer-col.bg-\[\#2C5F44\] .time-el {
    color: #ffffff !important;
}
.section-dark-green .prayer-col.bg-\[\#2C5F44\] .icon-el {
    color: #fbca1f !important;
}

/* Glass panel (countdown) */
.section-dark-green .glass-panel {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 124, 43, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(233, 193, 118, 0.1);
}
/* Timer boxes */
.section-dark-green .timer-glass-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(233, 193, 118, 0.15);
    box-shadow: inset 3px 3px 8px rgba(255, 255, 255, 0.05), 0 4px 15px rgba(0, 0, 0, 0.15);
}
.section-dark-green .timer-glass-box strong {
    color: #f5efe4 !important;
}
.section-dark-green .timer-glass-box span {
    color: rgba(240, 234, 217, 0.6) !important;
}

/* Countdown label and value */
.section-dark-green #next-prayer-name {
    color: #f5efe4 !important;
}
.section-dark-green #next-prayer-time-val {
    color: #e9c176 !important;
}

/* Date label */
.section-dark-green #today-date-label {
    color: rgba(240, 234, 217, 0.7) !important;
}

/* Mawaqit sync badge */
.section-dark-green .tracking-widest.text-primary {
    color: #e9c176 !important;
}
.section-dark-green .bg-green-500 {
    background-color: #4ade80 !important;
}

/* Quran cards */
.section-dark-green .border-primary\/10 {
    border-color: rgba(168, 124, 43, 0.2);
}
.section-dark-green .bg-white\/50 {
    background: rgba(255, 255, 255, 0.07);
}
.section-dark-green .bg-white\/50:hover {
    background: rgba(255, 255, 255, 0.12);
}
.section-dark-green .text-\[\#2C5F44\] {
    color: #95d3ba !important;
}
.section-dark-green .bg-\[\#2C5F44\]\/10 {
    background-color: rgba(149, 211, 186, 0.15) !important;
}
.section-dark-green .text-on-surface {
    color: #f5efe4;
}
.section-dark-green .text-on-surface-variant\/80 {
    color: rgba(240, 234, 217, 0.65);
}
.section-dark-green .text-\[\#2C5F44\]\/50 {
    color: rgba(149, 211, 186, 0.5) !important;
}

/* Action buttons */
.section-dark-green .bg-\[\#1a1a1a\] {
    background-color: #e9c176 !important;
    color: #0a2e1f !important;
}
.section-dark-green .border-primary\/40 {
    border-color: rgba(233, 193, 118, 0.5);
}
.section-dark-green .border-primary\/30 {
    border-color: rgba(233, 193, 118, 0.3);
}

/* Section title */
.section-dark-green .border-t.border-primary\/10 {
    border-color: rgba(233, 193, 118, 0.15);
}

/* Kahf badge */
.section-dark-green .bg-\[\#fbca1f\] {
    background-color: #fbca1f !important;
    color: #0a2e1f !important;
}

/* --- SURA FILTER SYSTEM --- */
.sura-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid rgba(168, 124, 43, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 234, 217, 0.7);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.sura-filter-btn:hover {
    border-color: rgba(233, 193, 118, 0.5);
    background: rgba(233, 193, 118, 0.1);
    color: #e9c176;
}
.sura-filter-btn.active {
    background: #e9c176;
    color: #0a2e1f;
    border-color: #e9c176;
    box-shadow: 0 4px 15px rgba(233, 193, 118, 0.3);
}
.sura-filter-btn .material-symbols-outlined {
    font-size: 16px;
}

/* Sura card animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.sura-card {
    animation: fadeInUp 0.35s ease forwards;
}
.sura-card.hiding {
    display: none !important;
}

/* Sura number circle */
.sura-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    background: rgba(168, 124, 43, 0.12);
    color: #a87c2b;
    border: 1px solid rgba(168, 124, 43, 0.15);
}
.section-dark-green .sura-number {
    background: rgba(233, 193, 118, 0.15);
    color: #e9c176;
    border-color: rgba(233, 193, 118, 0.2);
}

/* Sura category badges */
.sura-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sura-badge-essential {
    background: rgba(168, 124, 43, 0.12);
    color: #a87c2b;
}
.sura-badge-friday {
    background: rgba(44, 95, 68, 0.12);
    color: #2C5F44;
}
.sura-badge-ramadan {
    background: rgba(15, 76, 58, 0.12);
    color: #0f4c3a;
}
.sura-badge-protection {
    background: rgba(193, 39, 45, 0.1);
    color: #C1272D;
}
/* Badges in dark section */
.section-dark-green .sura-badge-essential {
    background: rgba(233, 193, 118, 0.15);
    color: #e9c176;
}
.section-dark-green .sura-badge-friday {
    background: rgba(149, 211, 186, 0.15);
    color: #95d3ba;
}
.section-dark-green .sura-badge-ramadan {
    background: rgba(149, 211, 186, 0.12);
    color: #95d3ba;
}
.section-dark-green .sura-badge-protection {
    background: rgba(255, 150, 150, 0.12);
    color: #ffb0b0;
}
