/* CSS Variables for easy customization */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #f8fafc;
    --card-bg: #5E2B6D;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset and base styles */
.countdown-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem auto;
}



.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: #E6E6FA !important;
    font-weight: 700;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.value {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #e0f2fe, #bae6fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    font-weight: 500;
}

.complete-message {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ade80;
    display: none;
    margin-top: 2rem;
    animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes flip {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.flip {
    animation: flip 0.6s cubic-bezier(0.455, 0.030, 0.515, 0.955);
}

/* Responsive design */
@media (max-width: 768px) {
    .timer {
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 80px;
    }
    
    .value {
        font-size: 2.5rem;
    }
    
    .countdown-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .timer {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 70px;
    }
    
    .value {
        font-size: 2rem;
    }
    
    .label {
        font-size: 0.8rem;
    }
}