:root {
    --primary-color: #1F4037;
    --secondary-color: #99B898;
    --accent-color: #C5B358;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --error-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.subtitle-translation {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.subtitle-source {
    font-size: 0.9rem;
    opacity: 0.9;
}

.location-selector {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:hover, select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.prayer-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.prayer-card:hover {
    transform: translateY(-5px);
}

.prayer-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.countdown {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: monospace;
}

.prayer-time {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.error-message {
    text-align: center;
    color: var(--error-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    display: none;
}

.error-message.visible {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-color);
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .countdown {
        font-size: 2rem;
    }

    .location-selector {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        min-width: 100%;
    }
}
