body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    padding: 2rem;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    position: relative; 
}

.header-wrapper {
    width: 100%;
    max-width: 800px;
    margin-bottom: 1rem;
}
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}
.header-bar h1 {
    font-size: 1.5rem; 
    font-weight: bold;
    color: #1f2937;
    flex-grow: 1; 
    text-align: center; 
    margin: 0 10px;
}
.logo-container img {
    height: 40px; 
    width: auto;
    flex-shrink: 0;
}
.menu-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
}
.menu-icon svg {
    width: 30px;
    height: 30px;
    color: #1f2937;
}

.hidden-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 5rem; 
    display: flex;
    flex-direction: column;
}
.hidden-menu.active {
    transform: translateX(0);
}
.hidden-menu a {
    padding: 1rem 1.5rem;
    color: #1f2937;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background-color 0.2s;
}
.hidden-menu a:hover {
    background-color: #eff6ff;
    color: #2563eb;
}

.container {
    background-color: #ffffff;
    padding: 1rem; 
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 1rem;
    max-width: 800px;
}
@media (min-width: 640px) {
    .logo-container img {
        height: 60px;
    }
    .header-bar h1 {
        font-size: 2.25rem; 
    }
}

.input-group { display: flex; flex-direction: column; }
label { font-weight: 600; color: #4b5563; margin-bottom: 0.5rem; }
select, input[type="text"], input[type="number"], textarea { padding: 0.75rem; border-radius: 0.5rem; border: 1px solid #d1d5db; background-color: #f9fafb; outline: none; }
#total-marks-input[readonly] { background-color: #e5e7eb; color: #6b7280; }
.generate-btn { width: 100%; padding: 1rem; font-size: 1.125rem; font-weight: bold; color: white; background-color: #10b981; border: none; border-radius: 0.75rem; cursor: pointer; margin-top: 2rem; }
.ad-unit { margin: 1.5rem 0; text-align: center; min-height: 100px; background-color: #e0e7ff; padding: 0.5rem; border-radius: 0.5rem; border: 1px dashed #6366f1; }
.output-section { margin-top: 2rem; padding: 1.5rem; background-color: #f9fafb; border-radius: 0.75rem; border: 1px solid #e5e7eb; }
.error-message { color: #b91c1c; background-color: #fef2f2; padding: 1rem; border-radius: 0.5rem; border: 1px solid #fca5a5; margin-top: 1rem; }
.page-footer { width: 100%; max-width: 800px; text-align: center; padding: 1rem 0; margin-top: 2rem; font-size: 0.875rem; color: #6b7280; border-top: 1px solid #d1d5db; }

.answer-key-header {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 20px;
}

/* Overlay & Spinner */
#api-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 8px solid #f3f3f3; 
    border-top: 8px solid #3498db; 
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    z-index: 101; 
}

/* Suggestions List Styling */
#board-suggestions {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #ffffff;
}
#board-suggestions::-webkit-scrollbar {
    width: 8px;
}
#board-suggestions::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}