/* 
 * Metin2 Regen Editor - 2025 Redesign 
 * Style: Glassmorphism / Deep Dark / Cyber
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #09090b;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e1b4b;

    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    --accent-primary: #3b82f6;
    /* Modern Blue */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-success: #10b981;
    /* Emerald */
    --accent-danger: #ef4444;
    /* Red */
    --accent-warning: #f59e0b;
    /* Amber */

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.5);
    --blur-strength: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Layout --- */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr auto;
    height: 100vh;
    padding: 16px;
    gap: 16px;
}

/* --- Glass Panels --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Sidebar -- */
.sidebar {
    grid-row: 1 / -1;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
}

.brand {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 10px;
}

.brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title-copyright {
    font-size: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 200;
    margin-bottom: 8px;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-settings-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.data-settings-btn svg {
    width: 16px;
    height: 16px;
}

.data-settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.config-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.7;
}

.config-label.default {
    color: var(--accent-primary);
}

.config-label.custom {
    color: var(--accent-success);
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-field,
.select-field {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.row-inputs {
    display: flex;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}

input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper span {
    font-size: 0.9rem;
}

/* Actions */
.action-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: var(--text-muted);
    color: var(--text-main);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--accent-danger);
}

/* --- Workspace --- */
.workspace {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.toolbar {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--glass-border);
    justify-content: space-between;
}

