/* ==========================================================================
   GroJa Studio Design System & Layout Alignment (GROJA_BRAND_TOOL_GUIDE.md)
   ========================================================================== */

:root {
    --primary-color: #005D50;
    --secondary-color: #00382E;
    --text-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --accent-color: #4DB6AC;
    --accent-hover: #80CBC4;
    --accent-glow: rgba(77, 182, 172, 0.4);

    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-bg: rgba(255, 255, 255, 0.06);

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --panel-bg: rgba(0, 0, 0, 0.2);
    --input-bg: rgba(0, 0, 0, 0.25);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;

    --header-height: 60px;
    --sidebar-width: 440px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    background: 
        radial-gradient(at 0% 0%, rgba(77, 182, 172, 0.4) 0, transparent 60%),
        radial-gradient(at 50% 0%, rgba(0, 93, 80, 0.3) 0, transparent 60%),
        radial-gradient(at 100% 50%, rgba(77, 182, 172, 0.2) 0, transparent 50%),
        #00382E;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Grain / Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* ==========================================================================
   Header & Navigation (All links right-aligned per GroJa Studio)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    padding: 0 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 32, 26, 0.85);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

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

.header-logo {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav {
    display: flex;
    gap: 2.2rem;
    margin-left: auto; /* Push navigation all the way to the right side */
}

.nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

/* ==========================================================================
   Main Content & Split-Panel Structure
   ========================================================================== */
.main-content {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height) - 30px);
    width: 100%;
    display: flex;
    overflow: hidden;
}

.app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.panel {
    height: 100%;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left Controls Sidebar (All Interactive Elements) */
.controls-panel {
    flex: 0 0 var(--sidebar-width);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
}

/* Flat Top Mode Switcher */
.sidebar-mode-toggle {
    display: flex;
    margin: -2.5rem -2rem 0 -2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.15);
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 2px solid transparent;
}

.mode-btn:hover {
    color: #ffffff;
}

.mode-btn.active {
    color: #ffffff;
    border-bottom: 2px solid var(--accent-color);
}

/* Control Groups */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.section-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-color);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.9;
}

.sub-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.sub-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==========================================================================
   Upload Zone in the Left Sidebar
   ========================================================================== */
.upload-zone {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    text-align: center;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-color);
    background: rgba(77, 182, 172, 0.06);
    box-shadow: inset 0 0 30px rgba(77, 182, 172, 0.08), 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: scale(1.01);
}

.file-input-hidden {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
}

.upload-icon {
    stroke: var(--accent-color);
    margin-bottom: 2px;
}

.upload-content p {
    font-size: 0.82rem;
    font-weight: 500;
    color: #ffffff;
}

.upload-content .sub-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.dropzone-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    position: relative;
    z-index: 20;
}

/* ==========================================================================
   Watermark Option Cards
   ========================================================================== */
.badge-selector-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.badge-option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.badge-option-radio {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.badge-option-item:hover {
    border-color: rgba(77, 182, 172, 0.4);
    background: var(--card-hover-bg);
}

.badge-option-item.active {
    border-color: var(--accent-color);
    background: rgba(77, 182, 172, 0.12);
    box-shadow: 0 0 16px rgba(77, 182, 172, 0.15);
}

.badge-option-item.active .badge-option-radio {
    border-color: var(--accent-color);
}

.badge-option-item.active .badge-option-radio::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}

.badge-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-option-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auto-tag {
    font-size: 0.62rem;
    font-weight: 700;
    background: var(--accent-color);
    color: #00382E;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.6px;
}

.badge-option-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.badge-preview-chip {
    display: inline-flex;
    align-items: center;
    margin-bottom: 2px;
}

.badge-chip-img {
    height: 16px;
    width: auto;
    display: block;
    border-radius: 999px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* Position Grid */
.position-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.pos-btn {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.pos-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #00382E;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Sliders */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-val {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-color);
    font-family: monospace;
}

.groja-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    accent-color: var(--accent-color);
    cursor: pointer;
}

/* Mini Batch Media Switcher in Sidebar */
.sidebar-batch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.batch-mini-actions {
    display: flex;
    gap: 8px;
}

.btn-text-action {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-text-action:hover {
    color: #ffffff;
}

.btn-text-action.danger {
    color: rgba(255, 138, 128, 0.8);
}

.btn-text-action.danger:hover {
    color: #ff5252;
}

.batch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 2px;
}

.media-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.media-card:hover {
    border-color: rgba(77, 182, 172, 0.4);
    transform: translateY(-1px);
}

.media-card.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color), 0 0 10px var(--accent-glow);
    background: rgba(77, 182, 172, 0.1);
}

