:root {
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --text-muted: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.2), transparent 70%);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    position: relative;
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.glass-header,
.glass-card,
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.brand-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
    cursor: pointer;
    /* Add cursor pointer for admin login */
}

.brand-text h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slogan {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.player-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.player-card {
    width: 100%;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.album-art {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 3px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.spin-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    animation: spin 10s linear infinite;
    animation-play-state: paused;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.tiktok:hover {
    background: #000000;
    border-color: #ff0050;
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.3);
}

.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
}

.hidden {
    display: none !important;
    pointer-events: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
}

.modal-content {
    width: 280px;
    max-width: 80%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: rgba(15, 12, 41, 0.95);
    border-radius: 20px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-content.bible-view-active {
    width: 90%;
    height: 90vh;
    /* Use viewport height */
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-header h2 {
    color: #fff;
    font-size: 1.4rem;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    /* This enables scrolling on the body */
    display: flex;
    flex-direction: column;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item-btn {
    background: transparent;
    border: none;
    padding: 18px 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    border-radius: 10px;
}

.menu-item-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.icon-wrapper {
    font-size: 1.2rem;
}

.menu-item-btn span {
    font-weight: 500;
    font-size: 1.1rem;
}

.bible-color {
    color: #ffd700;
}

.schedule-color {
    color: #4facfe;
}

.install-color {
    color: #2ecc71;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.playing .spin-art {
    animation-play-state: running;
}

.track-info h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.track-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 80%;
    color: var(--text-muted);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    margin-top: -6px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.glass-footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Bible & Schedule Section Styles --- */
.bible-container,
.schedule-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    flex-grow: 1;
}

.bible-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.bible-header h3 {
    font-size: 1.3rem;
    color: #fff;
    flex-grow: 1;
}

.small-btn {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.bible-view {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 20px;
}


.bible-view::-webkit-scrollbar,
.schedule-list::-webkit-scrollbar,
.bible-text::-webkit-scrollbar {
    width: 6px;
}

.bible-view::-webkit-scrollbar-track,
.schedule-list::-webkit-scrollbar-track,
.bible-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.bible-view::-webkit-scrollbar-thumb,
.schedule-list::-webkit-scrollbar-thumb,
.bible-text::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.section-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.bible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}

.bible-item-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 15px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    text-align: center;
}

.bible-item-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
}

.bible-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    white-space: pre-wrap;
    text-align: justify;
    padding: 25px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    height: 100%;
    overflow-y: auto;
}

.secondary-btn {
    margin-top: 15px;
    flex-shrink: 0;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}


.schedule-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.schedule-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.schedule-item.active {
    border-left-color: var(--secondary-color);
    background: rgba(0, 242, 254, 0.1);
}

.schedule-item .time {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}


.schedule-item .program-name {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-color);
}

.bible-testament-header {
    grid-column: 1 / -1;
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 25px 0 10px;
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    font-weight: 700;
}