.countdown-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    max-width: var(--small-width);
    width: 100%;
    margin: 40px auto;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.digit-group {
    display: flex;
    gap: 4px;
}

.digit {
    width: 120px;
    height: 160px;
    background: rgba(34, 197, 94, 0.15);
    border: 4px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    font-weight: bold;
    color: #22c55e;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1), inset 0 4px 8px rgba(255, 255, 255, 0.1);
}

.separator {
    font-size: 90px;
    font-weight: bold;
    color: #22c55e;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    margin-top: -20px;
}

.timer-display.blinking .digit,
.timer-display.blinking .separator {
    animation: blink-red 0.5s infinite;
}

@keyframes blink-red {
    0%, 100% { 
        color: #ef4444;
        border-color: rgba(239, 68, 68, 0.6);
        background: rgba(239, 68, 68, 0.2);
        text-shadow: 0 0 40px rgba(239, 68, 68, 0.8);
    }
    50% { 
        color: #22c55e;
        border-color: rgba(34, 197, 94, 0.4);
        background: rgba(34, 197, 94, 0.15);
        text-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
    }
}

.time-adjuster {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.time-unit {
    text-align: center;
}

.unit-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adjust-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.adjust-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adjust-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: scale(1.05);
}

.adjust-btn:active {
    transform: scale(0.95);
}

.unit-value {
    width: 100px;
    height: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
    font-family: 'Courier New', monospace;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.quick-btn {
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.quick-btn:active {
    transform: scale(0.95);
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.control-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.start-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.start-btn:active {
    transform: translateY(0);
}

.pause-btn {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    display: none;
}

.pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.reset-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.reset-btn:hover {
    background: #e2e8f0;
}

.settings {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.setting-label {
    color: #475569;
    font-size: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

@media (max-width: 480px) {
    .countdown-container {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .digit {
        width: 45px;
        height: 60px;
        font-size: 40px;
    }

    .separator {
        font-size: 36px;
    }

    .unit-value {
        width: 70px;
        height: 40px;
        font-size: 22px;
    }

    .quick-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .control-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}