* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

h1 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: #fff;
    color: #000;
}

.time-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.time-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-input label {
    font-size: 1rem;
    min-width: 150px;
    text-align: right;
}

.time-input input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #fff;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.time-input input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.timer-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

.timer {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-variant-numeric: tabular-nums;
}

.start-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.start-btn:hover {
    transform: scale(1.05);
}

.start-btn.active {
    background: #ff0000;
    color: #fff;
}

.stop-alarm-btn {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.stop-alarm-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .timer {
        font-size: 5rem;
    }

    .mode-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .time-input {
        flex-direction: column;
        gap: 0.5rem;
    }

    .time-input label {
        text-align: center;
        min-width: auto;
    }
}