/* استایل‌های تایمر */
.timer-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer-title {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
}

.time-unit {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 8px;
    min-width: 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.time-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    display: block;
}

.timer-expired {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.timer-expired-message {
    text-align: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-top: 8px;
}

.timer-urgent {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% { 
        transform: scale(1.05);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    .timer-display {
        gap: 6px;
    }
    
    .time-unit {
        min-width: 50px;
        padding: 8px 5px;
    }
    
    .time-value {
        font-size: 1.2rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .timer-title {
        font-size: 1rem;
    }
}
