/* static/styles.css */

/* --- SECTION 0: VARIABLES & RESET --- */
:root {
    --bg: #F8F5F0;
    /* Eggshell */
    --card: #F2EFE9;
    --text: #3C2F2F;
    /* Ash Brown */
    --primary: #8DC63F;
    /* Lime */
    --primary-dark: #2D3E33;
    --border: #D6CFC7;
    --accent-soft: #D4E2D4;
    --green: #8DC63F;

    --gap-main: 30px;
    --gap-sm: 15px;
    --radius-std: 12px;
    --radius-btn: 8px;
    --transition-speed: 0.3s;
    --shadow-depth: 0 4px 20px rgba(60, 47, 47, 0.08);

    --gallery-cols: 3;
    --vault-gap: var(--gap-main);
}

/* Custom Dropdown UI */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.custom-dropdown-selected {
    background: white;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dropdown-list {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-depth);
    max-height: 200px;
    overflow-y: auto;
}

.custom-dropdown-list.open {
    display: block;
}

.custom-dropdown-list li {
    padding: 10px;
    cursor: pointer;
    color: var(--primary-dark);
}

.custom-dropdown-list li:hover {
    background: var(--green);
}

.font-preview-box {
    font-family: var(--preview-font-family, 'DejaVuSans-Bold');
    font-size: 80px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    background: white;
    padding: 20px;
    margin: 10px 0;
    line-height: 1;
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--transition-speed) ease;
}

/* --- SECTION 5: FOOTER PROPAGATION --- */
footer {
    text-align: center;
    padding: 40px var(--gap-main);
    color: var(--text);
    /* Propagates Ash Brown */
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

/* --- SECTION 3: DASHBOARD PREVIEW --- */
.canvas-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid var(--border);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.canvas-wrapper img.stale {
    opacity: 0.5;
    filter: grayscale(50%);
}

.navbar {
    position: -webkit-sticky;
    /* Support for Safari */
    position: sticky;
    top: 0;
    z-index: 1000;

    /* Layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;

    /* Visuals - Ensure background is solid and not transparent */
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Adds depth when scrolling */
}

.nav-brand {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand-separator {
    font-weight: normal;
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--text);
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* --- SECTION 1: DROPDOWN REVISIONS --- */

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card);
    /* Uses your Beige variable */
    min-width: 240px;
    /* FIX: Increased from ~160px to 240px */
    box-shadow: var(--shadow-depth);
    border: 1px solid var(--border);
    border-radius: var(--radius-std);
    z-index: 1000;
    padding: 8px 0;
    /* Vertical spacing inside the box */
    margin-top: 10px;
    /* Gap from the 'Docs' button */
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 20px;
    /* FIX: More horizontal space (20px) */
    text-decoration: none;
    display: flex;
    /* FIX: Aligns Emoji and Text on one line */
    align-items: center;
    gap: 12px;
    /* FIX: Standard gap between icon and text */
    font-size: 0.95rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg);
    /* Light highlight on hover */
    color: var(--primary);
    /* Turns text Lime Natural on hover */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: var(--primary);
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.action-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(60, 47, 47, 0.15);
    transition: background 0.3s;
}

.action-btn:hover {
    filter: brightness(1.1);
    color: var(--text);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: #fff;
}

.status-card {
    background: var(--card);
    padding: 3rem;
    border-radius: var(--radius-std);
    border: 1px solid var(--border);
    max-width: 500px;
    margin: 10vh auto;
    text-align: center;
    box-shadow: var(--shadow-depth);
}

.icon-box,
.icon-cancel {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.highlight-box {
    background: var(--accent-soft);
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: var(--radius-btn);
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text);
}

.cta-button {
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}


/* --- SECTION 1: NAVIGATION & LINKS --- */
.nav-link {
    color: #888;
    margin-right: 15px;
    font-size: 0.9rem;
}

.nav-link-sub {
    color: var(--primary-dark);
    font-weight: normal;
}

.nav-link-key {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: normal;
}

.logout-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: var(--radius-btn);
}

/* --- SECTION 3: DASHBOARD CONTROLS --- */
.control-group {
    border: 1px solid var(--border);
    border-radius: var(--radius-std);
    padding: 15px;
    margin-bottom: 20px;
    background: var(--card);
    /* Beige from root */
}

.control-group legend {
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.font-preview-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin: 10px 0;
    color: var(--text);
}

.color-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.color-item label {
    font-size: 0.7rem;
    margin-bottom: 5px;
}

