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: 700px;
    width: 90%;
}

h1 {
    margin-bottom: 1.5rem;
}

.toggle-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.mode-btn {
    background-color: #444444;
    color: #66cc66;
    border: 1px solid #66cc66;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: monospace;
    font-size: 1em;
    transition: background-color 0.2s, color 0.2s;
}

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

.mode-btn.active {
    background-color: #66cc66;
    color: #222222;
    font-weight: bold;
}

.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="time"],
.input-group input[type="number"] {
    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="time"]:focus,
.input-group input[type="number"]:focus {
    outline: none;
    border-color: #88e888;
}

.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;
    font-family: monospace;
    width: auto;
}

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

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

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cycle-card {
    background-color: #2a2a2a;
    border: 2px solid #444444;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color 0.2s;
}

.cycle-card:hover {
    border-color: #66cc66;
}

.cycle-card.recommended {
    border-color: #66cc66;
    background-color: #2e3a2e;
}

.cycle-card.recommended .cycle-time {
    color: #88e888;
}

.cycle-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

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

.cycle-time {
    font-size: 1.6em;
    font-weight: bold;
    color: #66cc66;
    letter-spacing: 1px;
}

.cycle-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.cycle-count {
    font-size: 1em;
    font-weight: bold;
    color: #88e888;
}

.cycle-duration {
    font-size: 0.85em;
    color: #aaaaaa;
}

.cycle-badge {
    font-size: 0.75em;
    background-color: #66cc66;
    color: #222222;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    margin-top: 0.2rem;
}

.results-header {
    background-color: #444444;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.9em;
    color: #aaaaaa;
}

.results-header span {
    color: #88e888;
    font-weight: bold;
}

.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: 700px;
    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;
    }

    .container {
        width: 95%;
        padding: 1rem;
    }

    .main-container {
        width: 95%;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .toggle-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cycle-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cycle-right {
        align-items: flex-start;
    }
}
