body {
    background-color: #222222;
    color: #66cc66;
    font-family: monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

body.sidebar-open {
    margin-left: 250px;
}

body.sidebar-closed {
    margin-left: 0;
}

.back-button {
    color: #66cc66;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.container {
    background-color: #333333;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 800px;
    width: 90%;
}

h1 {
    margin-bottom: 2rem;
}

.input-section {
    margin-bottom: 2rem;
    text-align: left;
}

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

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

.input-group input[type="number"],
.input-group input[type="time"],
.input-group select {
    width: 100%;
    padding: 0.5rem;
    background-color: #222222;
    color: #66cc66;
    border: 1px solid #66cc66;
    border-radius: 5px;
    font-family: monospace;
    font-size: 1em;
}

.input-group input[type="number"]:focus,
.input-group input[type="time"]:focus,
.input-group select:focus {
    outline: none;
    border-color: #88e888;
}

#awake-times-container {
    margin-top: 0.5rem;
}

.awake-time-entry {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.time-range-inputs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.awake-time-start,
.awake-time-end {
    flex: 1;
    padding: 0.5rem;
    background-color: #222222;
    color: #66cc66;
    border: 1px solid #66cc66;
    border-radius: 5px;
    font-family: monospace;
    font-size: 1em;
}

.awake-time-start:focus,
.awake-time-end:focus {
    outline: none;
    border-color: #88e888;
}

.time-separator {
    color: #888888;
    font-size: 0.9em;
}

.remove-time-btn {
    background-color: #cc4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.remove-time-btn:hover:not(:disabled) {
    background-color: #ee6666;
}

.remove-time-btn:disabled {
    background-color: #555555;
    cursor: not-allowed;
    opacity: 0.5;
}

.add-time-btn {
    background-color: #444444;
    color: #66cc66;
    border: 1px solid #66cc66;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: monospace;
    font-size: 1em;
    margin-top: 0.5rem;
}

.add-time-btn:hover {
    background-color: #555555;
}

.generate-btn {
    background-color: #66cc66;
    color: #222222;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 2rem;
    width: auto;
}

.generate-btn:hover {
    background-color: #88e888;
}

.schedule-output {
    text-align: left;
    min-height: 100px;
}

.schedule-output.empty {
    display: none;
}

.schedule-options-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.schedule-option {
    background-color: #2a2a2a;
    border: 2px solid #444444;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.schedule-option:hover {
    border-color: #66cc66;
}

.option-number {
    color: #88e888;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.schedule-header {
    background-color: #444444;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.schedule-header h2 {
    margin: 0 0 0.5rem 0;
    color: #88e888;
}

.schedule-info {
    font-size: 0.9em;
    color: #aaaaaa;
}

.sleep-period {
    background-color: #2a2a2a;
    border-left: 4px solid #66cc66;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.sleep-period h3 {
    margin: 0 0 0.5rem 0;
    color: #66cc66;
}

.sleep-period-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85em;
    color: #888888;
}

.detail-value {
    font-size: 1.1em;
    color: #88e888;
    font-weight: bold;
}

.warning-message {
    background-color: #443322;
    border-left: 4px solid #cc8844;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    color: #ffcc88;
}

.error-message {
    background-color: #442222;
    border-left: 4px solid #cc4444;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    color: #ff8888;
}

a {
    color: #66cc66;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #88e888;
    text-decoration: underline;
}

.coffee-link {
    text-align: center;
    margin-top: 2rem;
}

.about-content {
    text-align: left;
    padding: 1rem;
}

.about-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #88e888;
}

.about-section {
    margin-top: 3rem;
}

.about-section h2 {
    text-align: center;
}

.footer {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.main-container {
    max-width: 800px;
    width: 90%;
    background-color: #333333;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.category-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    body.sidebar-open,
    body.sidebar-closed {
        margin-left: 0;
    }
    
    .about-content {
        padding: 0.5rem;
    }
    
    .container {
        width: 95%;
        padding: 1rem;
    }
    
    .main-container {
        width: 95%;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .sleep-period-details {
        grid-template-columns: 1fr;
    }
}
