/* ==========================================================================
   RasterBlaster — GIMP 3.2.8 PL Symbolic Dark GTK3 Theme & CKE Arena UI
   ========================================================================== */

/* 1. Top Arena Navigation Bar */
.arena-topbar {
    height: 38px;
    background: linear-gradient(180deg, #1b2230 0%, #121722 100%);
    border-bottom: 1px solid #0b0e14;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    gap: 8px;
    flex-shrink: 0;
    z-index: 40;
}

.arena-brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.portal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #273247;
    border: 1px solid #3c4b68;
    color: #e2e8f0;
    text-decoration: none;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.15s;
}

.portal-back-btn:hover {
    background: #33415c;
}

.arena-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #202938;
    border: 1px solid #35435b;
    padding: 2px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}

.arena-brand-pill svg {
    width: 18px;
    height: 18px;
}

.arena-brand-accent {
    color: #60a5fa;
}

.arena-version-badge {
    background: rgba(74, 144, 217, 0.22);
    border: 1px solid rgba(74, 144, 217, 0.45);
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
}

.arena-led-panel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0d121c;
    border: 1px solid #2b364a;
    border-radius: 6px;
    padding: 2px 9px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
}

.arena-brush-badge {
    color: #fbbf24;
}

.levels-bar-container {
    flex: 1;
    min-width: 120px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    scrollbar-width: none;
}

.levels-bar-container::-webkit-scrollbar {
    display: none;
}

.level-pills {
    display: flex;
    align-items: center;
    gap: 3px;
}

.level-pill {
    min-width: 23px;
    height: 22px;
    padding: 0 4px;
    border-radius: 4px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.12s;
}

.level-pill:hover {
    background: #334155;
    border-color: #60a5fa;
}

.level-pill.active {
    background: var(--gimp-accent);
    border-color: #93c5fd;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(74, 144, 217, 0.55);
}

.level-pill.completed {
    background: #14532d;
    border-color: #22c55e;
    color: #dcfce7;
}

.level-pill.completed.active {
    background: #16a34a;
    border-color: #ffffff;
}

.level-pill.has-brush::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    border: 1px solid #0f172a;
}

.level-pill.boss {
    border-color: #f97316;
}

.arena-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.arena-chip-btn {
    height: 24px;
    padding: 0 8px;
    border-radius: 5px;
    border: 1px solid #374151;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.12s;
}

.arena-chip-btn:hover {
    background: #374151;
    border-color: #60a5fa;
}

.arena-chip-btn.active {
    background: #7c2d12;
    border-color: #f97316;
    color: #ffedd5;
}

.arena-chip-btn.sandbox-active {
    background: #1e3a8a;
    border-color: #60a5fa;
    color: #dbeafe;
}

.arena-icon-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid #374151;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.arena-icon-btn:hover {
    background: #374151;
}

.arena-icon-btn.danger:hover {
    background: #7f1d1d;
    border-color: #ef4444;
}

/* 2. GIMP 3.2.8 Window Titlebar & Polish Menu Bar */
.gimp-titlebar {
    height: 24px;
    background: #232323;
    border-bottom: 1px solid #181818;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 11.5px;
    color: #d4d4d8;
    flex-shrink: 0;
}

.gimp-title-left {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gimp-title-left svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.gimp-win-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #9ca3af;
}

.gimp-menubar {
    height: 25px;
    background: #2b2b2b;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 1px;
    flex-shrink: 0;
    position: relative;
    z-index: 35;
}

.menu-root-item {
    position: relative;
}

.menu-root-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #e4e4e7;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

.menu-root-btn:hover,
.menu-root-item.open > .menu-root-btn {
    background: #3e3e3e;
    border-color: #4f4f4f;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 245px;
    background: #2d2d2d;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    padding: 4px 0;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
    z-index: 100;
}

.menu-root-item.open > .menu-dropdown {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    color: #e4e4e7;
    padding: 5px 14px;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    position: relative;
    gap: 16px;
}

.menu-item:hover:not(:disabled) {
    background: var(--gimp-accent);
    color: #ffffff;
}

.menu-item:disabled {
    color: #71717a;
    cursor: default;
}

.menu-shortcut {
    font-size: 11px;
    color: #9ca3af;
    font-family: var(--font-mono);
}

.menu-item:hover:not(:disabled) .menu-shortcut {
    color: #e0f2fe;
}

.menu-sep {
    height: 1px;
    background: #3f3f46;
    margin: 4px 0;
}

.menu-submenu-wrap {
    position: relative;
}

.menu-submenu-wrap:hover > .menu-submenu {
    display: block;
}

