/* ==========================================
   HOME PAGES - CENTRALIZED STYLES
   Today, Index, Changes, etc.
   ========================================== */

/* IMPORTANT: Override global styles from site.css and main.css */

/* Crisp vibrant text everywhere */
body, h1, h2, h3, h4, h5, h6, p, span, div, li, a, button, label, .card, .card-title, .card-subtitle, .card-body, .card-header, .list-group-item, .countdown-value, .countdown-label, .prayer-name, .prayer-time, .blur-bg, .next-prayer-card, .prayer-card-modern, .holiday-glass-card {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================
   UNIFIED CARD SPACING SYSTEM
   Single source of truth for all card spacing
   ========================================== */

:root {
    --card-radius: 1.15rem;
    --card-radius-sm: 0.7rem;
    --card-padding: 1.35rem 1.5rem;
    --card-padding-sm: 0.9rem 1rem;
    --card-header-padding: 0.9rem 1.5rem;
    --card-header-padding-sm: 0.7rem 1rem;
    --card-gap: 0.6rem;
    --card-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.06), 0 12px 28px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04) inset;
    --card-shadow-hover: 0 2px 4px rgba(0,0,0,0.06), 0 8px 16px rgba(0,0,0,0.08), 0 20px 40px -12px rgba(0,0,0,0.12), 0 0 0 1px rgba(251,191,36,0.08) inset;
    --card-bg: rgba(255,255,255,0.82);
    --card-text: #1e3a5f;
    --card-text-secondary: #2563eb;
    --card-text-muted: #3b5998;
    --card-border: 1px solid rgba(0,0,0,0.05);
    --card-blur: blur(3px);
    --card-accent: rgba(251,191,36,0.25);
    --section-gap: 0.75rem;
}

/* Dark mode CSS variable overrides — fixes all var(--card-bg) usages site-wide */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(20,24,38,0.9);
        --card-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.25), 0 12px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
        --card-shadow-hover: 0 2px 4px rgba(0,0,0,0.3), 0 8px 16px rgba(0,0,0,0.35), 0 20px 40px -12px rgba(0,0,0,0.45), 0 0 0 1px rgba(251,191,36,0.06) inset;
        --card-border: 1px solid rgba(255,255,255,0.06);
    }
}

/* ==========================================
   PAGE STRUCTURE - FORCE OVERRIDE
   ========================================== */

.home-page-wrapper {
    background: #f8f9fa !important;
    font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, sans-serif !important;
    padding-top: 1.5rem !important;
    margin-top: 0 !important;
    position: relative !important;
}

/* Dynamic background image */
.home-page-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--dynamic-bg, url('/media/bg.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
}

.home-page-wrapper.pt-0 {
    padding-top: 0 !important;
}

.container-fluid.home-page-wrapper {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove any spacing between navbar and content */
.main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.main-content > .row {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-content > .row > .col-12 {
    padding-top: 0 !important;
}

.home-page-wrapper * {
    font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}

/* Override any gradient text effects */
.home-page-wrapper h2,
.home-page-wrapper h4,
.home-page-wrapper h5 {
    text-shadow: none !important;
}

/* ==========================================
   HEADER SECTION - SIMPLE CLEAN DESIGN
   ========================================== */

.text-center.mb-2 {
    text-align: center !important;
}

.page-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
}

/* ==========================================
   MODERN CLOCK DISPLAY BADGES
   ========================================== */

.clock-display-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
}

/* Clock Time Display */
#brunei-clock {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}



/* Modern Time Badge */
.modern-time-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
}

.modern-time-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.time-badge-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-icon {
    font-size: 2rem;
    line-height: 1;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.time-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.time-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Time Elapsed Badge */
.time-elapsed-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 3px 10px rgba(240, 147, 251, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
}

.time-elapsed-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.elapsed-badge-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.elapsed-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.elapsed-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.elapsed-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.elapsed-value {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .time-value {
        font-size: 1.5rem;
    }

    .elapsed-value {
        font-size: 1rem;
    }

    .time-icon {
        font-size: 1.75rem;
    }

    .elapsed-icon {
        font-size: 1.25rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .time-badge-wrapper,
    .elapsed-badge-wrapper {
        background: rgba(30, 30, 46, 0.95);
    }

    .time-label,
    .elapsed-label {
        color: #9ca3af;
    }
}

.page-subtitle {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin: 0 auto 0.5rem auto !important;
    display: block !important;
    width: fit-content !important;
    background: rgba(37, 99, 235, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 1rem !important;
    padding: 0.25rem 1.5rem !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4) !important;
}

/* Clock Section — subtle frosted pill */
.clock-display-section {
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    padding: 0.5rem 1.25rem !important;
    margin: 0.25rem auto !important;
    text-align: center !important;
}

.clock-label-top {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    color: #1e293b !important;
    text-transform: uppercase !important;
    margin-bottom: 0.2rem !important;
    display: block !important;
}

#brunei-clock {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.2rem !important;
}

#clock-time-digits {
    font-size: 2.75rem !important;
    font-weight: 900 !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    letter-spacing: 3px !important;
    line-height: 1 !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#clock-period-label {
    background: none !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    letter-spacing: 1.5px !important;
    align-self: center !important;
    margin-top: 0.35rem !important;
    white-space: nowrap !important;
}


/* ==========================================
   VERSION BADGE - CORNER INDICATOR
   ========================================== */

.version-badge {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.3s ease;
    cursor: default;
}

.version-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.version-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .version-badge {
        top: 70px;
        right: 10px;
        padding: 0.4rem 0.75rem;
    }

    .version-number {
        font-size: 0.65rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .version-badge {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    }
}

/* ==========================================
   UNIVERSAL SMOOTH CARD TRANSITIONS
   ========================================== */

.card,
.next-prayer-card,
#ramadanCard,
.ramadan-countdown-card-simple,
.progress-encouragement-card,
.prayer-times-card,
.qr-code-card,
.holiday-card,
.holiday-glass-card,
#todayTipsCard {
    transition: all 1.5s ease-in-out,
                transform 1.2s ease-in-out,
                opacity 1.3s ease-in-out,
                box-shadow 1.5s ease-in-out,
                background 1.8s ease-in-out,
                border 1.2s ease-in-out !important;
}

/* Neon edge glow — multi-color pulsing outline along card border */
.next-prayer-card {
    position: relative;
    overflow: visible !important;
    border: 2px solid rgba(66,133,244,0.6) !important;
    animation: neon-edge-pulse 2.5s ease-in-out infinite alternate;
}
@keyframes neon-edge-pulse {
    0% {
        box-shadow:
            0 0 12px rgba(66,133,244,0.5),
            0 0 30px rgba(66,133,244,0.25),
            0 0 50px rgba(234,67,53,0.15);
        border-color: rgba(66,133,244,0.7);
    }
    33% {
        box-shadow:
            0 0 14px rgba(234,67,53,0.5),
            0 0 32px rgba(234,67,53,0.25),
            0 0 52px rgba(251,188,4,0.18);
        border-color: rgba(234,67,53,0.7);
    }
    66% {
        box-shadow:
            0 0 12px rgba(251,188,4,0.5),
            0 0 30px rgba(251,188,4,0.25),
            0 0 50px rgba(52,168,83,0.18);
        border-color: rgba(251,188,4,0.7);
    }
    100% {
        box-shadow:
            0 0 14px rgba(52,168,83,0.5),
            0 0 32px rgba(52,168,83,0.25),
            0 0 52px rgba(66,133,244,0.18);
        border-color: rgba(52,168,83,0.7);
    }
}

/* Smooth transitions for card headers */
.card-header,
.holiday-card-header,
.next-prayer-header {
    transition: all 1.2s ease-in-out,
                background 1.5s ease-in-out,
                color 1.3s ease-in-out !important;
}

