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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* To'q yashil gradient fon */
    background: linear-gradient(135deg, #0f4c3a 0%, #1a5f4a 50%, #0d3d2f 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Bezak elementi (orqa fon uchun) */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Asosiy konteyner */
.container {
    width: 100%;
    max-width: 500px;
    z-index: 1;
}

/* Kartochka */
.card {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: white;
    backdrop-filter: blur(10px);
}

/* Sarlavha */
.title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #ffd700;
    text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.5);
}

/* Joy tanlash */
.location-selector {
    margin-bottom: 30px;
}

.location-selector label {
    display: block;
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.location-selector select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ffd700;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.location-selector select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffed4e;
}

.location-selector select option {
    background: #1a5f4a;
    color: white;
}

/* Vaqtlar konteyneri */
.times-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* Vaqt bloki */
.time-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Vaqt sarlavhasi */
.time-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.time-header .icon {
    font-size: 1.5rem;
}

.time-header .label {
    font-size: 1rem;
    color: #d0d0d0;
}

.time-header .time {
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
}

/* Countdown (sariq pill) */
.countdown {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.countdown-label {
    font-size: 0.9rem;
    color: #1a5f4a;
    font-weight: 600;
}

.countdown-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0f4c3a;
    font-family: 'Courier New', monospace;
}

/* Xabar (agar ma'lumot topilmasa) */
.message {
    text-align: center;
    color: #ff6b6b;
    font-size: 0.9rem;
    margin: 15px 0;
    display: none;
}

.message.show {
    display: block;
}

/* Footer */
.footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer p {
    font-size: 0.75rem;
    color: #808080;
}

/* Modal (Duo popup) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a5f4a 0%, #0f4c3a 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #ffd700;
    animation: slideDown 0.4s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.5);
}

.modal-content #duaText {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.modal-content #duaText .arabic {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffd700;
    direction: rtl;
}

.modal-content #duaText .uzbek {
    margin-top: 10px;
    font-style: italic;
    color: #d0d0d0;
}

/* Responsive dizayn */
@media (max-width: 480px) {
    .card {
        padding: 20px;
    }

    .title {
        font-size: 1.5rem;
    }

    .time-header .time {
        font-size: 1.2rem;
    }

    .countdown-value {
        font-size: 1rem;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-content #duaText {
        font-size: 1rem;
    }
}
