/* ==================== */
/* BASE STYLES & RESETS */
/* ==================== */
body {
    background: url('../img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    color: #333;
    position: relative;
}

/* =============== */
/* LAYOUT & STRUCTURE */
/* =============== */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.bg-thumb-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 0.5rem;
}

/* ============= */
/* UI COMPONENTS */
/* ============= */

/* Background Thumbnails */
.bg-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 16px;
    margin: 0 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: border 0.2s, box-shadow 0.2s;
    flex: 0 0 auto;
}

    .bg-thumb.selected {
        border: 2px solid #0d6efd;
        box-shadow: 0 0 0 3px #0d6efd33;
    }

/* Prayer Cards */
.prayer-card-modern {
    background: rgba(255,255,255,0.18);
    border-radius: 2.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    opacity: 0.95;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(95px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 2px solid rgba(13,110,253,0.25);
    border-image: linear-gradient(120deg, #0d6efd 10%, #6f42c1 60%, #00e0ff 100%);
    border-image-slice: 1;
    letter-spacing: -0.5px;
    line-height: 1.1;
    padding: 0.5rem;
}

    .prayer-card-modern:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 12px 36px rgba(13,110,253,0.18);
        border-color: #6f42c1;
    }

.prayer-card-today {
    background-color: #ffe082 !important; /* A visible yellow highlight */
    border: 2px solid #ffb300 !important; /* A strong amber border */
}

/* Prayer List Items */
.list-group-item {
    font-size: clamp(2.4rem, 4vw, 3.3rem);
    padding: 0.0rem 0.3rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, color 0.2s ease, text-shadow 0.2s;
    color: var(--prayer-list-color, #222);
    text-shadow: var(--prayer-list-shadow, none);
    border-radius: 1.5rem;
}

.list-group-item2 {
    font-size: clamp(2.0rem, 2vw, 3.3rem);
    padding: 0.0rem 0.3rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, color 0.2s ease, text-shadow 0.2s;
    color: var(--prayer-list-color, #222);
    text-shadow: var(--prayer-list-shadow, none);
    border-radius: 1.5rem;
}

.list-group-item1 {
    font-size: clamp(1.9rem, 1vw, 2.5rem);
    padding: 0.0rem 1.9rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, color 0.2s ease, text-shadow 0.2s;
    color: var(--prayer-list-color, #222);
    text-shadow: var(--prayer-list-shadow, none);
    border-radius: 1.5rem;
}

.prayer-now {
    background: linear-gradient(90deg, #e0ffe0 0%, #c0f7ff 100%) !important;
    font-weight: bold;
    color: #0d6efd !important;
    border-left: 5px solid #0d6efd;
    box-shadow: 0 0 12px 2px #0d6efd33;
    animation: glow 1.2s infinite alternate, pulse-border 2s infinite;
}

/* Timer Cards */
#next-prayer-timer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.timer-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2.2rem 1.2rem 2.2rem 1.2rem / 1.5rem 2.5rem 1.5rem 2.5rem;
    padding: 0.8rem 1.2rem;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.18), 0 1.5px 0 #6f42c1;
    border: 2.5px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

    .timer-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        border-radius: inherit;
        padding: 2px;
        background: linear-gradient(120deg, #0d6efd 10%, #6f42c1 60%, #00e0ff 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

.timer-value {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.timer-label {
    font-size: 1rem;
    color: #6f42c1;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Holiday Glass Card */
.holiday-glass-card {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.18);
    transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
}

    .holiday-glass-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 12px 36px rgba(13, 110, 253, 0.15);
    }

.icon-glass {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 60%, #6f42c1 100%);
    box-shadow: 0 2px 8px #0d6efd33;
}

/* ============= */
/* TYPOGRAPHY */
/* ============= */
.modern-gradient-text {
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif !important;
    background: linear-gradient(120deg, #0d6efd 10%, #6f42c1 60%, #00e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 2px;
    filter: brightness(1.2) contrast(1.3) drop-shadow(0 2px 8px #fff) drop-shadow(0 0 12px #0d6efd99);
    text-shadow: 0 2px 16px #fff, 0 0 8px #0d6efd, 0 0 2px #fff;
}

.auto-contrast-glow {
    color: #fff !important;
    text-shadow: 0 2px 1px #fff, 0 0 8px #0d6efd, 0 0 2px #fff;
    position: relative;
}

.modern-gradient-text-blue {
    background: linear-gradient(90deg, #2196f3 0%, #0d47a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

h2 {
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 1rem;
}

h4 {
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============= */
/* UTILITY CLASSES */
/* ============= */
.gradient-line {
    width: 100%;
    height: 0.5px;
    border: none;
    margin: 0.1rem 0;
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%);
}

.fancy-link {
    color: #0d6efd;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

    .fancy-link:hover {
        color: #6f42c1;
        text-shadow: 0 0 8px #6f42c1, 0 0 2px #fff;
    }

.auto-contrast {
    transition: color 0.3s, text-shadow 0.3s;
}

.clock-glow {
    color: #0d6efd;
    text-shadow: 0 0 8px #0d6efd66, 0 0 2px #fff;
    letter-spacing: 2px;
}

.custom-footer {
    background: transparent !important;
    box-shadow: none !important;
}

/* ============= */
/* ANIMATIONS */
/* ============= */
@keyframes glow {
    from {
        box-shadow: 0 0 12px 2px #0d6efd33;
    }

    to {
        box-shadow: 0 0 24px 6px #0d6efd66;
    }
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 4px 24px 0 #0d6efd33, 0 1.5px 0 #6f42c1;
    }

    50% {
        box-shadow: 0 8px 32px 4px #6f42c155, 0 2.5px 0 #0d6efd;
    }

    100% {
        box-shadow: 0 4px 24px 0 #0d6efd33, 0 1.5px 0 #6f42c1;
    }
}

/* ============= */
/* RESPONSIVE STYLES */
/* ============= */
@media (max-width: 767px) {
    .prayer-card-modern {
        border-radius: 1.5rem !important;
    }

    .container {
        padding: 1rem !important;
    }

    #next-prayer-timer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timer-card {
        padding: 0.6rem 1rem;
        min-width: 70px;
        border-radius: 1.2rem 2rem 1.2rem 2rem !important;
    }

    .timer-value {
        font-size: 2rem;
    }

    .holiday-glass-card {
        border-radius: 1.5rem !important;
        padding: 1.25rem !important;
    }

    .icon-glass {
        width: 40px;
        height: 40px;
    }

    .bg-thumb-row {
        justify-content: center;
    }
}

/* ============= */
/* LOGOUT MODERN PAGE */
/* ============= */
.logout-glass-card {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.18);
    max-width: 400px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem 2rem;
}
.logout-progress {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #1e90ff 0%, #00c6ff 100%);
    width: 0;
    transition: width 2.5s linear;
}
.logout-spinner {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.2rem;
}
.logout-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
}

/* ============= */
/* ADMIN MENU LINK */
/* ============= */
.admin-link {
    background: linear-gradient(90deg, #fffbe6 0%, #ffe082 100%);
    border-radius: 0.75rem;
    color: #b28704 !important;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}
.admin-link:hover, .admin-link:focus {
    background: linear-gradient(90deg, #ffe082 0%, #ffd54f 100%);
    color: #7c5a00 !important;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.18);
    text-decoration: none;
}
.admin-link i {
    font-size: 1.2rem;
    vertical-align: middle;
}