/* --- SECTION 6: TOAST NOTIFICATIONS --- */
.luman-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-depth);
    font-weight: bold;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- SECTION 2: LANDING PAGE (INDEX) --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.subtitle {
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.demo-section {
    margin-top: 50px;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.static-gallery img {
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.3s, opacity 0.4s ease-in-out;
    opacity: 1;
}

.static-gallery img:hover {
    border-color: var(--primary);
}

.pricing {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    flex: 1 1 280px;
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

input[type="email"],
input[type="text"],
textarea,
select {
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

/* --- SECTION 2: LANDING PAGE --- */
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
}

#display-email {
    font-size: 0.9rem;
    color: var(--primary-dark);
    text-decoration: none;
    margin-right: 10px;
}

.nav-right a:hover {
    color: var(--primary);
    text-decoration: underline;
}

#credit-status-badge {
    margin-right: 25px;
    border: 1px solid var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-btn);
}

.featured-card {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-depth);
}

.features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 20px 0;
    color: var(--text);
}

/* --- SECTION 3: DASHBOARD LAYOUT --- */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: var(--gap-main);
    padding: var(--gap-main);
}

.controls-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-main);
    margin-top: var(--gap-main);
}

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

@media (max-width: 700px) {
    .controls-grid-container {
        grid-template-columns: 1fr;
    }
}

.controls-sidebar {
    background: var(--bg);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-std);
    box-shadow: var(--shadow-depth);
}

.sidebar-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.sidebar-content input[type="range"] {
    width: 100%;
}

.sidebar-content input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    padding: 0;
}

.preview-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.canvas-wrapper {
    background: var(--card);
    border: 1px dashed var(--border);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-std);
    min-height: 300px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.api-output {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius-std);
    border: 1px solid var(--border);
}

.profile-container {
    max-width: 600px;
    margin: 50px auto;
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius-std);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-depth);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

.key-display {
    display: flex;
    gap: 10px;
}

.key-display input {
    flex: 1;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    margin: 30px 0;
}

.stat-item {
    background: var(--bg);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: bold;
}

.stat-value {
    color: var(--primary-dark);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-brand {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    border-radius: var(--radius-btn);
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(60, 47, 47, 0.15);
}

.notice-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.notice-card {
    background: var(--card);
    padding: 40px;
    border: 1px solid var(--green);
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(141, 198, 63, 0.1);
}

/* --- SECTION 4: VAULT & GALLERY --- */
.gallery-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 var(--gap-main);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols), 1fr);
    gap: var(--vault-gap);
    align-items: start;
}

/* Optional: If you want it to gracefully stack only on very small phone screens */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.vault-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-std);
    overflow: hidden;
    box-shadow: var(--shadow-depth);
    display: flex;
    flex-direction: column;
}

.vault-image-container {
    width: 100%;
    height: 200px;
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vault-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.vault-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vault-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
}

.vault-meta {
    font-size: 0.85rem;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card);
    border-radius: var(--radius-std);
    border: 1px dashed var(--border);
    grid-column: 1 / -1;
}

/* --- SECTION 5: DOCUMENTATION --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
}

pre,
code {
    background-color: #2D2A26;
    color: var(--bg);
    border-radius: var(--radius-btn);
    font-family: monospace;
}

pre {
    padding: 15px;
    overflow-x: auto;
}

code {
    padding: 2px 5px;
}

pre code {
    padding: 0;
    background-color: transparent;
}

.about-hero {
    text-align: center;
    padding: 100px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
    line-height: 1.8;
    color: var(--text);
    text-align: left;
}

.about-content h2 {
    color: var(--primary-dark);
    margin-top: 40px;
    font-size: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.mission-box {
    background: var(--card);
    border-left: 4px solid var(--primary);
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.2rem;
}

.doc-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
}

.doc-container h1 {
    font-size: 2.5rem;
}

.doc-container h2 {
    margin-top: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.doc-container h3 {
    margin-top: 1.5rem;
}

.doc-container ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.doc-container li {
    margin-bottom: 0.5rem;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card);
    border: 1px solid var(--border);
}

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

.parameter-table th {
    background: var(--card);
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.required-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-btn);
    font-weight: bold;
}

.pro-tip {
    background: var(--accent-soft);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--text);
}

.error-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-std);
    padding: 20px;
    margin-bottom: 20px;
}

.error-code {
    color: #ef4444;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.error-container {
    text-align: center;
    background: var(--card);
    padding: 50px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-std);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-depth);
    margin: 10vh auto;
}

.error-code-large {
    color: #ef4444;
    font-size: 5rem;
    font-weight: bold;
    font-family: monospace;
    margin: 0;
    line-height: 1;
}

.terms-section {
    margin-bottom: 30px;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius-std);
    background: var(--card);
}

.green-text {
    color: var(--primary);
}

/* --- SECTION 1: NAVBAR & NAV LINKS --- */
.nav-link {
    color: #888;
    margin-right: 15px;
    font-size: 0.9rem;
    text-decoration: none;
}