/* Smooth transitions for card bodies */
.card-body,
.holiday-card-body {
    transition: all 1.2s ease-in-out,
                opacity 1.3s ease-in-out !important;
}

/* Smooth transitions for card footers */
.card-footer,
.holiday-card-footer,
.prayer-card-footer {
    transition: all 1.2s ease-in-out,
                background 1.5s ease-in-out !important;
}

/* ==========================================
   CARD STYLES MOVED TO INLINE @section Styles IN Today.cshtml
   This prevents CSS conflicts and ensures proper cascade
   ========================================== */

.next-prayer-header {
    margin-bottom: 0.5rem !important;
}

.next-prayer-label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

.next-prayer-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 0.5rem !important;
    min-height: 2.2rem !important;
    transition: none !important;
}

/* Match next-prayer name colour to prayer list .prayer-next state */
#next-prayer-timer-brunei {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    font-size: 1.5rem !important;
    min-height: 2.2rem !important;
    transition: none !important;
}

@media (prefers-color-scheme: dark) {
    #next-prayer-timer-brunei {
        color: #2563eb !important;
        -webkit-text-fill-color: #2563eb !important;
    }
}

.countdown-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.countdown-cards {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.countdown-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.6) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    min-width: 80px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    backdrop-filter: blur(4px);
}
.countdown-label {
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
}

.countdown-value {
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    color: #1a365d !important;
    line-height: 1 !important;
    font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif !important;
    letter-spacing: -1px !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" !important;
    text-shadow: 0 0.5px 1px rgba(0,0,0,0.1);
}

.countdown-item {
    background: transparent !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    min-width: 80px !important;
    width: 80px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    text-align: center !important;
}

.countdown-label {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-top: 0.4rem !important;
    transition: none !important;
}

.countdown-separator {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    padding: 0 0.25rem !important;
    transition: none !important;
}

/* ── Current Prayer Section ── */
.current-prayer-section {
    text-align: center !important;
    padding: 0.75rem 0 !important;
    margin-bottom: 0.25rem !important;
}
.cp-label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #64748b !important;
    margin-bottom: 0.3rem !important;
}
.cp-name {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #059669 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
}
.cp-name.before-imsak { color: #6366f1 !important; }
.cp-time {
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin-top: 0.15rem !important;
}

/* ── Prayer Divider ── */
.prayer-divider {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 0.5rem 0 !important;
}
.prayer-divider::before,
.prayer-divider::after {
    content: '' !important;
    flex: 1 !important;
    height: 1px !important;
    background: rgba(0,0,0,0.08) !important;
}
.prayer-divider span {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
}

/* ── Next Prayer Display ── */
.next-prayer-display {
    text-align: center !important;
    margin-bottom: 0.5rem !important;
}
.np-name {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}
.np-time {
    font-size: 0.78rem !important;
    color: #64748b !important;
    margin-top: 0.1rem !important;
}

/* Remove old current-prayer-status */
.current-prayer-status { display: none !important; }
.next-prayer-header { display: none !important; }
.next-prayer-name { display: none !important; }

/* ── Keep dark mode ── */
@media (prefers-color-scheme: dark) {
    .cp-name { color: #34d399 !important; }
    .cp-name.before-imsak { color: #818cf8 !important; }
    .cp-label, .cp-time { color: #94a3b8 !important; }
    .np-name { color: #60a5fa !important; }
    .prayer-divider::before,
    .prayer-divider::after { background: rgba(255,255,255,0.08) !important; }
    .current-prayer-status { display: none !important; }
}

/* Mobile responsive for countdown card */
@media (max-width: 767.98px) {
    .next-prayer-card {
        padding: var(--card-padding-sm) !important;
        border-radius: var(--card-radius-sm) !important;
    }

    .next-prayer-label {
        font-size: 0.8rem !important;
    }

    .next-prayer-name {
        font-size: 1.5rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 0.5rem !important;
    }

    .countdown-item {
        padding: 0.5rem 0.75rem !important;
        min-width: 55px !important;
        border-radius: 0.375rem !important;
    }

    .countdown-value {
        font-size: 1.5rem !important;
    }

    .countdown-label {
        font-size: 0.65rem !important;
    }

    .countdown-separator {
        font-size: 1.5rem !important;
    }

    .current-prayer-status {
        font-size: 0.8rem !important;
    }
}

/* ==========================================
   RAMADAN COUNTDOWN CARD - MODERN GLASSMORPHISM DESIGN
   ========================================== */

/* Main Ramadhan card - Match prayer-card-modern style */
div.card#ramadanCard,
#ramadanCard.card,
div#ramadanCard,
#ramadanCard {
    background: var(--card-bg) !important;
    background-color: var(--card-bg) !important;
    backdrop-filter: var(--card-blur) !important;
    -webkit-backdrop-filter: var(--card-blur) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow) !important;
    border: var(--card-border) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
}

#ramadanCard:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--card-shadow-hover) !important;
}

/* Ramadhan card header styling */
#ramadanCard .card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 0 !important;
    padding: var(--card-header-padding) !important;
    backdrop-filter: none !important;
}

#ramadanCard .card-header h6 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #495057 !important;
    letter-spacing: 0.3px !important;
}

#ramadanCard .card-header .bi-moon-stars {
    color: #8b5cf6 !important;
    font-size: 1.1rem !important;
}

#ramadanCard .card-body {
    padding: var(--card-padding) !important;
    background: transparent !important;
}

/* Toggle button styling */
#ramadanToggleBtn {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

#ramadanToggleBtn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #495057 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

#ramadanToggleBtn .bi {
    transition: transform 0.3s ease !important;
}

/* Simple countdown container */
.ramadan-countdown-card-simple {
    text-align: center !important;
}

.ramadan-date-info {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

/* Reuse existing countdown styles with glassmorphism */
.ramadan-countdown-card-simple .countdown-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%) !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1.125rem !important;
    min-width: 75px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
    transition: all 0.3s ease !important;
}

.ramadan-countdown-card-simple .countdown-value {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #495057 !important;
    line-height: 1 !important;
}

.ramadan-countdown-card-simple .countdown-label {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #6c757d !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 0.5rem !important;
}

.ramadan-countdown-card-simple .countdown-separator {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #adb5bd !important;
    padding: 0 0.25rem !important;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .ramadan-date-info {
        font-size: 0.75rem !important;
    }

    .ramadan-countdown-card-simple .countdown-item {
        padding: 0.5rem 0.75rem !important;
        min-width: 55px !important;
        border-radius: 0.375rem !important;
    }

    .ramadan-countdown-card-simple .countdown-value {
        font-size: 1.5rem !important;
    }

    .ramadan-countdown-card-simple .countdown-label {
        font-size: 0.65rem !important;
    }

    .ramadan-countdown-card-simple .countdown-separator {
        font-size: 1.5rem !important;
    }
}

/* ==========================================
   ENTERPRISE GRADE PROGRESS BAR - MODERN DESIGN
   ========================================== */

