:root {
    --primary: #C90C0F;
    --secondary: #FAB719;
    --light: #FFFFFF;
    --dark: #1D1D1B;
}

/* Global button text contrast: white on darker buttons, black on lighter buttons.
   Exclude .whiteboard-page and .whiteboard-container so the maths whiteboard keeps its own button styles. */
body:not(.whiteboard-page) button,
body:not(.whiteboard-page) .btn,
body:not(.whiteboard-page) [role="button"],
body:not(.whiteboard-page) input[type="submit"],
body:not(.whiteboard-page) input[type="button"] {
    color: #fff !important;
}
body:not(.whiteboard-page) button.btn-secondary,
body:not(.whiteboard-page) button.btn-light,
body:not(.whiteboard-page) button.btn-outline,
body:not(.whiteboard-page) a.btn.btn-secondary,
body:not(.whiteboard-page) a.btn.btn-light,
body:not(.whiteboard-page) a.btn.btn-outline,
body:not(.whiteboard-page) .btn-secondary,
body:not(.whiteboard-page) .btn-light,
body:not(.whiteboard-page) .btn-outline,
body:not(.whiteboard-page) .btn-warning {
    color: #1D1D1B !important;
}
body:not(.whiteboard-page) button.btn-secondary:hover,
body:not(.whiteboard-page) button.btn-light:hover,
body:not(.whiteboard-page) button.btn-outline:hover,
body:not(.whiteboard-page) a.btn.btn-secondary:hover,
body:not(.whiteboard-page) a.btn.btn-light:hover,
body:not(.whiteboard-page) a.btn.btn-outline:hover,
body:not(.whiteboard-page) .btn-secondary:hover,
body:not(.whiteboard-page) .btn-light:hover,
body:not(.whiteboard-page) .btn-outline:hover,
body:not(.whiteboard-page) .btn-warning:hover {
    color: #1D1D1B !important;
}

/* Font configuration */
/* Using Rockwell for all headings and body text */

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

body {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    color: var(--primary);
    text-transform: capitalize;
}

h1 {
    font-weight: bold !important;
    color: var(--primary) !important;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif !important;
}

/* Aggressive page title overrides - text only, preserve icons */
h1,
.page-title,
.admin-title,
.setup-title,
.preview-title,
.dashboard-title,
.main-content h1,
.container h1 {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif !important;
    font-weight: bold !important;
    color: var(--primary) !important;
}

/* Preserve icon styling within titles */
h1 i,
h1 .fa,
h1 .fas,
h1 .far,
h1 .fab,
h1 .fa-duotone,
.page-title i,
.page-title .fa,
.page-title .fas,
.page-title .far,
.page-title .fab,
.page-title .fa-duotone,
.admin-title i,
.admin-title .fa,
.admin-title .fas,
.admin-title .far,
.admin-title .fab,
.admin-title .fa-duotone,
.setup-title i,
.setup-title .fa,
.setup-title .fas,
.setup-title .far,
.setup-title .fab,
.setup-title .fa-duotone,
.preview-title i,
.preview-title .fa,
.preview-title .fas,
.preview-title .far,
.preview-title .fab,
.preview-title .fa-duotone,
.dashboard-title i,
.dashboard-title .fa,
.dashboard-title .fas,
.dashboard-title .far,
.dashboard-title .fab,
.dashboard-title .fa-duotone,
.main-content h1 i,
.main-content h1 .fa,
.main-content h1 .fas,
.main-content h1 .far,
.main-content h1 .fab,
.main-content h1 .fa-duotone,
.container h1 i,
/* Font Awesome icons in page titles should keep their font family */
.container h1 .fa,
.container h1 .fas,
.container h1 .far,
.container h1 .fab,
.container h1 .fa-duotone {
    font-weight: normal !important;
    color: inherit !important;
}

/* Maximum specificity override for titles - text only */
body h1,
body .page-title,
body .admin-title,
body .setup-title,
body .preview-title,
html body h1,
html body .page-title,
html body .admin-title,
html body .setup-title,
html body .preview-title {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif !important;
    font-weight: bold !important;
    color: var(--primary) !important;
}

