.sleep-timer {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

.sleep-timer h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
}

.timer-container {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.time-display {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.time-circle::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 8px solid var(--primary);
    clip: rect(0, 150px, 300px, 0);
    transform: rotate(0deg);
    transition: transform 1s linear;
}

.time {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary);
}

.preset-times {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.time-preset {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-preset.active {
    background: var(--primary);
    color: var(--white);
}

.custom-time {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.custom-time label {
    font-size: 0.875rem;
    color: var(--gray-800);
}

.custom-time input {
    padding: 0.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 4px;
    font-size: 1rem;
}

.actions {
    display: flex;
    gap: 1rem;
}

.secondary-btn {
    background-color: var(--gray-200);
    color: var(--gray-800);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.secondary-btn:hover:not(:disabled) {
    background-color: var(--gray-300);
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.options {
    width: 100%;
    max-width: 300px;
}

.option-item {
    margin-bottom: 1rem;
}

.option-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .time-display {
        width: 250px;
        height: 250px;
    }
    
    .time {
        font-size: 2.5rem;
    }
    
    .preset-times {
        flex-direction: column;
        width: 100%;
    }
    
    .time-preset {
        width: 100%;
        text-align: center;
    }
}