.nav-link-sub {
    color: var(--primary-dark);
    font-weight: normal;
    text-decoration: underline;
    font-size: 0.9rem;
}

.nav-link-key {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: normal;
    text-decoration: none;
}

.logout-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: var(--radius-btn);
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
}

.footer-terms {
    color: var(--text);
    text-decoration: underline;
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    /* Script will toggle this */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-box {
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius-std);
    border: 1px solid var(--primary);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-depth);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.modal-box input {
    width: 100%;
    margin: 15px 0;
    box-sizing: border-box;
}

/* --- SECTION: RENDER UI --- */
.render-header {
    background: var(--primary-dark);
    padding: 15px;
    border-radius: var(--radius-std);
    margin-bottom: 20px;
    text-align: center;
}

.render-btn-main {
    width: 100%;
    background: var(--primary);
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1rem;
}

.cost-indicator {
    font-size: 0.75rem;
    color: #fff;
    opacity: 0.8;
    text-transform: uppercase;
    font-weight: bold;
}

/* Stale state for buttons */
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Sidebar Nav */
.sidebar-nav {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.horizontal-nav {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    background: var(--card);
    padding: 15px;
    border-radius: var(--radius-std);
    border: 1px solid var(--border);
}

.nav-item {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-item.active {
    opacity: 1;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.horizontal-nav .nav-item.active {
    border-left: none;
    padding-left: 0;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 5px;
}

/* Collage UI */
.hidden {
    display: none;
}

.grid-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.file-upload-label {
    display: block;
    margin-top: 15px;
    padding: 10px;
    border: 2px dashed var(--border);
    text-align: center;
    cursor: pointer;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.6;
}

.file-preview-list {
    margin-top: 10px;
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.8rem;
}

/* Sidebar Queue Styling */
.file-preview-queue {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    padding: 5px;
    background: rgba(0, 0, 0, 0.05);
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.tiny-thumb {
    width: 50px;
    /* Compressed viewing size */
    height: 50px;
    object-fit: cover;
    /* Keeps aspect ratio clean */
    border-radius: 4px;
    border: 1px solid var(--border);
}

.file-name {
    flex-grow: 1;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Prevents long names from breaking the sidebar */
}

.collage-count-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary);
    margin: 5px 0 10px 0;
    display: none;
    /* Hidden by default, shown when Collage Mode is on */
}

.collage-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Form Layout Structures */
.control-row-split {
    display: flex;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-sm);
    align-items: flex-start;
}

.control-row-split .item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.control-row-split label {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--gap-sm);
}

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

.checkbox-row label {
    margin: 0;
    cursor: pointer;
}

/* Reusable Input Overrides */
.full-width-input {
    width: 100%;
    box-sizing: border-box;
}

.color-picker {
    width: 100%;
    height: 40px;
    padding: 0;
    border: none;
    cursor: pointer;
    background: transparent;
}

.nav-brand-link {
    text-decoration: none;
    color: var(--primary);
}

/* --- SUCCESS/VERIFY UI UTILITIES --- */
.action-row {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.redirect-notice {
    color: var(--primary);
    margin-top: 15px;
    font-size: 0.9rem;
}

.helper-text-muted {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.status-text-small {
    font-size: 0.8rem;
    margin-top: 10px;
}

.dashboard-fallback-btn {
    margin-bottom: 20px;
    display: inline-block;
}

/* Custom button with Ash Brown hover override */
.ash-hover-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-speed) ease;
}

.ash-hover-btn:hover {
    background: var(--text);
    /* Hovers Ash Brown */
    color: var(--bg);
    /* Text turns Eggshell for contrast */
    border-color: var(--text);
}

/* --- DRY UTILITY CLASSES --- */
.page-heading {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.helper-text-block {
    color: var(--text);
    display: block;
    margin-top: 5px;
}

.mt-40 {
    margin-top: 40px;
}

.w-100 {
    width: 100%;
}

/* --- ALIGNMENT TOGGLE UI --- */
.alignment-toggle-group {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    overflow: hidden;
    margin-top: 5px;
}

.align-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text);
    transition: background 0.2s;
}

.align-btn.active {
    background: var(--primary);
    color: white;
}

.align-btn:hover:not(.active) {
    background: var(--accent-soft);
}

.modal-content {
    background: var(--card);
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}