/* countdown.css */
.countdown-container {
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    transition: background-color 0.5s ease;
}

.countdown-format-controls {
    z-index: 3;
}

.countdown-finish-message {
    z-index: 2;
}

.countdown-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    word-break: break-word;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.countdown-display {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 2;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Inter', monospace;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.progress-container {
    width: 100%;
    max-width: 600px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 2rem;
    overflow: hidden;
    display: none;
    z-index: 2;
}

.progress-bar {
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent),
        linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    background-size: 2rem 2rem, 100% 100%;
    width: 0%;
    transition: width 1s linear;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 2rem 0, 0 0; }
    100% { background-position: 0 0, 0 0; }
}

.settings-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-box {
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.share-url {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: inherit;
    outline: none;
    font-family: monospace;
    opacity: 0.8;
}

.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

@media (max-width: 768px) {
    .countdown-value {
        font-size: 2.5rem;
    }
    .countdown-item {
        min-width: 70px;
        padding: 1rem;
    }
}