.map-info {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

.tool-picker {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 4px;
}

.tool-option {
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tool-option.active {
    background: var(--glass-highlight);
    color: var(--text-main);
    font-weight: 500;
}

.canvas-area {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
}

.upload-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.upload-box {
    padding: 40px;
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.upload-box:hover {
    border-color: var(--accent-primary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.canvas-wrapper {
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden by default */
    will-change: transform;
    transition: transform 0.05s ease-out;
}

/* Markers */
/* Markers */
.marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
    pointer-events: none;
    /* Default to none, inherit from overlay */
}

.marker.selectable {
    pointer-events: auto;
    cursor: pointer;
}


/* Group marker - Square */
.marker.group {
    background: var(--accent-secondary);
    border-radius: 2px;
    width: 14px;
    height: 14px;
}

/* Regen marker - Triangle */
.marker.regen {
    background: transparent;
    border: none;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid var(--accent-warning);
    border-radius: 0;
    box-shadow: none;
}

.marker.regen::after {
    content: '';
    position: absolute;
    top: 2px;
    left: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid var(--bg-dark);
}

.marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    cursor: pointer;
}

.marker.selected {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
    z-index: 101;
}

.radius-ring {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 50;
}

.radius-ring.group {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.radius-ring.regen {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.radius-ring.multi-spawn {
    /* Dynamic opacity set via JS based on count */
}

/* Selection Box for multi-select */
.selection-box {
    position: absolute;
    border: 2px dashed var(--accent-primary);
    background: rgba(59, 130, 246, 0.15);
    pointer-events: none;
    z-index: 100;
}

.selection-box.hidden {
    display: none;
}

/* Edit Mode Banner */
.edit-mode-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    animation: editPulse 2s ease-in-out infinite;
}

@keyframes editPulse {

    0%,
    100% {
        border-color: rgba(245, 158, 11, 0.4);
    }

    50% {
        border-color: rgba(245, 158, 11, 0.7);
    }
}

.edit-mode-icon {
    font-size: 1.2rem;
    color: var(--accent-warning);
}

.edit-mode-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edit-mode-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-warning);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.edit-mode-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.edit-mode-close {
    background: rgba(245, 158, 11, 0.2);
    border: none;
    color: var(--accent-warning);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.edit-mode-close:hover {
    background: rgba(245, 158, 11, 0.4);
}

/* Marker VNUM Label */
.marker-label {
    position: absolute;
    transform: translate(-50%, 8px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.85);
    padding: 1px 4px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 99;
    white-space: nowrap;
    font-weight: 500;
}

/* --- Terminal Output --- */
.output-panel {
    grid-column: 2;
    grid-row: 2;
    height: 200px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.terminal-content {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    color: #abb2bf;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 16px;
    border: none;
    resize: none;
    outline: none;
}

.terminal-content::selection {
    background: var(--accent-primary);
    color: white;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Combobox Wrapper */
.combobox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.combobox-input {
    padding-right: 32px;
}

.combobox-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.7rem;
    pointer-events: none;
    transition: transform 0.2s;
}

.combobox-wrapper.open .combobox-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Mob Dropdown */
.mob-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #1e1b4b;
    /* Solid background for legibility */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.mob-dropdown.show {
    display: block;
}

.mob-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mob-item:hover {
    background: rgba(59, 130, 246, 0.2);
}

.mob-item .code {
    color: var(--accent-success);
    font-family: 'JetBrains Mono';
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent-success);
    color: #000;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

/* Loader */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Tool Tooltip */
.tool-tooltip {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    pointer-events: none;
}

.tool-tooltip-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-tooltip-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Identity Header */
.identity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.identity-header .section-title {
    margin-bottom: 0;
}

.btn-detail {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--accent-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-detail:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--accent-secondary);
}

.btn-detail:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Group Info */
.group-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 16px;
}

.group-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.group-info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.group-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.group-info-value {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.group-info-value.code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-success);
}

/* Members Section */
.members-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.members-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.members-list {
    max-height: 250px;
    overflow-y: auto;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.member-item:last-child {
    border-bottom: none;
}

.member-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.member-item.leader {
    background: rgba(139, 92, 246, 0.1);
}

.member-name {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-badge {
    font-size: 0.6rem;
    background: var(--accent-secondary);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.member-vnum {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-success);
}

/* Expandable Group Section */
.group-section {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.group-section:last-child {
    margin-bottom: 0;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(245, 158, 11, 0.1);
    cursor: pointer;
    user-select: none;
}

.group-header:hover {
    background: rgba(245, 158, 11, 0.15);
}

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

.group-header-name {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.group-header-badge {
    font-size: 0.6rem;
    background: var(--accent-warning);
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.group-header-vnum {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-success);
}

.group-expand-icon {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.group-section.expanded .group-expand-icon {
    transform: rotate(180deg);
}

.group-members {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.group-section.expanded .group-members {
    display: block;
}

.group-members .member-item {
    padding: 8px 12px 8px 24px;
    font-size: 0.8rem;
}

.group-members .member-item:last-child {
    border-bottom: none;
}

/* ========================================
   PAINT MODE STYLES
   ======================================== */

/* Paint Mode Panel */
.paint-mode-panel {
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    margin-top: 8px;
}

.paint-mode-panel.hidden {
    display: none;
}

.paint-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.paint-toggle {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px;
    border-radius: 6px;
}

.paint-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.paint-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.paint-btn.erase.active {
    background: var(--accent-danger);
}

.paint-icon {
    font-weight: bold;
    line-height: 1;
}

/* Paint Controls Layout */
.paint-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Brush Size Selector */
.brush-size-selector {
    display: flex;
    align-items: center;
    gap: 4px;
}

.brush-size-selector .brush-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.brush-size-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.brush-size-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.brush-size-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* VNUM Tags Container */
.vnum-tags-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.vnum-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    display: flex;
    align-items: center;
}

.vnum-tag {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    animation: tagFadeIn 0.2s ease;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vnum-tag.group {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.vnum-tag.regen {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.vnum-tag-name {
    color: var(--text-main);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vnum-tag-vnum {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-success);
}

.vnum-tag-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s;
}

.vnum-tag-remove:hover {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.2);
}

/* Paint Combobox */
.paint-combobox {
    position: relative;
}

.paint-combobox .combobox-arrow {
    font-size: 1rem;
    font-weight: bold;
}

/* Paint Actions */
.paint-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.paint-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
}

/* Paint Overlay Canvas */
#paintOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 40;
}

/* Preview Markers (Ghost) */
.marker.preview {
    opacity: 0.5;
    border: 2px dashed currentColor !important;
    animation: previewPulse 1.5s ease-in-out infinite;
}

@keyframes previewPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.radius-ring.preview {
    opacity: 0.25;
    border-style: dashed !important;
}

.marker-label.preview {
    opacity: 0.5;
}

/* Paint cursor when in paint mode */
.canvas-area.paint-mode {
    cursor: crosshair;
}

.canvas-area.erase-mode {
    cursor: crosshair;
}

/* Selected indicator in paint dropdown */
.mob-item.selected-vnum {
    background: rgba(59, 130, 246, 0.15);
}

.mob-item.selected-vnum::before {
    content: '✓ ';
    color: var(--accent-success);
}

/* Hide ALL standard settings when in paint mode */
.sidebar.paint-active #basicSettingsPanel {
    display: none;
}

/* Remove top border on paint panel when basic settings hidden */
.sidebar.paint-active .paint-mode-panel {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* ========================================
   PAINT ACTIONS FLOATING TOOLBAR
   ======================================== */

.paint-actions-toolbar {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 200;
    animation: toolbarSlideIn 0.3s ease;
}

@keyframes toolbarSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.paint-actions-toolbar.hidden {
    display: none;
}

/* Recenter Button */
.recenter-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recenter-btn svg {
    width: 20px;
    height: 20px;
}

.recenter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.paint-action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.paint-action-btn svg {
    width: 20px;
    height: 20px;
}

.paint-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Live Preview Toggle */
.live-preview-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.live-preview-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.live-preview-toggle .toggle-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.live-preview-toggle.active .toggle-label {
    color: var(--accent-primary);
}

.toggle-switch {
    position: relative;
}

.toggle-track {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.2s ease;
    position: relative;
}

.live-preview-toggle.active .toggle-track {
    background: rgba(59, 130, 246, 0.3);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.live-preview-toggle.active .toggle-thumb {
    left: 18px;
    background: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Generate button - star icon */
.paint-action-btn.generate {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-primary);
}

.paint-action-btn.generate:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Clear button - trash icon (danger) */
.paint-action-btn.danger {
    color: var(--accent-danger);
}

.paint-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Tooltips */
.paint-action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-main);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.paint-action-btn::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.paint-action-btn:hover::after,
.paint-action-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Spawn Filter Panel */
.spawn-filter-panel {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 200;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
}

/* --- Multi-Select Button --- */
.multi-select-btn {
    position: absolute;
    bottom: 24px;
    left: 24px;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.multi-select-btn:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.multi-select-btn:active {
    transform: translateY(0);
}

.multi-select-icon {
    font-size: 1.2rem;
    color: var(--accent-primary);
    line-height: 1;
}

.multi-select-label {
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- Multi-Edit Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 600px;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.5);
}

/* Multi-Edit List */
.multi-edit-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.multi-edit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.multi-edit-headers {
    display: grid;
    /* # | Type | VNUM | Time | Count | SX | SY | Action */
    grid-template-columns: 40px 60px 1fr 80px 60px 60px 60px 40px;
    gap: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 12px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.multi-edit-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.multi-edit-row {
    display: grid;
    /* Same as headers */
    grid-template-columns: 40px 60px 1fr 80px 60px 60px 60px 40px;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.multi-edit-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.multi-edit-row input,
.multi-edit-row select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
}

.multi-edit-row input:focus,
.multi-edit-row select:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.multi-edit-index {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    font-family: 'JetBrains Mono';
}

.multi-edit-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.multi-edit-delete:hover {
    background: var(--accent-danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Small Buttons */
.btn-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.spawn-filter-panel .filter-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.spawn-filter-panel .filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-main);
    user-select: none;
    transition: opacity 0.2s;
}

.spawn-filter-panel .filter-option:hover {
    opacity: 0.8;
}

.spawn-filter-panel .filter-option input[type="checkbox"] {
    display: none;
}

.spawn-filter-panel .filter-option input[type="checkbox"]:not(:checked)+.filter-marker+span {
    color: var(--text-muted);
    text-decoration: line-through;
}

.spawn-filter-panel .filter-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.spawn-filter-panel .filter-marker.monster {
    background: var(--accent-primary);
}

.spawn-filter-panel .filter-marker.group {
    background: var(--accent-secondary);
    border-radius: 2px;
}

.spawn-filter-panel .filter-marker.regen {
    background: var(--accent-warning);
    border-radius: 0;
    width: 0;
    height: 0;
    border: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid var(--accent-warning);
    box-shadow: none;
}

/* ========================================
   WELCOME MODAL - DATA SOURCE SELECTION
   ======================================== */

.welcome-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-modal.hidden {
    display: none;
}

.welcome-card {
    width: 100%;
    max-width: 480px;
    animation: welcomeSlideIn 0.4s ease-out;
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

.welcome-header {
    position: relative;
    padding: 24px 30px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.welcome-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.welcome-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.welcome-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.settings-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.welcome-logo {
    width: 15%;
    height: 15%;
    object-fit: contain;
    flex-shrink: 0;
}

.welcome-title-group {
    text-align: left;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.welcome-title span {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.welcome-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.welcome-content {
    padding: 24px 30px 30px;
}

.welcome-prompt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-align: center;
}

.data-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-option-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.recommended-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent-success) 0%, #059669 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.data-option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.data-option-btn.active {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.option-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Custom Upload Section */
.custom-upload-section {
    margin-top: 20px;
    animation: sectionExpand 0.3s ease;
}

@keyframes sectionExpand {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.custom-upload-section.hidden {
    display: none;
}

.upload-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.upload-divider::before,
.upload-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.upload-divider span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.file-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.file-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.file-input-row:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
}

.file-input-row.loaded {
    border-color: var(--accent-success);
    background: rgba(16, 185, 129, 0.1);
}

.file-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    flex: 1;
}

.file-input {
    display: none;
}

.file-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.file-status.ready {
    color: var(--accent-success);
    background: rgba(16, 185, 129, 0.15);
}

.file-status.rejected {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.15);
}

.file-input-row.rejected {
    border-color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
}

.continue-btn {
    width: 100%;
}

.continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   CONFIRM DEFAULT MODAL
   ======================================== */

.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal.hidden {
    display: none;
}

.confirm-card {
    width: 100%;
    max-width: 360px;
    animation: confirmSlideIn 0.2s ease-out;
}

@keyframes confirmSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-content {
    padding: 24px;
    text-align: center;
}

.confirm-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.confirm-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.confirm-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.confirm-actions .btn {
    flex: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}