/* Prayer Times Page Styles */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    scroll-behavior: smooth;
    transition: all 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Header */
header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-button.small {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    margin: 0 1rem;
    border-radius: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

.nav-button.small:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.top-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    align-self: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Location Section */
.location-section {
    margin-bottom: 3rem;
    text-align: center;
}

.location-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 1.5rem;
    border: none;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(34, 197, 94, 0.3);
    backdrop-filter: blur(20px);
    font-size: 1.2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.location-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.3));
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
}

.location-status {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-status.show {
    opacity: 1;
    transform: translateY(0);
}

.location-status.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.location-status.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Prayer Container */
.prayer-container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 3rem;
}

/* Date Display */
.date-display {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.current-date {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hijri-date {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Prayer Times Grid */
.prayer-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.prayer-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prayer-card:hover::before {
    opacity: 1;
}

.prayer-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.prayer-card.current {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    border-color: rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.prayer-card.passed {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.prayer-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.prayer-time {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.prayer-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.prayer-card.current .prayer-status {
    color: #22c55e;
    font-weight: 700;
}

/* Next Prayer Section */
.next-prayer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.next-prayer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    opacity: 0;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.next-prayer h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.next-prayer-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.countdown {
    font-size: 2.5rem;
    font-weight: 800;
    color: #22c55e;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    animation: countdownPulse 1s ease-in-out infinite alternate;
}

@keyframes countdownPulse {
    from { text-shadow: 0 0 20px rgba(34, 197, 94, 0.5); }
    to { text-shadow: 0 0 30px rgba(34, 197, 94, 0.8); }
}

/* Settings Section */
.settings {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 900px;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.settings h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-weight: 700;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.setting-group label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    font-size: 1rem;
}

.setting-group select {
    padding: 1rem 1.5rem;
    border-radius: 1.2rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.setting-group select:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.setting-group select:focus {
    outline: none;
    border-color: #22c55e;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Footer */
footer {
    margin-top: auto;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .top-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button.small {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: 120px;
    }
    
    .prayer-times {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .prayer-card {
        padding: 1.5rem 1rem;
    }
    
    .prayer-time {
        font-size: 1.8rem;
    }
    
    .next-prayer-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .countdown {
        font-size: 2rem;
    }
    
    .settings {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .prayer-times {
        grid-template-columns: 1fr;
    }
    
    .prayer-card {
        padding: 1.5rem;
    }
    
    .current-date {
        font-size: 1.5rem;
    }
    
    .countdown {
        font-size: 1.8rem;
    }
    
    .settings {
        padding: 1.5rem;
    }
}

/* Dark mode support */
 