/* Preserve icons in high-specificity selectors */
body h1 i,
body h1 .fa,
body h1 .fas,
body h1 .far,
body h1 .fab,
body h1 .fa-duotone,
body .page-title i,
body .page-title .fa,
body .page-title .fas,
body .page-title .far,
body .page-title .fab,
body .page-title .fa-duotone,
html body h1 i,
html body h1 .fa,
html body h1 .fas,
html body h1 .far,
html body h1 .fab,
html body h1 .fa-duotone,
html body .page-title i,
/* Font Awesome icons in page titles should keep their font family */
html body .page-title .fa,
html body .page-title .fas,
html body .page-title .far,
html body .page-title .fab,
html body .page-title .fa-duotone {
    font-weight: normal !important;
    color: inherit !important;
}

section {
    padding: 4rem 2rem;
}

.hero {
    position: relative;
    padding: 2rem 1rem !important;
    min-height: 220px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center;
    background-color: var(--primary);
    color: white;
    overflow: hidden;
}

/* Add hero background styling */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/tfback.jpg');
    background-position: center center;
    background-size: cover;
    opacity: 0.25;
    z-index: 1;
}

.hero h1, .hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem !important;
    margin: 0 !important;
    line-height: 1 !important;
    color: var(--light);
}

.hero p {
    font-size: 3rem !important;
    margin: 0.5rem 0 0 !important;
    color: var(--dark);
    font-family: 'Comforter', cursive;
    position: relative;
    z-index: 2;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.double-line {
    width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Top double line: Black over Red */
.double-line .line-set {
    height: 2px;
    width: 100%;
    background: linear-gradient(to bottom,
        var(--dark) 1px,
        transparent 1px,
        transparent 2px,
        var(--primary) 2px
    );
}

/* Middle double line: Red over Black */
.double-line .line-set:nth-child(2) {
    background: linear-gradient(to bottom,
        var(--primary) 1px,
        transparent 1px,
        transparent 2px,
        var(--dark) 2px
    );
}

/* Bottom double line: Black over Red */
.double-line .line-set:nth-child(3) {
    background: linear-gradient(to bottom,
        var(--dark) 1px,
        transparent 1px,
        transparent 2px,
        var(--primary) 2px
    );
}

.quiz-item {
    background-color: var(--light);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid var(--dark);
}

.quiz-item:hover {
    transform: translateY(-5px);
}

.quiz-item h2 {
    margin: 0;
    font-size: 2rem;
    background-color: var(--primary);
    color: var(--light);
    padding: 1rem;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid var(--dark);
    text-align: center;
}

.quiz-item p {
    color: var(--dark);
    padding: 1.5rem;
    margin: 0;
}

footer {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 2rem;
}

@media (max-width: 900px) {
    .quiz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .quiz-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

.generator-section {
    background-color: var(--light);
    padding: 3rem 2rem;
}

.generator-container {
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.input-container {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem 1rem;
}

.input-group {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-description {
    flex: 0.4;
    background-color: #fff;
    border-radius: 12px;
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    min-width: 300px;
    margin-left: 2rem;
}

.quiz-description h3 {
    margin: 0;
    padding: 1rem 1.5rem;
    background-color: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 2px solid #000;
    text-align: center;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    letter-spacing: 12px;
}

.quiz-description p {
    margin: 0;
    padding: 1.5rem;
    color: #000;
    line-height: 1.6;
    font-size: 1.1rem;
    flex: 1;
    background: #fff;
}

.input-container input,
.input-container select {
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 100%;
}

.input-container button {
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-container button:hover {
    background-color: var(--dark);
}

.generate-button {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 1rem 2rem;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    font-weight: 300;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    border-radius: 4px;
}

.generate-button:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

.generation-info {
    text-align: center;
    margin-top: 1.5rem;
}

.timer {
    font-size: 2rem;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    color: var(--primary);
    margin-top: 0.5rem;
}

.quiz-result {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 100px 0;
    background-color: var(--light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quiz-result th,
.quiz-result td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--dark);
}

.quiz-result th {
    background-color: var(--primary);
    color: var(--light);
    font-weight: bold;
    padding: 12px;
    text-align: center;
    border: 1px solid #444;
}

/* Column widths for quiz result */
.quiz-result th:first-child,
.quiz-result td:first-child {
    width: 60%;
}

.quiz-result th:not(:first-child),
.quiz-result td:not(:first-child) {
    width: 10%;
    text-align: center;
}

@keyframes wave {
    0% { transform: translateY(0); }
    25% { transform: translateY(-4px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(4px); }
    100% { transform: translateY(0); }
}

@keyframes colorCycle {
    0% { 
        background-color: var(--primary);
        color: var(--light);
    }
    50% { 
        background-color: var(--secondary);
        color: var(--dark);
    }
    100% { 
        background-color: var(--primary);
        color: var(--light);
    }
}

.generating {
    position: relative;
    animation: colorCycle 30s linear infinite;
}

.generating::before {
    content: '';
}

.generating::after {
    content: '• • •';
    display: inline-block;
    margin-left: 8px;
    letter-spacing: 4px;
    animation: wave 1s infinite;
}

.quiz-container {
    width: 100%;
    margin: 2rem 0;
    padding: 0;
}

.quiz-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2rem 0;
    background-color: var(--light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quiz-table th,
.quiz-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--dark);
}

.quiz-table th {
    background-color: var(--primary);
    color: var(--light);
    font-weight: bold;
    text-align: center;
}

.quiz-table td:first-child {
    width: 60%;
}

.quiz-table td:not(:first-child) {
    width: 10%;
    text-align: center;
}

.result-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.result-buttons button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
}

.result-buttons button:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

#clear-btn {
    background-color: var(--primary);
}

#clear-btn:hover {
    background-color: var(--secondary);
}

.improvement-container {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.improvement-container input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-size: 1rem;
}

.improvement-container button {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
}

.improvement-container button:hover {
    background-color: var(--primary);
    color: var(--light);
}

.cot-display {
    background-color: #000;
    color: var(--light);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid var(--dark);
}

.cot-display.expanding {
    display: block;
}

.cot-reasoning {
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    font-size: 14px;
}

.cot-table {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre;
}

.quiz-output {
    display: block !important;
}

.error-message {
    color: var(--primary);
    font-weight: bold;
    padding: 0.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary);
    background-color: rgba(201, 12, 15, 0.1);
}

/* Scrollbar styling */
.cot-display::-webkit-scrollbar {
    width: 8px;
}

.cot-display::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cot-display::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.cot-display::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

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

.subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.quiz-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.primary-btn {
    background-color: var(--primary, #C90C0F);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: var(--secondary, #FAB719);
    color: var(--dark, #1D1D1B);
}

.generation-feedback {
    max-width: 800px;
    margin: 2rem auto;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #1D1D1B;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.generation-heading {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.quiz-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quiz-result th,
.quiz-result td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--dark);
}

.quiz-result th {
    background-color: var(--primary);
    color: var(--light);
    font-weight: bold;
    padding: 12px;
    text-align: center;
    border: 1px solid #444;
}

.quiz-result tr:nth-child(even) {
    background-color: #f8f8f8;
}

.quiz-result tr:hover {
    background-color: #f0f0f0;
}

/* Column widths */
.quiz-result th:nth-child(1), /* Question column */
.quiz-result td:nth-child(1) {
    width: 50%;
}

.quiz-result th:nth-child(2), /* A */
.quiz-result td:nth-child(2),
.quiz-result th:nth-child(3), /* B */
.quiz-result td:nth-child(3),
.quiz-result th:nth-child(4), /* C */
.quiz-result td:nth-child(4),
.quiz-result th:nth-child(5), /* D */
.quiz-result td:nth-child(5) {
    width: 12.5%;
    text-align: center;
}

/* Make the table visible when it has content */
.quiz-result:not(:empty) {
    display: block;
}
/* Button styling */
.result-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.result-buttons button {
    padding: 0.8rem 1.5rem;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary);
    color: var(--dark);
    cursor: pointer;
    transition: background-color 0.2s;
}

.result-buttons button:hover {
    background-color: var(--primary);
    color: var(--light);
}

/* Remove countdown styles */
.countdown {
    display: none;
}

.countdown-text {
    display: none;
}

.countdown-container {
    display: none;
}
#download-reasoning-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#clear-btn {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#clear-btn:hover {
    background-color: var(--secondary);
}

#clear-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.subheading {
    text-align: center;
    color: var(--dark);
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    font-size: 2rem;
    margin: 0.5rem 0;
    letter-spacing: 1px;
}

