:root {
    --primary-blue: #337AB7;
    --secondary-blue: #1e4b87;
    --light-gray: #f5f5f5;
    --border-gray: #ddd;
    --text-dark: #333;
    --link-blue: #0066cc;

    /* Validation-result palette (used by dialog.css, structure-dialog.css, results-dialog.js) */
    --error-red: #d32f2f;
    --error-red-bg: #ffebee;
    --warning-orange: #f57c00;
    --warning-orange-bg: #fff3e0;
    --success-green: #388e3c;
    --success-green-bg: #f1f8e9;
    --suggestion-gold: #ffd700;
    --profile-gold: #e6a800;
    --flag-blue: #1976d2;
    --flag-blue-bg: #e3f2fd;
}

body {
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: var(--light-gray);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-group span {
    font-size: 1.25rem;
    color: #666666;
    font-weight: 400;
}

.header-content h1 {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
    color: #666666;
}

.main-container {
    max-width: 1200px;
    margin: 3.5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}

.main-content {
    padding-right: 2rem;
}

.description {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
}

.description p {
    margin: 0 0 1rem 0;
}

.description p:last-child {
    margin-bottom: 0;
}

.button-container {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

button,
.return-button {
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
}

button:disabled,
.return-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

button:not(:disabled):hover,
.return-button:hover {
    background-color: var(--secondary-blue);
}

.support-resources {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 4px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    align-items: flex-start;
}

.support-resources h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.25rem;
    text-align: left;
    width: 100%;
}

.support-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.support-resources li {
    margin: 0.5rem 0;
    text-align: left;
}

.support-resources a {
    color: var(--link-blue);
    text-decoration: none;
}

.support-resources a:hover {
    text-decoration: underline;
}

footer {
    display: none;
}

.return-button {
    padding: 0.35rem 0.8rem;
    min-height: unset;
    text-decoration: none;
}

.return-button:hover {
    text-decoration: none;
}

.testing-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.testing-notice p {
    margin: 0;
    color: #856404;
}

/* Loading overlay — the #loading-overlay element is created in script.js */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
