:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --border-color: #dee2e6;
    --hover-color: #2980b9;
    --lcars-accent: #f90;
    --tip-color: #27ae60;
    --danger-color: #e74c3c;
    --github-color: #24292e;
    --nav-active: #f90;
}

/* Development environment overlay */
.dev-overlay {
    display: block; /* revert from grid */
}

/* -- hide legacy pseudo watermark layers -- */
.dev-overlay::before,
.dev-overlay::after {
    content: none !important;
}

/* Additional dev layers */
.dev-layer {
    position: fixed !important;
    top: 50%; /* default center */
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 6vw;
    font-weight: 900;
    color: #ff6b6b;
    opacity: 0.08;
    white-space: nowrap;
    pointer-events: none;
    animation: devScrollSlide 40s linear infinite;
    z-index: 9999;
}

/* -- hide middle watermarks to avoid overlap -- */
.dev-layer:nth-child(2),
.dev-layer:nth-child(5) {
    display: none !important;
}

/* Corner positions only (TL, TR, BL, BR) */
.dev-layer:nth-child(1) { top: 20%; left: 20%; }
.dev-layer:nth-child(3) { top: 20%; left: 80%; }
.dev-layer:nth-child(4) { top: 80%; left: 20%; }
.dev-layer:nth-child(6) { top: 80%; left: 80%; }

.dev-layer:nth-child(odd) { animation-direction: reverse; }

@keyframes devScrollSlide {
  0%   { transform: translate(-50%, -50%) rotate(-45deg) translateX(-30%); }
  100% { transform: translate(-50%, -50%) rotate(-45deg) translateX(30%); }
}

/* Development banner at the top */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Adjust body padding when dev banner is present */
body.dev-environment {
    padding-top: 3rem;
}

.dev-environment .container {
    margin-top: -1rem;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 2rem 0 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0 0 8px 8px;
    position: relative;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 10px;
    background: var(--lcars-accent);
    border-radius: 0 0 4px 4px;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    height: 100%;
    width: 10px;
    background: var(--lcars-accent);
    border-radius: 0 0 4px 4px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.subheader {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 80%;
}

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

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

h4 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
}

.training-section {
    max-width: 800px;
    margin: 0 auto;
}

.training-section h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.training-section ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
    color: var(--text-color);
}

.training-section ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.screenshot-guide {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.screenshot-guide h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.screenshot-guide ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.screenshot-guide li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
}

.screenshot-guide li::before {
    content: '📸';
    position: absolute;
    left: 0;
}