.media-card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 60px;
    background: #001B16;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge-preview {
    position: absolute;
    bottom: 3px;
    right: 3px;
    height: 9px;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.card-remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.media-card:hover .card-remove-btn { opacity: 1; }
.card-remove-btn:hover { background: #E53935; }

.media-card-body {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.media-card-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.62rem;
    color: var(--text-secondary);
}

.media-card-badge-tag {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 2px;
}

.tag-white { background: #FFFFFF; color: #1D1D1B; }
.tag-glass { background: rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.tag-black { background: #000000; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.4); }

/* Summary & Generate Action Button (Exact GroJa Studio Style) */
.action-group {
    margin-top: auto;
    padding-top: 10px;
}

.summary-box {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.summary-label { color: var(--text-secondary); }
.summary-val.highlight { color: var(--accent-color); font-weight: 700; }

.generate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-color), #00796B);
    border: none;
    border-radius: 40px;
    color: #00382E;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 10px 30px rgba(77, 182, 172, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 16px 45px rgba(77, 182, 172, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.generate-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

/* ==========================================================================
   Right Panel: Output Showcase (Exact GroJa Studio Empty State)
   ========================================================================== */
.results-panel {
    flex: 1;
    background: transparent;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    position: relative;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 20px;
}

.empty-state svg {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    opacity: 0.4;
    stroke: var(--accent-color);
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-color);
    opacity: 0.85;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Showcase Stage Card (Active Output) */
.preview-stage-card {
    width: 100%;
    max-width: 1080px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.stage-header {
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.item-meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-type-pill {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.8px;
}

.stage-filename {
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.stage-resolution {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: monospace;
}

.stage-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seg-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.seg-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seg-btn.active {
    background: var(--accent-color);
    color: #00382E;
    box-shadow: 0 0 8px var(--accent-glow);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #00382E;
}

.btn-icon-sm {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Canvas Viewport */
.canvas-viewport {
    position: relative;
    width: 100%;
    min-height: 440px;
    max-height: 600px;
    background-color: #00221C;
    background-image: 
        linear-gradient(45deg, #001B16 25%, transparent 25%), 
        linear-gradient(-45deg, #001B16 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #001B16 75%), 
        linear-gradient(-45deg, transparent 75%, #001B16 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.canvas-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.render-canvas {
    max-width: 100%;
    max-height: 580px;
    display: block;
    object-fit: contain;
    border-radius: 2px;
}

.canvas-clip-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.split-slider-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 32px;
    margin-left: -16px;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    user-select: none;
}

.split-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 15px;
    width: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.split-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #00382E;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 31;
}

.stage-video {
    max-width: 100%;
    max-height: 580px;
    display: block;
    border-radius: 2px;
}

.luminance-tag-pill {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 32, 26, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 40;
}

.lum-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}

.video-control-bar {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-scrubber-track {
    flex: 1;
    display: flex;
    align-items: center;
}

.video-scrubber-track input[type="range"] {
    width: 100%;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.video-time {
    font-size: 0.72rem;
    font-family: monospace;
    color: var(--text-secondary);
}

/* General Buttons */
.btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: #ffffff;
    border-color: var(--accent-color);
}

.btn-xs { padding: 4px 8px; font-size: 0.7rem; }

/* Progress Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 20, 16, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-card {
    background: rgba(0, 40, 32, 0.9);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 2.2rem;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-glow);
    text-align: center;
}

.modal-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.batch-progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 14px;
}

.batch-progress-bar-fill {
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    border-radius: var(--radius-full);
    transition: width 0.2s ease;
}

.progress-status-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.progress-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.modal-footer-success {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-modal-primary {
    padding: 14px 20px;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

.btn-reset {
    margin-top: 8px;
    padding: 10px;
    border-radius: var(--radius-full);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.btn-reset:hover {
    color: #ffffff;
    border-color: rgba(255, 82, 82, 0.5);
    background: rgba(255, 82, 82, 0.1);
}

/* Footer Attribution */
.footer-text {
    position: fixed;
    bottom: 10px;
    left: 2.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    pointer-events: none;
    z-index: 10;
}

/* ==========================================================================
   Universal Glassmorphism Custom Scrollbars (Matches GroJa Studio Aesthetic)
   ========================================================================== */
html, body, *, ::before, ::after {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color) !important;
    box-shadow: 0 0 8px var(--accent-glow);
}

::-webkit-scrollbar-corner {
    background: transparent !important;
}

::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.controls-panel, .results-panel, .batch-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

/* Utilities */
.hidden { display: none !important; }