.quiz-list-section,
.quiz-list-toggle,
.quiz-list-toggle:hover,
.quiz-list-toggle::after,
.quiz-list-toggle.collapsed::after,
.quiz-list,
.quiz-list.expanded,
.quiz-list-item,
.quiz-list-item:last-child,
.quiz-list-item-info,
.quiz-list-item-title,
.quiz-list-item-type,
.quiz-list-item-links,
.quiz-list-item-links a,
.quiz-list-item-links a:hover,
.quiz-list-item-links .download-link,
.quiz-list-item-links .download-link:hover,
.quiz-list-item-links .icon-text,
.quiz-list-item-links .icon-text i,
.quiz-list-item-links .icon-text span {
    /* Remove all properties */
}

/* Queue Status Styles */
.queue-status {
    background-color: var(--dark);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    color: var(--light);
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.queue-status.show {
    display: block;
}

.queue-info {
    margin-bottom: 15px;
}

.queue-info p {
    margin: 5px 0;
    font-size: 1.1em;
}

.progress-bar {
    height: 20px;
    background-color: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.primary-button {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
}

.primary-button:hover {
    background-color: var(--secondary);
}

.primary-button:disabled {
    background-color: var(--dark);
    cursor: not-allowed;
}

nav a:hover, nav ul li a:hover {
    color: var(--secondary) !important;
    background: none !important;
}

.resource-section {
    margin: 2rem 0;
}

.resource-section h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.quiz-list-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quiz-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quiz-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light);
}