.ramadan-progress-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ramadan-progress-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Progress Header */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-icon {
    color: #6366f1;
    font-size: 1.1rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.progress-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.progress-percentage-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    min-width: 55px;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-percentage-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Modern Progress Container */
.modern-progress-container {
    position: relative;
    margin: 0.75rem 0;
}

.modern-progress-track {
    height: 12px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.modern-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 1rem;
    position: relative;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    overflow: hidden;
}

/* Shimmer Effect */
.progress-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Dynamic Progress Colors */
.modern-progress-fill[data-stage="start"] {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.modern-progress-fill[data-stage="mid"] {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.modern-progress-fill[data-stage="end"] {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

/* Encouragement Card */
.progress-encouragement-card {
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(243, 244, 246, 0.8) 100%);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.encouragement-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: center;
}

.encouragement-icon {
    color: #ef4444;
    font-size: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
}

.encouragement-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .ramadan-progress-wrapper {
        padding: 1rem;
    }

    .progress-title {
        font-size: 0.85rem;
    }

    .progress-percentage-badge {
        font-size: 0.85rem;
        padding: 0.3rem 0.7rem;
        min-width: 50px;
    }

    .modern-progress-track {
        height: 10px;
    }

    .encouragement-text {
        font-size: 0.8rem;
    }

    .progress-icon {
        font-size: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ramadan-progress-wrapper {
        background: linear-gradient(135deg, rgba(30, 30, 46, 0.95) 0%, rgba(20, 20, 35, 0.95) 100%);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .progress-title {
        color: #e5e7eb;
    }

    .modern-progress-track {
        background: linear-gradient(90deg, #374151 0%, #1f2937 100%);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .progress-encouragement-card {
        background: linear-gradient(135deg, rgba(55, 65, 81, 0.6) 0%, rgba(31, 41, 55, 0.6) 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .encouragement-text {
        color: #d1d5db;
    }
}

/* ==========================================
   LEGACY TIMER STYLES (Fallback)
   ========================================== */

#next-prayer-timer {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-top: 0.25rem !important;
}

#timelapse-after-current {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 0.25rem !important;
}

/* ==========================================
   ENHANCED PRAYER TIMES CARD
   ========================================== */

.prayer-times-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    border-radius: 1.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
}

/* Card Header - Date Section */
.prayer-card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    padding: 1.25rem 1.5rem !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.date-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 2rem !important;
    margin-bottom: 0.75rem !important;
}

.date-badge i {
    color: #ffffff !important;
    font-size: 1rem !important;
}

.date-badge span {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.gregorian-date {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.5rem !important;
}

.hijri-date {
    font-size: 1rem !important;
    font-weight: 600 !important;
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hijri-date i {
    -webkit-text-fill-color: #38ef7d !important;
}

/* Prayer Times List */
.prayer-times-list {
    padding: 0.75rem 1rem !important;
}

.prayer-time-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.875rem 1rem !important;
    margin: 0.25rem 0 !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

/* Fardhu Prayer Styling */
.prayer-time-row.fardhu {
    background: rgba(102, 126, 234, 0.1) !important;
    border-left: 3px solid #667eea !important;
}

/* Sunnah Prayer Styling */
.prayer-time-row.sunnah {
    background: rgba(255, 255, 255, 0.03) !important;
    border-left: 3px solid rgba(255, 255, 255, 0.2) !important;
}

.prayer-time-row:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    transform: translateX(4px) !important;
}

.prayer-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.prayer-icon {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.5rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.prayer-icon i {
    font-size: 1.1rem !important;
    color: #a0c4ff !important;
}

.prayer-time-row.fardhu .prayer-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%) !important;
}

.prayer-time-row.fardhu .prayer-icon i {
    color: #c4b5fd !important;
}

.prayer-name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.fardhu-badge {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 0.25rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

.prayer-time {
    font-size: 3rem !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', -apple-system, sans-serif !important;
}

/* Current Prayer Highlight */
.prayer-time-row.prayer-now {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%) !important;
    border-left: 4px solid #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2) !important;
}

.prayer-time-row.prayer-now .prayer-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    animation: pulse-glow 2s ease-in-out infinite !important;
}

.prayer-time-row.prayer-now .prayer-icon i {
    color: #ffffff !important;
}

.prayer-time-row.prayer-now .prayer-name {
    color: #34d399 !important;
}

.prayer-time-row.prayer-now .prayer-time {
    background: linear-gradient(90deg, #34d399 0%, #10b981 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.8); }
}

/* Passed Prayer Styling */
.prayer-time-row.prayer-passed {
    opacity: 0.5 !important;
}

.prayer-time-row.prayer-passed .prayer-icon {
    background: rgba(255, 255, 255, 0.05) !important;
}

.prayer-time-row.prayer-passed .prayer-name::after {
    content: ' \2713' !important;
    color: #10b981 !important;
    font-size: 0.9rem !important;
}

/* District Section */
.district-section {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding: 1rem 1.5rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.district-badge {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.district-badge.tutong {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

.district-badge.belait {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    color: #d8b4fe !important;
}

.district-badge i {
    font-size: 0.9rem !important;
}

.time-adjust {
    font-weight: 700 !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 0.25rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    font-size: 0.75rem !important;
}

/* Footer Section */
.prayer-card-footer {
    padding: 1.25rem 1.5rem !important;
    background: rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.download-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.btn-download {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.btn-download.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

.btn-download.primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.btn-download.secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-download.secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.blessing-message {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.blessing-message i {
    font-size: 1.25rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.blessing-message span {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    background: linear-gradient(90deg, #ffd700 0%, #ffaa00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Mobile Responsive - Prayer Card */
@media (max-width: 767.98px) {
    .prayer-times-card {
        border-radius: 1rem !important;
    }

    .prayer-card-header {
        padding: 1rem !important;
    }

    .date-badge {
        padding: 0.4rem 1rem !important;
    }

    .date-badge span {
        font-size: 0.95rem !important;
    }

    .gregorian-date {
        font-size: 0.95rem !important;
    }

    .hijri-date {
        font-size: 0.85rem !important;
    }

    .prayer-times-list {
        padding: 0.5rem 0.75rem !important;
    }

    .prayer-time-row {
        padding: 0.75rem 0.75rem !important;
    }

    .prayer-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .prayer-icon i {
        font-size: 0.95rem !important;
    }

    .prayer-name {
        font-size: 0.95rem !important;
    }

    .fardhu-badge {
        font-size: 0.55rem !important;
        padding: 0.15rem 0.35rem !important;
    }

    .prayer-time {
        font-size: 1.7rem !important;
    }

    .district-section {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 0.75rem 1rem !important;
    }

    .district-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.75rem !important;
    }

    .prayer-card-footer {
        padding: 1rem !important;
    }

    .download-buttons {
        flex-wrap: wrap !important;
    }

    .btn-download {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.75rem !important;
    }

    .blessing-message {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .blessing-message span {
        font-size: 0.85rem !important;
        text-align: center !important;
    }
}

/* ==========================================
   PRAYER CARD - MODERN DESIGN
   ========================================== */

.prayer-card-modern {
    background: var(--card-bg) !important;
    backdrop-filter: var(--card-blur) !important;
    -webkit-backdrop-filter: var(--card-blur) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow) !important;
    border: var(--card-border) !important;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s ease !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    color: #0f172a !important;
}
.prayer-card-modern .card-title,
.prayer-card-modern .card-title * { color: #1e3a5f !important; font-weight: 800 !important; }
.prayer-card-modern .card-subtitle,
.prayer-card-modern .card-subtitle * { color: #1e293b !important; font-weight: 700 !important; }

.prayer-card-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    opacity: 0;
    transition: opacity 0.35s ease, left 0.35s ease, right 0.35s ease;
    z-index: 1;
    border-radius: 0 0 1px 1px;
}

.prayer-card-modern:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--card-shadow-hover) !important;
    border-color: rgba(251,191,36,0.15) !important;
}

.prayer-card-modern:hover::before {
    opacity: 1;
    left: 8%;
    right: 8%;
}

.prayer-card-responsive {
    max-width: 100% !important;
    width: 100% !important;
}

.prayer-card-modern .card-body {
    padding: var(--card-padding) !important;
}

@media (max-width: 767.98px) {
    .prayer-card-modern .card-body {
        padding: var(--card-padding-sm) !important;
    }

    .prayer-card-modern .card-title {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .prayer-card-modern .card-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .list-group-flush.mb-2 {
        margin-bottom: 0.5rem !important;
    }
}

/* Ensure countdown card container also fills width */
.col-12.col-md-8.col-lg-6 {
    width: 100% !important;
}

/* ==========================================
   GRADIENT TEXT
   ========================================== */

.gradient-text {
    background: linear-gradient(90deg, #0d6efd 30%, #6f42c1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}


/* ==========================================
   PRAYER LIST ITEMS
   ========================================== */

.list-group-item {
    padding: 0.35rem 1rem !important;
    font-size: 3rem !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    color: #212529 !important;
    text-shadow: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 95% !important;
    margin: 0 auto !important;
    border-radius: 0.5rem !important;
}

.list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.03) !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

/* Prayer name styling */
.list-group-item {
    font-weight: 600 !important;
}

/* Prayer name and time styling - Large for elderly (SAME SIZE) */
.list-group-item .prayer-name,
.list-group-item .fw-bold,
.list-group-item .prayer-time {
    font-size: 3rem !important;
    font-weight: 700 !important;
}

/* Current prayer highlight - legacy class (for JS compatibility) */
.prayer-now {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%) !important;
    font-weight: 600 !important;
    color: #059669 !important;
    border-left: 4px solid #10b981 !important;
    border-radius: 0.5rem !important;
    animation: prayer-pulse 2s ease-in-out infinite !important;
}

.prayer-now .fw-bold {
    font-size: 3.25rem !important;
    font-weight: 800 !important;
    color: #10b981 !important;
}

/* Minimize list group padding */
.list-group-flush {
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================
   ENHANCED PRAYER LIST - ICONS & STATES
   ========================================== */

/* Prayer name wrapper with icon */
.prayer-name-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Prayer icons - Smaller size */
.prayer-icon {
    font-size: 1.5rem !important;
    width: 2rem !important;
    text-align: center !important;
    opacity: 0.85 !important;
}

/* Icon, prayer name and prayer time colors by prayer - vibrant colors */
.prayer-imsak .prayer-icon { color: #6366f1 !important; }
.prayer-imsak .prayer-name { color: #4f46e5 !important; }
.prayer-imsak .prayer-time { color: #4f46e5 !important; }

.prayer-subuh .prayer-icon { color: #f97316 !important; }
.prayer-subuh .prayer-name { color: #ea580c !important; }
.prayer-subuh .prayer-time { color: #ea580c !important; }

.prayer-syuruk .prayer-icon { color: #eab308 !important; }
.prayer-syuruk .prayer-name { color: #ca8a04 !important; }
.prayer-syuruk .prayer-time { color: #ca8a04 !important; }

.prayer-dhuha .prayer-icon { color: #f59e0b !important; }
.prayer-dhuha .prayer-name { color: #d97706 !important; }
.prayer-dhuha .prayer-time { color: #d97706 !important; }

.prayer-zohor .prayer-icon { color: #ef4444 !important; }
.prayer-zohor .prayer-name { color: #dc2626 !important; }
.prayer-zohor .prayer-time { color: #dc2626 !important; }

.prayer-asar .prayer-icon { color: #f97316 !important; }
.prayer-asar .prayer-name { color: #ea580c !important; }
.prayer-asar .prayer-time { color: #ea580c !important; }

.prayer-maghrib .prayer-icon { color: #ec4899 !important; }
.prayer-maghrib .prayer-name { color: #db2777 !important; }
.prayer-maghrib .prayer-time { color: #db2777 !important; }

.prayer-isyak .prayer-icon { color: #8b5cf6 !important; }
.prayer-isyak .prayer-name { color: #7c3aed !important; }
.prayer-isyak .prayer-time { color: #7c3aed !important; }

/* Hide checkmark by default */
.prayer-check {
    display: none !important;
    color: #10b981 !important;
    font-size: 2rem !important;
}

/* Current prayer - ENHANCED Green glow with pulsing animation */
.list-group-item.prayer-current {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.15) 100%) !important;
    border-left: 5px solid #10b981 !important;
    border-radius: 0.75rem !important;
    animation: prayer-pulse 3s ease-in-out infinite !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.02) !important;
    opacity: 1 !important;
    transition: all 2s ease-in-out,
                opacity 1.8s ease-in-out,
                background 2.2s ease-in-out,
                transform 2s ease-in-out,
                box-shadow 2.5s ease-in-out !important;
    position: relative !important;
}

.list-group-item.prayer-current::before {
    content: "●" !important;
    position: absolute !important;
    left: -12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #10b981 !important;
    font-size: 1.5rem !important;
    animation: pulse-dot 2.5s ease-in-out infinite !important;
    transition: opacity 2s ease-in-out !important;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateY(-50%) scale(1.2); }
}

.list-group-item.prayer-current .prayer-name {
    color: #059669 !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(16, 185, 129, 0.3) !important;
}

.list-group-item.prayer-current .prayer-time {
    color: #10b981 !important;
    font-weight: 700 !important;
}

.list-group-item.prayer-current .prayer-icon {
    color: #10b981 !important;
    opacity: 1 !important;
    animation: icon-glow 3s ease-in-out infinite !important;
    font-size: 1.3rem !important;
    transition: all 2s ease-in-out !important;
}

@keyframes prayer-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
    }
}

@keyframes icon-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Base transition for all prayer items - Smooth and calming */
.list-group-item[data-prayer] {
    transition: all 2s ease-in-out,
                opacity 1.5s ease-in-out,
                background 2s ease-in-out,
                transform 1.8s ease-in-out,
                box-shadow 2s ease-in-out,
                border-left 1.5s ease-in-out !important;
}

/* Passed prayers - Grayed out with checkmark - Smooth fade */
.list-group-item.prayer-passed {
    opacity: 0.5 !important;
    background: rgba(0, 0, 0, 0.02) !important;
    transition: all 2s ease-in-out,
                opacity 2.5s ease-in-out,
                background 2s ease-in-out !important;
}

.list-group-item.prayer-passed .prayer-name {
    color: #6b7280 !important;
}

.list-group-item.prayer-passed .prayer-time {
    color: #9ca3af !important;
}

.list-group-item.prayer-passed .prayer-check {
    display: inline !important;
}

.list-group-item.prayer-passed .prayer-icon {
    color: #9ca3af !important;
}

/* Next prayer - ENHANCED visibility with subtle animation - Smooth and calm */
.list-group-item.prayer-next {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%) !important;
    border-left: 4px solid #3b82f6 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
    transform: scale(1.01) !important;
    opacity: 1 !important;
    transition: all 2s ease-in-out,
                opacity 1.8s ease-in-out,
                background 2.2s ease-in-out,
                transform 2s ease-in-out,
                box-shadow 2s ease-in-out !important;
    position: relative !important;
}

.list-group-item.prayer-next .prayer-name {
    color: #2563eb !important;
    font-weight: 700 !important;
}

/* Add "Seterusnya" indicator after prayer name */
.list-group-item.prayer-next .prayer-name::after {
    content: " Seterusnya ▶" !important;
    font-size: 0.7rem !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
    margin-left: 0.4rem !important;
    opacity: 0.85 !important;
    letter-spacing: 0.3px !important;
}

/* On small mobile devices, show only arrow icon */
@media (max-width: 576px) {
    .list-group-item.prayer-next .prayer-name::after {
        content: " ▶" !important;
        margin-left: 0.3rem !important;
    }
}

.list-group-item.prayer-next .prayer-time {
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

/* ==========================================
   DISTRICT BADGES - COLORED
   ========================================== */

.district-badges {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 0.25rem !important;
}

.district-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.district-badge:hover {
    transform: translateY(-1px) !important;
}

/* Tutong - Blue theme */
.district-tutong {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25) !important;
}

/* Belait - Purple theme */
.district-belait {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25) !important;
}

.district-time {
    background: rgba(255, 255, 255, 0.25) !important;
    padding: 0.1rem 0.4rem !important;
    border-radius: 1rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

/* ==========================================
   PRAYER CARD FOOTER STYLES
   ========================================== */

.prayer-card-footer {
    padding: 0.5rem 1rem !important;
    background: transparent !important;
}

.footer-divider {
    display: none !important;
}

/* Download buttons */
.download-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 0.35rem !important;
}

.btn-download {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.4rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.btn-download-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

.btn-download-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
    color: #ffffff !important;
}

.btn-download-secondary {
    background: transparent !important;
    color: #6b7280 !important;
    border: 1px solid #d1d5db !important;
}

.btn-download-secondary:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

/* Blessing section */
.blessing-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 0.25rem !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Source Attribution - KHEU */
.source-attribution {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    background: rgba(108, 117, 125, 0.08) !important;
    border-radius: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.source-attribution small {
    font-size: 0.8rem !important;
    color: #6c757d !important;
    display: flex !important;
    align-items: center !important;
}

.source-attribution i {
    color: #6c757d !important;
}

/* QR Code Section */
.qr-code-section {
    display: flex !important;
    justify-content: center !important;
    margin-top: 1rem !important;
}

.qr-code-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%) !important;
    border-radius: 1rem !important;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    text-align: center !important;
    max-width: 200px !important;
}

.qr-code-wrapper {
    background: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 0.75rem !important;
}

.qr-code-image {
    width: 120px !important;
    height: 120px !important;
    display: block !important;
    margin: 0 auto !important;
}

.qr-code-label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 0.25rem !important;
}

.qr-code-label i {
    color: #0d6efd !important;
}

.qr-code-url {
    font-size: 0.7rem !important;
    color: #6c757d !important;
    word-break: break-all !important;
    line-height: 1.3 !important;
}

/* QR Code Dark Mode */
@media (prefers-color-scheme: dark) {
    .qr-code-card {
        background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    }

    .qr-code-wrapper {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .qr-code-label {
        color: #0c4a6e !important;
    }

    .qr-code-url {
        color: #94a3b8 !important;
    }
}

/* QR Code Mobile Responsive */
@media (max-width: 576px) {
    .qr-code-card {
        padding: 0.75rem 1rem !important;
        max-width: 160px !important;
    }

    .qr-code-image {
        width: 100px !important;
        height: 100px !important;
    }

    .qr-code-label {
        font-size: 0.75rem !important;
    }

    .qr-code-url {
        font-size: 0.6rem !important;
    }
}

.blessing-icon {
    font-size: 1.5rem !important;
    color: #10b981 !important;
}

.blessing-text {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #d97706 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ==========================================
   MOBILE RESPONSIVE - ENHANCED PRAYER LIST
   ========================================== */

@media (max-width: 767.98px) {
    .list-group-item {
        padding: 0.15rem 0.5rem !important;
        font-size: 1.7rem !important;
        margin: 0 auto !important;
    }

    /* Prayer name and time - SAME SIZE on mobile */
    .list-group-item .prayer-name,
    .list-group-item .fw-bold,
    .list-group-item .prayer-time {
        font-size: 1.7rem !important;
        font-weight: 700 !important;
    }

    .prayer-icon {
        font-size: 1rem !important;
        width: 1.25rem !important;
    }

    .prayer-check {
        font-size: 0.85rem !important;
    }

    .district-badges {
        gap: 0.35rem !important;
        margin-bottom: 0.2rem !important;
    }

    .district-badge {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.8rem !important;
    }

    .district-time {
        padding: 0.05rem 0.3rem !important;
        font-size: 0.75rem !important;
    }

    .download-buttons {
        gap: 0.3rem !important;
        margin-bottom: 0.2rem !important;
    }

    .btn-download {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.75rem !important;
    }

    .blessing-icon {
        font-size: 1.1rem !important;
    }

    .blessing-text {
        font-size: 0.85rem !important;
    }

    .blessing-section {
        margin-top: 0.15rem !important;
        padding-top: 0 !important;
        gap: 0.35rem !important;
    }

    .prayer-card-footer {
        padding: 0.4rem 0.5rem !important;
    }

    .footer-divider {
        display: none !important;
    }
}

/* ==========================================
   DARK MODE SUPPORT - ALL CARDS
   ========================================== */

@media (prefers-color-scheme: dark) {
    /* === PAGE BACKGROUND === */
    .home-page-wrapper {
        background: #121218 !important;
    }

    .home-page-wrapper::before {
        opacity: 0.7;
    }

    body {
        background: #121218 !important;
    }

    /* === HEADER SECTION === */
    .page-title {
        color: #e0e0e0 !important;
        background: none !important;
        -webkit-text-fill-color: #e0e0e0 !important;
    }

    .page-subtitle {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        background: rgba(29, 78, 216, 0.92) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    .clock-display-section {
        background: rgba(0, 0, 0, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    .clock-label-top {
        color: #0c4a6e !important;
    }

    #clock-time-digits {
        color: #0c4a6e !important;
        -webkit-text-fill-color: #e2e8f0 !important;
        background: none !important;
    }

    #clock-period-label {
        background: none !important;
        color: #0c4a6e !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }

    #next-prayer-timer {
        color: #34d399 !important;
    }

    #timelapse-after-current {
        color: #0c4a6e !important;
    }

    /* Card styles moved to inline @section in Today.cshtml */

    .next-prayer-label {
        color: #a0a0a0 !important;
    }

    .next-prayer-name {
        color: #34d399 !important;
    }

    .countdown-item,
    .ramadan-countdown-card-simple .countdown-item {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }

    .countdown-value {
        color: #ffffff !important;
    }

    .countdown-label {
        color: #c4b5fd !important;
        font-weight: 600 !important;
    }

    .countdown-separator {
        color: #7c3aed !important;
    }

    .current-prayer-status {
        color: #34d399 !important;
        background: rgba(16,185,129,0.08) !important;
        border-color: rgba(16,185,129,0.15) !important;
    }

    .current-prayer-status i {
        color: #34d399 !important;
    }

    /* Card styles moved to inline @section in Today.cshtml */
    /* Ramadhan card dark mode styles removed - now in inline @section */

    /* === PRAYER CARD === */
    .prayer-card-modern {
        background: rgba(30, 30, 46, 0.9) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    }

    .prayer-card-modern .card-title {
        color: #e0e0e0 !important;
    }

    .prayer-card-modern .card-title .text-muted {
        color: #a0a0a0 !important;
    }

    .prayer-card-modern .card-subtitle {
        color: #b0b0b0 !important;
    }

    .list-group-item {
        background: transparent !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .list-group-item:hover {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    /* Prayer icons, names and times - brighter colors for dark mode */
    .prayer-imsak .prayer-icon { color: #a5b4fc !important; }
    .prayer-imsak .prayer-name { color: #818cf8 !important; }
    .prayer-imsak .prayer-time { color: #818cf8 !important; }

    .prayer-subuh .prayer-icon { color: #fdba74 !important; }
    .prayer-subuh .prayer-name { color: #fb923c !important; }
    .prayer-subuh .prayer-time { color: #fb923c !important; }

    .prayer-syuruk .prayer-icon { color: #fcd34d !important; }
    .prayer-syuruk .prayer-name { color: #fbbf24 !important; }
    .prayer-syuruk .prayer-time { color: #fbbf24 !important; }

    .prayer-dhuha .prayer-icon { color: #fcd34d !important; }
    .prayer-dhuha .prayer-name { color: #fbbf24 !important; }
    .prayer-dhuha .prayer-time { color: #fbbf24 !important; }

    .prayer-zohor .prayer-icon { color: #fca5a5 !important; }
    .prayer-zohor .prayer-name { color: #f87171 !important; }
    .prayer-zohor .prayer-time { color: #f87171 !important; }

    .prayer-asar .prayer-icon { color: #fdba74 !important; }
    .prayer-asar .prayer-name { color: #fb923c !important; }
    .prayer-asar .prayer-time { color: #fb923c !important; }

    .prayer-maghrib .prayer-icon { color: #f9a8d4 !important; }
    .prayer-maghrib .prayer-name { color: #f472b6 !important; }
    .prayer-maghrib .prayer-time { color: #f472b6 !important; }

    .prayer-isyak .prayer-icon { color: #c4b5fd !important; }
    .prayer-isyak .prayer-name { color: #a78bfa !important; }
    .prayer-isyak .prayer-time { color: #a78bfa !important; }

    /* Current prayer */
    .list-group-item.prayer-current {
        background: rgba(16, 185, 129, 0.2) !important;
    }

    .list-group-item.prayer-current .prayer-time {
        color: #34d399 !important;
    }

    /* Passed prayers */
    .list-group-item.prayer-passed {
        background: rgba(255, 255, 255, 0.02) !important;
    }

    .list-group-item.prayer-passed .prayer-name {
        color: #6b7280 !important;
    }

    .list-group-item.prayer-passed .prayer-time {
        color: #6b7280 !important;
    }

    /* Next prayer */
    .list-group-item.prayer-next {
        background: rgba(59, 130, 246, 0.15) !important;
    }

    .list-group-item.prayer-next .prayer-time {
        color: #60a5fa !important;
    }

    /* Footer buttons */
    .btn-download-secondary {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #d1d5db !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    .btn-download-secondary:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
    }

    .blessing-text {
        background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    .blessing-icon {
        color: #34d399 !important;
    }

    /* Card styles moved to inline @section in Today.cshtml */

    .card.holiday-glass-card .card-header,
    .holiday-glass-card .card-header {
        background: transparent !important;
        background-color: transparent !important;
    }

    .holiday-glass-card .card-header h6 {
        color: #60a5fa !important;
    }

    .holiday-glass-card .card-header h6.text-success {
        color: #34d399 !important;
    }

    .holiday-glass-card .card-title {
        color: #e0e0e0 !important;
    }

    .holiday-glass-card .card-text {
        color: #b0b0b0 !important;
    }

    .holiday-icon-wrapper,
    .holiday-icon-wrapper-tomorrow {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .holiday-icon-wrapper i,
    .holiday-icon-wrapper-tomorrow i {
        color: #60a5fa !important;
    }

    .category-pill-modern {
        background: rgba(99, 102, 241, 0.2) !important;
        color: #a5b4fc !important;
    }

    .status-badge-today {
        background: rgba(59, 130, 246, 0.2) !important;
        color: #60a5fa !important;
    }

    .status-badge-tomorrow {
        background: rgba(16, 185, 129, 0.2) !important;
        color: #34d399 !important;
    }

    .creator-badge-modern {
        background: rgba(255, 255, 255, 0.05) !important;
        color: #d1d5db !important;
    }

    .source-badge {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .source-badge-system {
        color: #60a5fa !important;
    }

    .source-badge-user {
        color: #34d399 !important;
    }

    .source-badge-other {
        color: #fbbf24 !important;
    }

    /* Card styles moved to inline @section in Today.cshtml */

    #todayTipsCard .card-header {
        background: transparent !important;
    }

    #todayTipsCard .card-header h6 {
        color: #a0a0a0 !important;
    }

    #todayTipsCard .tips-icon {
        color: #60a5fa !important;
    }

    #todayTipsCard .btn-outline-primary {
        color: #60a5fa !important;
        border-color: #60a5fa !important;
    }

    #todayTipsCard .btn-outline-primary:hover {
        background: rgba(96, 165, 250, 0.1) !important;
    }

    #todayTipsCard .card-body {
        background: #1e1e2e !important;
        color: #d1d5db !important;
    }

    #todayTipsCard .card-body ul li {
        color: #d1d5db !important;
    }

    #todayTipsCard .card-body strong {
        color: #e0e0e0 !important;
    }

    #todayTipsCard .text-muted {
        color: #9ca3af !important;
    }

    /* === SECTION TITLES === */
    h5.fw-bold {
        color: #e0e0e0 !important;
    }

    /* === EMPTY STATE === */
    .empty-state {
        color: #9ca3af !important;
    }

    .empty-state i {
        color: #6b7280 !important;
    }

    .empty-state h5 {
        color: #d1d5db !important;
    }
}

/* ==========================================
   ALERT STYLES - HOLIDAY INFO (DEPRECATED - Use holiday-card instead)
   ========================================== */

.alert-success {
    background: linear-gradient(90deg, #e0ffe6 0%, #f8fafc 100%) !important;
    border-radius: 0.75rem !important;
    border: 1px solid #d4edda !important;
    color: #155724 !important;
    text-shadow: none !important;
}

.alert-warning {
    background: linear-gradient(90deg, #fffbe6 0%, #f8fafc 100%) !important;
    border-radius: 0.75rem !important;
    border: 1px solid #fff3cd !important;
    color: #856404 !important;
    text-shadow: none !important;
}

/* ==========================================
   HOLIDAY CARDS - MODERN DESIGN
   ========================================== */

.holiday-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
}

.holiday-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Today's Holiday - Green Theme */
.holiday-card-today {
    border-left: 4px solid #10b981 !important;
}

.holiday-card-today .holiday-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

.holiday-card-today .holiday-card-footer {
    background: linear-gradient(to right, rgba(236, 253, 245, 0.5) 0%, rgba(240, 253, 244, 0.5) 100%) !important;
    color: #047857 !important;
    border-top: 1px solid rgba(16, 185, 129, 0.1) !important;
}

/* Tomorrow's Holiday - Amber Theme */
.holiday-card-tomorrow {
    border-left: 4px solid #f59e0b !important;
}

.holiday-card-tomorrow .holiday-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

.holiday-card-tomorrow .holiday-card-footer {
    background: linear-gradient(to right, rgba(255, 251, 235, 0.5) 0%, rgba(254, 243, 199, 0.5) 100%) !important;
    color: #92400e !important;
    border-top: 1px solid rgba(245, 158, 11, 0.1) !important;
}

/* Holiday Card Header */
.holiday-card-header {
    padding: 1rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(249, 250, 251, 0.4) 100%) !important;
}

.holiday-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    color: #fff !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.holiday-icon::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 12px !important;
    background: inherit !important;
    opacity: 0.1 !important;
    transform: scale(1.2) !important;
    z-index: -1 !important;
}

.holiday-title h5 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.25rem 0 !important;
    color: #111827 !important;
    text-shadow: none !important;
    letter-spacing: -0.01em !important;
}

.holiday-title small {
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
}

/* Holiday Card Body */
.holiday-card-body {
    padding: 0.875rem 1.25rem !important;
}

.holiday-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: background-color 0.2s ease !important;
}

.holiday-item:hover {
    background-color: rgba(0, 0, 0, 0.01) !important;
    border-radius: 0.5rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
}

.holiday-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.holiday-item-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    color: #0369a1 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(3, 105, 161, 0.1) !important;
}

.holiday-item-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.holiday-name {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 0.375rem !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
}

.holiday-description {
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
}

.holiday-description div {
    margin-bottom: 0.25rem !important;
}

.holiday-description div:last-child {
    margin-bottom: 0 !important;
}

.holiday-creator {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.holiday-creator small {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
}

.holiday-creator strong {
    color: #374151 !important;
    font-weight: 600 !important;
}

.holiday-badge {
    display: inline-block !important;
    padding: 0.2rem 0.65rem !important;
    border-radius: 9999px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

.badge-public,
.badge-cuti-umum {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
}

.badge-national,
.badge-kebangsaan {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
}

.badge-religious,
.badge-agama {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
}

.badge-project,
.badge-projek {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    color: #3730a3 !important;
}

/* Holiday Card Footer */
.holiday-card-footer {
    padding: 0.75rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

.holiday-card-footer i {
    font-size: 0.875rem !important;
    opacity: 0.8 !important;
}

/* ==========================================
   HOLIDAY CARDS - RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {
    .holiday-card-header {
        padding: 1.25rem 1.25rem 0.875rem 1.25rem !important;
    }

    .holiday-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.35rem !important;
    }

    .holiday-title h5 {
        font-size: 1.15rem !important;
    }

    .holiday-card-body {
        padding: 1rem 1.25rem !important;
    }

    .holiday-name {
        font-size: 1rem !important;
    }

    .holiday-description {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 767.98px) {
    .holiday-card {
        margin-bottom: 1rem !important;
    }

    .holiday-card-header {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }

    .holiday-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.25rem !important;
    }

    .holiday-title h5 {
        font-size: 1.05rem !important;
    }

    .holiday-title small {
        font-size: 0.8rem !important;
    }

    .holiday-card-body {
        padding: 0.875rem 1rem !important;
    }

    .holiday-item {
        gap: 0.75rem !important;
        padding: 0.75rem 0 !important;
    }

    .holiday-item-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
    }

    .holiday-name {
        font-size: 0.95rem !important;
    }

    .holiday-description {
        font-size: 0.8rem !important;
    }

    .holiday-badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.6rem !important;
    }

    .holiday-card-footer {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* ==========================================
   TIPS CARD - COLLAPSIBLE
   ========================================== */

/* Card background styles moved to inline @section in Today.cshtml */

#todayTipsCard .card-header {
    background: transparent !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 1rem 1.5rem !important;
}

.tips-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.3rem !important;
    height: 1.3rem !important;
    border-radius: 50% !important;
    background: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

#todayTipsCard .card-header h6 {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
}

#todayTipsToggleBtn {
    border-radius: 0.4rem !important;
    font-size: 0.85rem !important;
    padding: 0.35rem 0.7rem !important;
}

#todayTipsCard .card-body {
    padding: 1.5rem !important;
}

#todayTipsCard .card-body ul {
    margin-bottom: 0.5rem !important;
    padding-left: 1.25rem !important;
}

#todayTipsCard .card-body li {
    margin-bottom: 0.4rem !important;
    font-size: 0.9rem !important;
}

#todayTipsCard .card-body li:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================
   OVERRIDE GLOBAL STYLES
   ========================================== */

/* Override button styles */
.btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
    background: transparent !important;
    text-shadow: none !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* Ensure clean backgrounds */
.container,
.row,
.col {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* iPad and tablet container adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .col-12.col-md-8.col-lg-6 {
        max-width: 100% !important;
    }
}

/* ==========================================
   BEAUTIFUL HOLIDAY CARDS - CENTERED LAYOUT
   ========================================== */

/* Holiday Card Header - Date Display - Match prayer card - Override Bootstrap */
.card.holiday-glass-card .card-header,
.holiday-glass-card .card-header {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 1rem 1.5rem !important;
}

.holiday-glass-card .card-header h6 {
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

/* Holiday Icon Wrapper - Large, Vibrant and Centered */
.holiday-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: pulseGlow 2s ease-in-out infinite !important;
}

.holiday-icon-wrapper-tomorrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: pulseGlow 2s ease-in-out infinite !important;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    }
    50% {
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6), 0 0 0 6px rgba(59, 130, 246, 0.15) !important;
    }
}

.holiday-icon-wrapper:hover,
.holiday-icon-wrapper-tomorrow:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6), 0 0 0 6px rgba(59, 130, 246, 0.2) !important;
}

.holiday-icon-wrapper i,
.holiday-icon-wrapper-tomorrow i {
    font-size: 2.5rem !important;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
}

.holiday-icon-wrapper:hover i,
.holiday-icon-wrapper-tomorrow:hover i {
    transform: scale(1.15) !important;
}

/* Modern Category Pills - High Contrast */
.category-pill-modern {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: none !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.3px !important;
}

.category-pill-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
}

.category-pill-modern i {
    font-size: 0.85rem !important;
    filter: none !important;
}

/* Status Badges - Vibrant Colors */
.status-badge-today {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.3px !important;
}

.status-badge-today:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6) !important;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.status-badge-today i {
    filter: none !important;
}

.status-badge-tomorrow {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.3px !important;
}

.status-badge-tomorrow:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.status-badge-tomorrow i {
    filter: none !important;
}

/* Creator Badge - Elegant Design with Good Contrast */
.creator-badge-modern {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 2rem !important;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 3px 10px rgba(100, 116, 139, 0.3) !important;
    transition: all 0.3s ease !important;
}

.creator-badge-modern i {
    font-size: 1.1rem !important;
    filter: none !important;
}

.creator-badge-modern:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.4) !important;
}

/* Source Badges - High Contrast Color Coded */
.source-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: 2rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: 0.5px !important;
}

.source-badge:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: left 0.6s ease !important;
}

.source-badge:hover:before {
    left: 100% !important;
}

.source-badge:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.source-badge i {
    font-size: 1rem !important;
    filter: none !important;
}

/* System Badge - Bold Blue */
.source-badge-system {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
}

.source-badge-system:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6) !important;
}

/* User Badge - Bold Green */
.source-badge-user {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4) !important;
}

.source-badge-user:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.6) !important;
}

/* Other Users Badge - Bold Orange */
.source-badge-other {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4) !important;
}

.source-badge-other:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.6) !important;
}


/* ==========================================
   MOBILE RESPONSIVE - PRAYER CARD FULL WIDTH
   ========================================== */

/* Mobile container adjustments */
@media (max-width: 767.98px) {
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .home-page-wrapper .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .home-page-wrapper .col-12,
    .home-page-wrapper .col-12.col-md-8.col-lg-6,
    .home-page-wrapper .col-12.col-md-8.col-lg-6.d-flex {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Page title - fit on one line on iPhone */
    .page-title {
        font-size: 1.4rem !important;
        letter-spacing: 2px !important;
        white-space: nowrap !important;
    }

    .page-subtitle {
        font-size: 1.4rem !important;
        letter-spacing: 1px !important;
        white-space: nowrap !important;
        padding: 0.2rem 1rem !important;
    }

    /* Clock section on mobile */
    .clock-display-section {
        padding: 0.4rem 1rem !important;
        max-width: 100% !important;
        margin: 0.25rem 0.5rem !important;
        border-radius: 0.875rem !important;
    }

    #clock-time-digits {
        font-size: 2.25rem !important;
        letter-spacing: 2px !important;
    }

    #clock-period-label {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.65rem !important;
    }

    #next-prayer-timer {
        font-size: 0.9rem !important;
    }

    #timelapse-after-current {
        font-size: 0.95rem !important;
    }

    /* Prayer card full width on mobile */
    .prayer-card-modern {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: var(--card-radius-sm) !important;
    }

    .prayer-card-modern .card-body {
        padding: var(--card-padding-sm) !important;
    }

    /* Prayer list items - full width on mobile */
    .list-group-item {
        width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Prayer name and time - SAME SIZE on mobile (1.7rem) */
    .list-group-item,
    .list-group-item .prayer-name,
    .list-group-item .fw-bold,
    .list-group-item .prayer-time {
        font-size: 1.7rem !important;
        font-weight: 700 !important;
    }
}

/* ==========================================
   SHARE FEATURE - MODAL & BUTTONS
   ========================================== */

/* WhatsApp Share Button */
.btn-download-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
}

.btn-download-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    color: #ffffff !important;
}

/* Telegram Share Button */
.btn-download-telegram {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(42, 171, 238, 0.3) !important;
}

.btn-download-telegram:hover {
    background: linear-gradient(135deg, #229ed9 0%, #1a8bc7 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.4) !important;
    color: #ffffff !important;
}

/* Copy Text Button */
.btn-download-copy {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

.btn-download-copy:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
    color: #ffffff !important;
}

.btn-download-copy.copied {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4) !important;
}

/* Share Button in Footer */
.btn-download-share {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
}

.btn-download-share:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
    color: #ffffff !important;
}

/* Share Modal Styling */
.share-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.share-modal-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.25rem 1.5rem !important;
}

.share-modal-header .modal-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

.share-modal-header .modal-title i {
    color: #a78bfa !important;
}

.share-modal-body {
    padding: 1.5rem !important;
}

.share-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem !important;
    text-align: center !important;
}

/* Share Options Grid */
.share-options-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    justify-items: center !important;
}

.share-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    min-width: 80px !important;
}

.share-option:hover {
    transform: translateY(-4px) scale(1.05) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.share-icon-wrapper {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.share-icon-wrapper i {
    font-size: 1.75rem !important;
    color: #ffffff !important;
}

.share-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
}

/* Platform-specific colors */
.share-whatsapp .share-icon-wrapper {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
}

.share-whatsapp:hover .share-icon-wrapper {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
}

.share-telegram .share-icon-wrapper {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4) !important;
}

.share-telegram:hover .share-icon-wrapper {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6) !important;
}

.share-facebook .share-icon-wrapper {
    background: linear-gradient(135deg, #1877F2 0%, #0d65d9 100%) !important;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4) !important;
}

.share-facebook:hover .share-icon-wrapper {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6) !important;
}

.share-twitter .share-icon-wrapper {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8ddb 100%) !important;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.4) !important;
}

.share-twitter:hover .share-icon-wrapper {
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.6) !important;
}

.share-copy .share-icon-wrapper {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}

.share-copy:hover .share-icon-wrapper {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6) !important;
}

.share-native .share-icon-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.share-native:hover .share-icon-wrapper {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
}

/* Copy Success Message */
.copy-success-msg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-radius: 2rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
    animation: slideIn 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Share Preview */
.share-preview {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.share-preview-header {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.share-preview-content {
    padding: 1rem !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif !important;
    line-height: 1.6 !important;
}

/* Share Modal - Mobile Responsive */
@media (max-width: 575.98px) {
    .share-modal-content {
        margin: 0.5rem !important;
        border-radius: 1.25rem !important;
    }

    .share-modal-header {
        padding: 1rem !important;
    }

    .share-modal-header .modal-title {
        font-size: 1.1rem !important;
    }

    .share-modal-body {
        padding: 1rem !important;
    }

    .share-options-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }

    .share-option {
        padding: 0.75rem 0.5rem !important;
        border-radius: 0.75rem !important;
    }

    .share-icon-wrapper {
        width: 48px !important;
        height: 48px !important;
    }

    .share-icon-wrapper i {
        font-size: 1.4rem !important;
    }

    .share-label {
        font-size: 0.7rem !important;
    }

    .share-preview-content {
        font-size: 0.75rem !important;
        max-height: 150px !important;
    }
}

/* Share Modal - Dark Mode */
@media (prefers-color-scheme: dark) {
    .share-modal-content {
        background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%) !important;
    }

    .share-option {
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .share-option:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .share-preview {
        background: rgba(0, 0, 0, 0.3) !important;
    }
}

/* Share Modal - Light Mode Override */
@media (prefers-color-scheme: light) {
    .share-modal-content {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }

    .share-modal-header {
        background: rgba(0, 0, 0, 0.02) !important;
        border-bottom-color: rgba(0, 0, 0, 0.1) !important;
    }

    .share-modal-header .modal-title {
        color: #1f2937 !important;
    }

    .share-modal-header .modal-title i {
        color: #7c3aed !important;
    }

    .share-modal-header .btn-close {
        filter: none !important;
    }

    .share-subtitle {
        color: #6b7280 !important;
    }

    .share-option {
        background: rgba(0, 0, 0, 0.03) !important;
    }

    .share-option:hover {
        background: rgba(0, 0, 0, 0.06) !important;
    }

    .share-label {
        color: #374151 !important;
    }

    .share-preview {
        background: rgba(0, 0, 0, 0.03) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }

    .share-preview-header {
        background: rgba(0, 0, 0, 0.02) !important;
        color: #6b7280 !important;
        border-bottom-color: rgba(0, 0, 0, 0.1) !important;
    }

    .share-preview-content {
        color: #374151 !important;
    }
}

/* ==========================================
   PNG EXPORT TEMPLATE - BEAUTIFUL CARD DESIGN
   ========================================== */

/* Download button styling */
.share-download .share-icon-wrapper {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

.share-download:hover .share-icon-wrapper {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6) !important;
}

/* Download progress message */
.download-progress-msg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-radius: 2rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}

.download-progress-msg .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* PNG Export Template - Hidden by default */
.png-export-template {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* PNG Card Container */
.png-card {
    width: 400px;
    min-height: 650px;
    background: linear-gradient(180deg,
        #0f172a 0%,
        #1e293b 30%,
        #334155 60%,
        #1e293b 80%,
        #0f172a 100%);
    border-radius: 24px;
    padding: 24px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.png-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Header Section */
.png-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.png-header-icon {
    font-size: 40px;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.5));
}

.png-header-text {
    text-align: center;
}

.png-header-text h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.png-header-text h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 4px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Date Section */
.png-date-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.png-date-gregorian {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.png-day {
    font-size: 18px;
    font-weight: 700;
    color: #60a5fa;
}

.png-full-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.png-date-hijri {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.png-hijri-icon {
    font-size: 16px;
    color: #34d399;
}

.png-date-hijri span:last-child {
    font-size: 13px;
    color: #34d399;
    font-weight: 600;
}

/* Prayer Times Grid */
.png-prayer-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.png-prayer-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.png-prayer-row.png-fardhu {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-left: 3px solid #818cf8;
}

.png-prayer-row.png-sunnah {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.png-prayer-icon {
    font-size: 18px;
    width: 30px;
    text-align: center;
}

.png-prayer-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.png-prayer-time {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

.png-prayer-row.png-fardhu .png-prayer-name {
    color: #c4b5fd;
}

.png-prayer-row.png-fardhu .png-prayer-time {
    color: #a78bfa;
}

/* District Info */
.png-district-info {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.png-district-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    color: #ffffff;
}

.png-district-badge.png-tutong {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.png-district-badge.png-belait {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Footer */
.png-footer {
    text-align: center;
    position: relative;
    z-index: 1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.png-blessing {
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 8px;
}

.png-website {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* Hide 'Cuti & Peristiwa' heading */
.row h5:has(.bi-calendar-event) {
    display: none !important;
}

/* Sunat prayer cell — done state */
.tracker-sunat-cell.sunat-done {
    background: rgba(168, 85, 247, 0.35) !important;
    border: 2px solid #a855f7 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
    transform: scale(1.05);
}
.tracker-sunat-cell.sunat-done .sunat-done-indicator {
    display: block !important;
}
