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;
}

.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%;
}

.content-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
}

/* Sidebar Styles */
.sidebar {
    background-color: #333333;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    min-width: 200px;
    max-width: 250px;
    position: sticky;
    top: 20px;
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    color: #66cc66;
    font-size: 1.2em;
}

.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for checkbox container */
.checkbox-container::-webkit-scrollbar {
    width: 8px;
}

.checkbox-container::-webkit-scrollbar-track {
    background: #222222;
    border-radius: 4px;
}

.checkbox-container::-webkit-scrollbar-thumb {
    background: #66cc66;
    border-radius: 4px;
}

.checkbox-container::-webkit-scrollbar-thumb:hover {
    background: #88e888;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: #444444;
}

.checkbox-item input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #66cc66;
}

.checkbox-item label {
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

.sidebar-btn {
    background-color: #444444;
    color: #66cc66;
    border: 1px solid #66cc66;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: monospace;
    transition: all 0.3s;
}

.sidebar-btn:hover {
    background-color: #555555;
    border-color: #88e888;
    color: #88e888;
}

/* Main Container */
.container {
    background-color: #333333;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    text-align: center;
    flex: 1;
}

h1 {
    margin-bottom: 2rem;
}

#generate-class {
    background-color: #66cc66;
    color: #222222;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    margin-bottom: 2rem;
    width: auto;
    height: auto;
}

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

.section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 1.5rem;
    text-align: left;
}

.section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

h2 {
    margin: 0;
    text-align: left;
}

.item-container {
    display: flex;
    justify-content: flex-start;
    min-height: 2em;
    padding-left: 10px;
    font-size: 1.1em;
}

.reroll-btn {
    background: none;
    color: #66cc66;
    border: 1px solid #66cc66;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.reroll-btn:hover {
    background-color: #444;
    border-color: #888;
}

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: center;
    padding: 1rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        max-width: 100%;
        width: 100%;
    }

    .checkbox-container {
        max-height: 200px;
    }

    .about-content {
        padding: 0.5rem;
    }
}

/* Footer Styles */
.footer {
    background: #0f0f0f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    width: 100%;
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
}

.nav-links a {
    color: #66cc66;
    font-size: 1.2rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #88e888;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.category-title {
    color: #66cc66;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #66cc66;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}
