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

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

.planner-container {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.planner-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-btn {
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.mode-btn p {
    color: var(--gray-800);
    font-size: 0.875rem;
}

.mode-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.mode-btn.active h3,
.mode-btn.active p {
    color: var(--white);
}

.planner-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 4px;
    font-size: 1rem;
}

.nap-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.nap-type {
    position: relative;
    cursor: pointer;
}

.nap-type input {
    position: absolute;
    opacity: 0;
}

.type-content {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.nap-type input:checked + .type-content {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--white);
}

.type-content h4 {
    margin-bottom: 0.5rem;
}

.duration {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.nap-type input:checked + .type-content .duration {
    background: var(--white);
    color: var(--primary);
}

.type-content p {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.fatigue-level {
    margin-top: 1rem;
}

.fatigue-level input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
}

.fatigue-level input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.level-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.results h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.recommended-times {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-option {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-option.recommended {
    background: var(--primary-light);
    color: var(--white);
}

.time-details {
    flex: 1;
}

.time-value {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.time-description {
    font-size: 0.875rem;
}

.nap-tips {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.nap-tips h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.nap-tips ul {
    list-style: none;
}

.nap-tips li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.nap-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

@media (max-width: 768px) {
    .planner-container {
        padding: 1rem;
    }
    
    .nap-types {
        grid-template-columns: 1fr;
    }
    
    .time-option {
        flex-direction: column;
        text-align: center;
    }
}