/* Tom's Sleep Calculator - CSS Styles */
/* Dark, calm sleep-themed design with night palette */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0a0f29 0%, #1b264d 50%, #0a192f 100%);
    min-height: 100vh;
    color: #e8eefb;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2rem;
    color: #e0eaff;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #9ab6d9;
    font-size: 1rem;
}

.mode-section {
    background: rgba(25, 35, 60, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(147, 197, 253, 0.1);
}

.mode-section h2 {
    color: #e0eaff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.description {
    color: #9ab6d9;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

/* Input styling */
.time-input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.time-input {
    background: rgba(25, 35, 60, 0.6);
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #e0eaff;
    font-size: 1rem;
    width: 150px;
}

.time-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Results */
.results-container {
    min-height: 60px;
}

.result-item {
    background: rgba(35, 48, 78, 0.6);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #667eea;
}

.result-item.recommended {
    background: rgba(35, 48, 78, 0.8);
    border-left-color: #fbbf24;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.1);
}

.result-item strong {
    color: #e0eaff;
    display: block;
    margin-bottom: 0.25rem;
}

.result-item span {
    color: #9ab6d9;
    font-size: 0.9rem;
}

.result-item.recommended strong {
    color: #fbbf24;
}

.no-results {
    color: #7aa0c3;
    font-style: italic;
    text-align: center;
}

/* Divider */
.divider {
    border: none;
    height: 1px;
    background: rgba(147, 197, 253, 0.1);
    margin: 2rem 0;
}

/* Footer note */
.note {
    text-align: center;
    color: #7aa0c3;
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 1rem 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .time-input {
        width: 120px;
    }

    .time-input-container {
        flex-direction: column;
        align-items: stretch;
    }
}