.menu-submenu {
    display: none;
    position: absolute;
    top: -4px;
    left: 100%;
    min-width: 225px;
    background: #2d2d2d;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    padding: 4px 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

/* 3. GIMP 3.2.8 Single-Window 3-Column Workspace */
.gimp-workspace {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 236px 1fr 340px;
    background: var(--gimp-bg-panel);
}

/* Left Dock: Toolbox + FG/BG + Tool Options */
.gimp-left-dock {
    background: var(--gimp-bg-panel);
    border-right: 1px solid #181818;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 7px 7px 6px;
    background: #2e2e2e;
    border-bottom: 1px solid #1e1e1e;
}

.tool-btn {
    height: 30px;
    background: #353535;
    border: 1px solid #464646;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: #e4e4e7;
    transition: all 0.1s;
}

.tool-btn:hover {
    background: #424242;
    border-color: #6b7280;
}

.tool-btn.active {
    background: #1f3b5c;
    border-color: var(--gimp-accent);
    box-shadow: inset 0 0 0 1px rgba(74, 144, 217, 0.45);
    color: #ffffff;
}

.tool-btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-hotkey-dot {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 8px;
    font-family: var(--font-mono);
    color: #9ca3af;
}

.fgbg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #2b2b2b;
    border-bottom: 1px solid #1c1c1c;
}

.fgbg-swatches {
    position: relative;
    width: 44px;
    height: 34px;
}

.swatch-bg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #d4d4d8;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.swatch-fg {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #ffffff;
    border-radius: 2px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.fgbg-mini-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mini-gtk-btn {
    background: #383838;
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    color: #d4d4d8;
    font-size: 10.5px;
    padding: 2px 7px;
    cursor: pointer;
}

.mini-gtk-btn:hover {
    background: #464646;
}

/* Tool Options Panel (GTK3) */
.tool-options-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #2b2b2b;
}

.dock-section-header {
    background: #242424;
    border-bottom: 1px solid #1b1b1b;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #d4d4d8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-options-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.opt-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opt-label {
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gtk-slider-row {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #222222;
    border: 1px solid #454545;
    border-radius: 4px;
    padding: 2px 4px;
}

.gtk-slider-row input[type="range"] {
    flex: 1;
    accent-color: var(--gimp-accent);
    height: 14px;
    cursor: pointer;
}

.gtk-step-btn {
    width: 18px;
    height: 18px;
    background: #383838;
    border: 1px solid #4d4d4d;
    border-radius: 3px;
    color: #e4e4e7;
    font-size: 11px;
    cursor: pointer;
    line-height: 1;
}

.gtk-input,
.gtk-select,
.gtk-textarea {
    background: #202020;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    padding: 4px 7px;
    color: #f4f4f5;
    font-size: 12px;
    width: 100%;
}

.gtk-input:focus,
.gtk-select:focus,
.gtk-textarea:focus {
    outline: none;
    border-color: var(--gimp-accent);
}

.gtk-btn {
    background: #3c3c3c;
    border: 1px solid #525252;
    border-radius: 4px;
    padding: 5px 10px;
    color: #f4f4f5;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.12s;
}

.gtk-btn:hover:not(:disabled) {
    background: #4a4a4a;
}

.gtk-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.gtk-btn.primary {
    background: #2b6cb0;
    border-color: #4a90d9;
    color: #ffffff;
}

.gtk-btn.primary:hover {
    background: #357dc9;
}

.gtk-btn.success {
    background: #15803d;
    border-color: #22c55e;
    color: #ffffff;
}

.gtk-btn.success:hover {
    background: #16a34a;
}

.gtk-btn.warning {
    background: #b45309;
    border-color: #f59e0b;
    color: #ffffff;
}

.gtk-checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #d4d4d8;
    cursor: pointer;
}

/* Center Canvas Area */
.gimp-center-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #3e3e3e;
    position: relative;
}

.image-tabs-bar {
    height: 27px;
    background: #262626;
    border-bottom: 1px solid #181818;
    display: flex;
    align-items: center;
    padding: 0 6px;
    gap: 4px;
    overflow-x: auto;
    flex-shrink: 0;
}

.image-tab {
    height: 22px;
    background: #333333;
    border: 1px solid #444444;
    border-radius: 4px 4px 0 0;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #a1a1aa;
    cursor: pointer;
}

.image-tab.active {
    background: #424242;
    border-color: var(--gimp-accent);
    color: #ffffff;
    font-weight: 600;
}

.image-tab-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.image-tab-close:hover {
    color: #ef4444;
}

.canvas-ruler-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 22px 1fr;
    grid-template-rows: 20px 1fr;
    position: relative;
    overflow: hidden;
}

.ruler-corner {
    background: #2b2b2b;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #9ca3af;
}