.tip {
    background: rgba(39, 174, 96, 0.1);
    color: var(--tip-color);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-help {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.consent-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.consent-checkbox {
    margin-right: 0.75rem;
    margin-top: 0.3rem;
}

.consent-label {
    font-size: 0.95rem;
    color: var(--text-color);
}

.consent-intro {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.build-type-selection {
    margin-bottom: 1.5rem;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.file-upload-section {
    margin-top: 1.5rem;
}

.build-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

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

.build-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.screenshots-section {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.screenshots-section h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.screenshots-section h4:not(:first-child) {
    margin-top: 1.5rem;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
}

.add-build-btn {
    background: var(--tip-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-build-btn:hover {
    background: #219a52;
}

.remove-build-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.remove-build-btn:hover {
    background: #c0392b;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--hover-color);
}

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

.privacy-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.privacy-section ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.privacy-section li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.privacy-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.privacy-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-section a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .training-section {
        padding: 1rem;
    }

    .upload-form {
        padding: 1.5rem;
    }

    .screenshot-guide,
    .build-section,
    .screenshots-section,
    .consent-group,
    .privacy-section {
        padding: 1rem;
    }

    .build-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .remove-build-btn {
        width: 100%;
    }
}

.messages {
    margin-bottom: 1.5rem;
}

.message {
    padding: 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.github-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.github-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.github-footer a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.privacy-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-section a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 1.5rem 1.5rem 0 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .screenshot-guide,
    .build-section,
    .screenshots-section,
    .consent-group {
        padding: 1rem;
    }

    .build-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .remove-build-btn {
        width: 100%;
    }

    .main-nav {
        margin: 0 -1.5rem;
        padding: 0.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .main-nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
}

.github-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.github-link:hover {
    transform: scale(1.05);
}

.github-info {
    background: var(--github-color);
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.github-info a {
    color: var(--lcars-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.github-info a:hover {
    color: white;
    text-decoration: underline;
}

/* Base navigation styles */
.main-nav {
    display: flex;
    justify-content: space-between; /* Aligns children to left and right */
    align-items: center;
    padding-bottom: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.main-nav-right li {
    margin-left: 15px; /* Spacing for right-aligned items */
}

.main-nav li {
    margin: 0 10px; /* Adjusted from 15px for a tighter look */
}

.main-nav a {
    color: #00aaff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #e9ecef;
    color: var(--hover-color);
}

.flash-messages {
    padding: 20px;
    margin: 0 -20px 20px -20px;
}

.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cta-card {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    background-color: var(--hover-color);
}

.cta-card h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.github-section {
    text-align: center;
    padding: 3rem;
    background: var(--github-color);
    color: white;
    border-radius: 8px;
    margin-top: 3rem;
}

.github-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.github-button {
    background: var(--lcars-accent);
    color: var(--github-color);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.github-button:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .feature-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .github-buttons {
        flex-direction: column;
    }

    .github-button {
        width: 100%;
        text-align: center;
    }
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.download-card ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.download-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.download-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tip-color);
}

.download-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    position: relative;
}

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

.version {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.code-block {
    background: var(--github-color);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.code-block code {
    display: block;
    color: white;
    font-family: monospace;
    margin: 0.5rem 0;
}

.installation-steps h4 {
    margin-top: 1.5rem;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

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

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.req-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.req-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.req-card ul {
    list-style-type: none;
    padding-left: 0;
}

.req-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.req-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .download-options,
    .next-steps-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .download-card,
    .step-card,
    .req-card {
        padding: 1rem;
    }

    .code-block {
        padding: 0.75rem;
        font-size: 0.9rem;
        overflow-x: auto;
    }
}

.docs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.docs-nav {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 1rem;
    z-index: 100;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.docs-nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.docs-nav a:hover {
    background: var(--background-color);
    color: var(--accent-color);
}

.docs-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.docs-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--background-color);
}

.docs-content h4 {
    color: var(--accent-color);
    margin: 1.5rem 0 1rem;
}

.info-box {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.info-box h4 {
    margin-top: 0;
    color: var(--accent-color);
}

.config-list {
    list-style: none;
    padding: 0;
}

.config-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.config-list code {
    background: var(--background-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-color);
}

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trouble-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.trouble-card h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.trouble-card ul {
    list-style: none;
    padding: 0;
}

.trouble-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.trouble-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.api-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.api-card h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.api-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.api-link:hover {
    background: var(--hover-color);
}

@media (max-width: 768px) {
    .docs-nav {
        position: static;
        margin: 1rem 0;
    }

    .docs-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .docs-nav a {
        display: block;
        text-align: center;
    }

    .docs-content {
        padding: 1rem;
    }

    .troubleshooting-grid,
    .api-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
}

/* Flash Messages */
.flash-messages {
    margin: 1rem 0;
    width: 100%;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-card.primary {
    background: var(--primary-color);
    color: white;
}

.contact-card.secondary {
    border: 2px solid var(--primary-color);
}

.contact-card h3 {
    color: inherit;
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-card ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.contact-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.contact-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--lcars-accent);
}

.contact-card.primary li::before {
    color: white;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

.contact-button.primary {
    background: white;
    color: var(--primary-color);
}

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

.discord-note {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0;
}

.team-section {
    margin-top: 4rem;
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 300px;
}

.team-avatar {
    width: 128px;
    height: 128px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.team-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
}

.team-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.team-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.team-link:hover {
    background: var(--background-color);
    color: var(--hover-color);
}

@media (max-width: 768px) {
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-button {
        width: 100%;
    }

    .team-card {
        margin: 0 1rem;
    }
} 

.submit-btn .spinner {
    display: none;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.5em;
}
.submit-btn.submitting .spinner {
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Styles for Training Data Statistics Page */
.stats-page-container {
    padding: 1rem 0;
}
.stats-updated-time {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: left;
}
.overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    flex: 1 1 250px;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid var(--border-color);
}
.stat-card h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.stat-card .count {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}
.detail-sections-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.detail-section {
    flex: 1 1 400px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.detail-section h3 {
    margin-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.stats-table th, .stats-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.stats-table th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
}
.stats-table tr:last-child td {
    border-bottom: none;
}
.custom-progress-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
}
.custom-progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 20px;
    transition: width 0.3s ease-in-out;
}
.custom-progress-bar.complete {
    background-color: var(--tip-color);
}
.info-box {
    background-color: #e7f3fe;
    border: 1px solid var(--accent-color);
    color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}
.info-box h4 {
    margin-top: 0;
    color: var(--primary-color);
}
.info-box ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}
/* End of Styles for Training Data Statistics Page */

/* Styles for Admin Screenshot Browser */
.admin-browser {
    display: flex;
    gap: 1rem;
}
#tree-pane {
    width: 30%;
    max-height: 80vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    padding-right: 1rem;
}
#tree-pane ul {
    list-style: none;
    padding-left: 1rem;
}
#preview-pane {
    width: 70%;
}
#preview-image {
    max-width: 100%;
    max-height: 70vh;
}
/* End of Admin Screenshot Browser Styles */

/* Styles for Admin Login */
.admin-login form {
    max-width: 400px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.admin-login label {
    font-weight: bold;
}

.main-nav-admin {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.flash-messages .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Admin Pages */
.admin-container {
    padding: 20px;
}

.admin-container h1, .admin-container h2, .admin-container h3 {
    color: var(--primary-color);
}

.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-tool-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.admin-tool-card .card-body {
    display: flex;
    flex-direction: column;
}

.admin-tool-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.card-icon {
    margin-right: 12px;
    font-size: 1.2em;
    color: var(--accent-color);
}

.admin-tool-card .card-text {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.admin-browser-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.admin-users-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-browser-sidebar {
    flex: 1;
    min-width: 300px;
}

.admin-browser-main, .admin-users-form {
    flex: 1; /* take up remaining space */
}

.browser-filters {
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 20px;
}

.tree-container {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-height: 60vh;
    overflow-y: auto;
}

.tree-container details {
    padding-left: 15px;
}

.tree-container details > summary {
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
}
.tree-container details > summary:hover {
    background-color: #f8f9fa;
}
.tree-container ul {
    padding-left: 20px;
}
.tree-container a {
    color: var(--accent-color);
    text-decoration: none;
}
.tree-container a:hover {
    text-decoration: underline;
}

#preview-pane {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#preview-pane img {
    max-width: 100%;
    border: 1px solid var(--border-color);
    background-color: #f8f9fa;
    border-radius: 4px;
}

#screenshot-info {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: left;
    border: 1px solid var(--border-color);
}

#screenshot-info p {
    margin: 8px 0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    color: white;
}

.status-accepted {
    background-color: var(--tip-color);
}

.status-declined {
    background-color: var(--danger-color);
}

.status-pending {
    background-color: var(--accent-color);
}

.status-withdrawn {
    background-color: #6c757d;
}

.error-message {
    color: var(--danger-color);
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Forms */
.browser-filters label, .admin-users-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

.browser-filters select, .form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
    background-color: #fff;
}

.browser-filters select:focus, .form-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.input-error {
    border-color: var(--danger-color);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.9em;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--hover-color);
}

/* --- Screenshot Browser Layout --- */
.screenshot-browser-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.screenshot-filters {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
}
.filters-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.filters-grid .form-group {
    flex: 1 1 150px;
    margin-bottom: 0; /* Override default form-group margin */
}
.screenshot-browser-content {
    display: flex;
    gap: 20px;
    min-height: 70vh;
}
.tree-container {
    flex: 0 0 35%;
    max-width: 450px;
    min-width: 300px;
}
.screenshot-preview {
    flex: 1 1 auto;
}
@media (max-width: 900px) {
    .screenshot-browser-content {
        flex-direction: column;
    }
    .tree-container {
        flex: 1 1 300px; /* Give it a min-height */
        max-width: 100%;
    }
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9em;
}
.btn-secondary {
    background-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
}
.btn-success {
    background-color: var(--tip-color);
}
.btn-success:hover {
    background-color: #218838;
}
.btn-warning {
    background-color: #ffc107;
    color: #212529;
}
.btn-warning:hover {
    background-color: #e0a800;
}
.btn-danger {
    background-color: var(--danger-color);
}
.btn-danger:hover {
    background-color: #c82333;
}

.form-group-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}
.user-table th, .user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.user-table th {
    background-color: #f8f9fa;
}
.user-table tr:last-child td {
    border-bottom: none;
}
.status-column {
    width: 100px;
    text-align: center;
}
.user-table th:first-child,
.user-table td:first-child {
    width: auto;
    min-width: 200px;
}
.actions-column {
    width: 300px;
}
.actions-cell {
    white-space: nowrap;
    padding: 0.5rem;
}

.resend-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.resend-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.resend-btn:hover {
    background-color: var(--hover-color);
}

.resend-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.resend-status {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}
.close-btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-body {
    overflow-y: auto;
}
.modal-body ul {
    padding-left: 20px;
    margin-top: 0;
}
.modal-body hr {
    margin: 1rem 0;
}

/* ---------------------------------------------------------------------------- */
/* Admin Dataset Manager Page Specific Styles
/* ---------------------------------------------------------------------------- */

.filter-form .filter-buttons-top {
    margin-bottom: 1rem;
}

.user-table th.filterable {
    position: relative;
    padding-right: 30px; /* space for icon */
}

.filter-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ccc;
}

.filter-icon:hover,
.filter-icon.active-filter {
    color: #007bff;
}

.filter-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 15px;
    min-width: 250px;
    border-radius: 4px;
}

.filter-popup.active {
    display: block;
}

.filter-popup label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.filter-popup .form-control {
    width: 100%;
}

.filter-popup-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.filter-popup-buttons .btn {
    margin-left: 5px;
}

.table-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.clear-filters-btn {
    color: #6c757d;
    font-size: 1.2em;
    padding: 5px;
    display: inline-block;
    line-height: 1;
}

.clear-filters-btn:hover {
    color: #dc3545;
}

.audit-log-icon {
    cursor: pointer;
    color: #6c757d;
    margin-left: 8px;
}

.audit-log-icon:hover {
    color: #007bff;
}

/* Modal styles - consistent with screenshot browser */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 960px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* User Submissions Page */
.user-submissions-page h1 {
    color: var(--primary-color);
}

.submission-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
}

.submission-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.submission-body {
    padding: 1.5rem;
}

.submission-body p {
    margin-bottom: 0.5rem;
}

.build-list, .log-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 0.5rem;
}

.submission-actions {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.submission-actions .btn {
    margin-right: 10px;
}

.log-toggle-btn {
    margin-bottom: 1rem;
}

.log-details {
    padding: 1rem;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
}

.admin-actions {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.admin-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.admin-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Auth Pages (Login/Register) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.auth-form-wrapper h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .submit-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    background-color: var(--accent-color);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
}

.modal-body hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 15px 0;
}