.quiz-list-item:last-child {
    border-bottom: none;
}

.quiz-list-item-info {
    flex: 1;
}

.quiz-list-item-title {
    margin: 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.quiz-list-item-type {
    margin: 0.25rem 0 0;
    color: var(--secondary);
    font-size: 0.9rem;
}

.quiz-list-item-links {
    display: flex;
    gap: 1rem;
}

.quiz-list-item-links .download-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quiz-list-item-links .download-link:hover {
    background: var(--secondary);
    color: white;
}

.quiz-list-item-links .icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-list-item-links .icon-text i {
    font-size: 1.1rem;
}

.quiz-list-item-links .icon-text span {
    font-size: 0.9rem;
}

.produced-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.produced-table th,
.produced-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--dark);
}

.produced-table th {
    background-color: var(--primary);
    color: var(--light);
    font-weight: bold;
    text-align: center;
}

.produced-table tr:nth-child(even) {
    background-color: #f8f8f8;
}

.produced-table tr:hover {
    background-color: #f0f0f0;
}

.produced-table .download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--dark);
}

.produced-table .download-link:hover {
    background: var(--secondary);
    color: var(--dark);
}

.produced-table td {
    text-align: center;
}

.produced-table td:first-child {
    text-align: left;
}

/* Status Messages */
.status-messages {
    margin: 1rem 0;
}

.status-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.status-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.status-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    margin: 1rem 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #f3f3f3;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

.download-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #2980b9;
}

.download-icon {
    font-size: 1.2rem;
}

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

/* Remove special styles for the Bathurst menu item */
.thisterm-nav-item,
.nav-logo-icon,
.nav-logo-text,
.nav-icon-wrapper {
    all: unset;
}

.menu-vertical-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90%;
    width: 3px;
    background: var(--primary);
    margin: 0 1.2rem;
    border-radius: 2px;
    align-self: center;
    min-height: 32px;
    max-height: 48px;
}