.ruler-top-canvas {
    display: block;
    background: #2b2b2b;
    border-bottom: 1px solid #1a1a1a;
}

.ruler-left-canvas {
    display: block;
    background: #2b2b2b;
    border-right: 1px solid #1a1a1a;
}

.canvas-stage-wrap {
    position: relative;
    overflow: hidden;
    background: #3e3e3e;
}

#gimp-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.floating-commit-bar {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.92);
    border: 1px solid var(--gimp-accent);
    border-radius: 6px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    z-index: 20;
    font-size: 11.5px;
}

.dropzone-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.72);
    border: 3px dashed #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    z-index: 30;
}

/* On-Canvas Floating GIMP Text Editor */
.canvas-text-overlay {
    position: absolute;
    z-index: 26;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: calc(100% - 12px);
    pointer-events: auto;
    user-select: text;
}

.canvas-text-mini-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 30, 30, 0.94);
    border: 1px solid #4a90d9;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 10.5px;
    color: #e4e4e7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    width: fit-content;
}

.canvas-text-input {
    min-width: 110px;
    background: rgba(15, 23, 42, 0.22);
    border: 1.5px dashed #4a90d9;
    border-radius: 3px;
    padding: 2px 6px;
    outline: none;
    line-height: 1.15;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.35);
    user-select: text;
}

.canvas-text-input:focus {
    border-style: solid;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.35);
}

/* GIMP Bottom Status Bar */
.gimp-statusbar {
    height: 25px;
    background: #262626;
    border-top: 1px solid #181818;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 11px;
    color: #cbd5e1;
    flex-shrink: 0;
    gap: 8px;
}

.status-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-coords {
    font-family: var(--font-mono);
    min-width: 82px;
    color: #e4e4e7;
}

.status-zoom-select {
    background: #333333;
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 11px;
}

.status-prtsc-btn {
    background: #374151;
    border: 1px solid #60a5fa;
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #e0f2fe;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-prtsc-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Right Dock: Exam/Target/Files + Layers/History */
.gimp-right-dock {
    background: var(--gimp-bg-panel);
    border-left: 1px solid #181818;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.dock-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dock-pane-top {
    flex: 1.15;
    border-bottom: 2px solid #1a1a1a;
}

.dock-pane-bottom {
    flex: 0.85;
}

.dock-tabs {
    display: flex;
    background: #232323;
    border-bottom: 1px solid #181818;
    padding: 3px 4px 0;
    gap: 2px;
    flex-shrink: 0;
}

.dock-tab-btn {
    flex: 1;
    background: #2d2d2d;
    border: 1px solid #3c3c3c;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
    cursor: pointer;
    white-space: nowrap;
}

.dock-tab-btn.active {
    background: #383838;
    color: #ffffff;
    border-color: var(--gimp-accent);
}

.dock-tab-content {
    flex: 1;
    min-height: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Wilber Mascot Mood Bar */
.wilber-mascot-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #242424;
    border: 1px solid #3f3f46;
    border-left: 3px solid var(--gimp-accent);
    border-radius: 5px;
    padding: 6px 8px;
}

.wilber-mascot-bar.mood-trap {
    border-left-color: var(--gimp-danger);
    background: #2d1b1b;
}

.wilber-mascot-bar.mood-success {
    border-left-color: var(--gimp-success);
    background: #172b1e;
}

.wilber-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.wilber-text-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #f4f4f5;
}

.wilber-text-desc {
    font-size: 11px;
    color: #cbd5e1;
}

.task-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.meta-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #363636;
    border: 1px solid #4a4a4a;
    color: #e4e4e7;
}

.meta-pill.exam {
    color: #93c5fd;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.14);
}

.meta-pill.brush {
    color: #fde047;
    border-color: #eab308;
    background: rgba(234, 179, 8, 0.14);
}

.task-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.task-instruction {
    font-size: 12px;
    color: #e4e4e7;
    background: #232323;
    border: 1px solid #3d3d3d;
    border-radius: 5px;
    padding: 8px;
    line-height: 1.48;
}

/* Anti-Spoiler Collapsible CKE Checklist */
.cke-checklist-details {
    background: #242424;
    border: 1px solid #3f3f46;
    border-radius: 5px;
    padding: 5px 8px;
}

