/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: #ffffff;
    text-align: center;
    flex-direction: column;
    padding: 20px;
}

/* Subtle Gradient Animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.container {
    width: 90%;
    max-width: 400px;
}

/* Heading */
h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Card Styling */
.card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    width: 100%;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff4e50, #fc913a);
    transition: width 0.5s ease-in-out;
    border-radius: 8px;
}

/* Progress Text */
#progress-text {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Countdown Grid - Single Column, Centered */
.countdown-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 250px;
}

/* Countdown Item - Perfectly Aligned */
.countdown-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 1.6rem;
}

/* Countdown Value (Numbers) */
.countdown-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f9d423;
    width: 50px; /* Fixed width for alignment */
    text-align: right;
    margin-right: 10px;
}

/* Countdown Label (Text) */
.countdown-label {
    font-size: 1.2rem;
    color: #ddd;
    text-transform: uppercase;
    font-weight: 500;
    text-align: left;
    flex-grow: 1;
}
