/* Global Stylesheet for Camp Istiqomah */
:root {
    --bg-dark: #07090e;
    --bg-card: #0f131c;
    --primary-green: #10b981;
    --primary-gold: #d97706;
    --primary-yellow: #f59e0b;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --accent-red: #ef4444;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 75px; /* Spacing for bottom navigation */
}

/* Custom Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
}

.text-gold {
    color: var(--primary-gold) !important;
}

.text-yellow {
    color: var(--primary-yellow) !important;
}

/* Premium Card Styles */
.card-premium {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

/* Active field styling for Worship Tracker */
.tracker-card {
    transition: background-color 0.4s ease;
}

.tracker-card.active-done {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: var(--primary-green);
}

.tracker-card.active-haid {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--accent-red);
}

/* Custom Buttons */
.btn-emerald {
    background-color: var(--primary-green);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-emerald:hover, .btn-emerald:focus {
    background-color: #059669;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-gold {
    background-color: var(--primary-gold);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-gold:hover, .btn-gold:focus {
    background-color: #b45309;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.4);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #0f131c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-nav-item {
    text-decoration: none;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    transition: color 0.2s ease;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-green);
}

/* Slider Banner */
.banner-slider-container {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.carousel-item img {
    height: 180px;
    object-fit: cover;
}

/* Vertical Ticker Styles */
.ticker-wrapper {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    animation: tickerLoop 25s linear infinite;
    position: absolute;
    width: 100%;
}

.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

@keyframes tickerLoop {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Loops perfectly with cloned elements */
}

/* Tasbih 3D and click animations */
.tasbih-area {
    width: 100%;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
}

.tasbih-counter-3d {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1f2937, #030712);
    box-shadow: 
        inset 10px 10px 20px rgba(255, 255, 255, 0.05),
        20px 20px 40px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(16, 185, 129, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: transform 0.05s ease;
    z-index: 5;
}

.tasbih-counter-3d:active {
    transform: scale(0.95);
    box-shadow: 
        inset 5px 5px 10px rgba(255, 255, 255, 0.05),
        10px 10px 20px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(16, 185, 129, 0.3);
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    pointer-events: none;
    animation: flyParticle 0.8s ease-out forwards;
}

@keyframes flyParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Modal Popup Broadcast Overlay */
.popup-broadcast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-broadcast-card {
    background-color: var(--bg-card);
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* Custom Form elements */
.form-control-dark {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 8px;
}

.form-control-dark:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    color: var(--text-white);
}

/* Alert styles */
.alert-dark {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--text-white);
}
.alert-danger-dark {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--text-white);
}

/* Global label colors change to light yellow */
label, .form-label, .login-theme-label, .profile-theme-label {
    color: #FFE89A !important;
}