.cke-checklist-details summary {
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 700;
    color: #d4d4d8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.cke-checklist-list {
    list-style: none;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cke-check-item {
    font-size: 11px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: #a1a1aa;
}

.cke-check-item.passed {
    color: #4ade80;
}

.exam-cta-row {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

/* Target Preview & Files Tab */
.target-preview-box {
    background: #202020;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.target-preview-box canvas,
.target-preview-box img {
    max-width: 100%;
    max-height: 175px;
    border: 1px solid #525252;
    background-image: linear-gradient(45deg, #666 25%, transparent 25%),
                      linear-gradient(-45deg, #666 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #666 75%),
                      linear-gradient(-45deg, transparent 75%, #666 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    background-color: #999;
}

.virtual-file-card {
    background: #232323;
    border: 1px solid #3f3f46;
    border-radius: 4px;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11.5px;
}

.virtual-file-badge {
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.virtual-file-badge.src { background: #334155; color: #cbd5e1; }
.virtual-file-badge.exp { background: #14532d; color: #86efac; }
.virtual-file-badge.shot { background: #1e3a8a; color: #93c5fd; }

/* GIMP 3.2.8 Layers Panel */
.layers-controls-bar {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 8px;
    background: #282828;
    border-bottom: 1px solid #1b1b1b;
}

.layers-col-headers {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: #242424;
    border-bottom: 1px solid #1a1a1a;
    font-size: 10.5px;
    color: #9ca3af;
}

.layers-list {
    flex: 1;
    min-height: 0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.layer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 4px;
    background: #313131;
    border: 1px solid transparent;
    cursor: pointer;
}

.layer-row:hover {
    background: #3a3a3a;
}

.layer-row.active {
    background: #224468;
    border-color: var(--gimp-accent);
}

.layer-eye-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    width: 20px;
    opacity: 0.9;
}

.layer-eye-btn.hidden-eye {
    opacity: 0.35;
}

.layer-fx-badge {
    font-size: 10px;
    font-style: italic;
    font-weight: 700;
    padding: 0 5px;
    border-radius: 3px;
    background: #4a90d9;
    color: #ffffff;
}

.layer-thumb {
    width: 28px;
    height: 22px;
    border: 1px solid #181818;
    background-color: #888;
    flex-shrink: 0;
}

.layer-name {
    flex: 1;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layer-name.no-alpha {
    font-weight: 700;
    color: #ffffff;
}

.layer-name.floating {
    font-style: italic;
    color: #fde047;
}

.layers-bottom-bar {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    background: #242424;
    border-top: 1px solid #1a1a1a;
}

.layer-action-btn {
    flex: 1;
    height: 24px;
    background: #353535;
    border: 1px solid #484848;
    border-radius: 3px;
    color: #e4e4e7;
    cursor: pointer;
    font-size: 12px;
}

.layer-action-btn:hover:not(:disabled) {
    background: #464646;
}

.layer-action-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.layer-action-btn.floating-anchor {
    background: #15803d;
    border-color: #22c55e;
    color: #ffffff;
}

/* Right-click Context Menu */
.context-menu {
    position: fixed;
    min-width: 220px;
    background: #2c2c2c;
    border: 1px solid #4f4f4f;
    border-radius: 4px;
    padding: 4px 0;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
    z-index: 250;
}

/* GIMP Modals */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 150;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.open {
    display: flex;
}

.gimp-dialog {
    background: #2c2c2c;
    border: 1px solid #525252;
    border-radius: 6px;
    width: 100%;
    max-width: 470px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.78);
    overflow: hidden;
}

.gimp-dialog.wide {
    max-width: 660px;
}

.gimp-dialog-header {
    background: #232323;
    border-bottom: 1px solid #181818;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13px;
}

.gimp-dialog-close {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.gimp-dialog-close:hover {
    color: #ef4444;
}

.gimp-dialog-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    overflow-y: auto;
}

.gimp-dialog-footer {
    background: #252525;
    border-top: 1px solid #1b1b1b;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dialog-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialog-row > label {
    width: 150px;
    font-size: 12px;
    color: #d4d4d8;
    flex-shrink: 0;
}

.chain-link-btn {
    width: 34px;
    height: 58px;
    background: #363636;
    border: 1px solid #525252;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chain-link-btn.linked {
    border-color: var(--gimp-accent);
    background: #1f3b5c;
}

/* PrtSc Flash Effect */
.prtsc-flash {
    position: fixed;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.25s ease-out;
}

.prtsc-flash.active {
    opacity: 0.72;
    transition: none;
}

/* Result Stamp */
.exam-stamp {
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid var(--gimp-success);
    color: var(--gimp-success);
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 1px;
    transform: rotate(-3deg);
}

.exam-stamp.fail {
    border-color: var(--gimp-danger);
    color: var(--gimp-danger);
}

.history-row {
    padding: 4px 8px;
    font-size: 11.5px;
    border-radius: 3px;
    cursor: pointer;
    color: #a1a1aa;
}

.history-row:hover {
    background: #383838;
}

.history-row.active {
    background: #224468;
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .gimp-workspace {
        grid-template-columns: 205px 1fr 290px;
    }
}
