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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    transition: background 2s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 25px;
}

.zone-selector {
    margin-bottom: 25px;
}

.zone-selector label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #6B46C1;
}

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    padding-right: 40px;
}

select:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6B46C1;
}

.detect-btn {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.detect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.detect-btn:active {
    transform: translateY(0);
}

.detect-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.location-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.location-status.success {
    background: #d4edda;
    color: #155724;
}

.location-status.error {
    background: #f8d7da;
    color: #721c24;
}

.location-status.info {
    background: #d1ecf1;
    color: #0c5460;
}

.date-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    border-radius: 15px;
    color: white;
}

.date-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.date-info .hijri {
    font-size: 1rem;
    opacity: 0.9;
}

.prayer-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.prayer-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.prayer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.prayer-item.current {
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    color: white;
}

.prayer-item.completed {
    opacity: 0.7;
    background: linear-gradient(135deg, #d4edda 0%, #a8d5ba 100%);
}

.prayer-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prayer-time {
    font-size: 2rem;
    font-weight: 700;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6B46C1;
    font-size: 1.2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6B46C1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.error {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.location-info {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 20px;
}

.location-info h3 {
    color: #6B46C1;
    margin-bottom: 5px;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 20px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .prayer-times {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }
}

