/* Custom Fonts and Layout Variables */
:root {
    --primary: #00d4ff;       /* Neon Cyan */
    --primary-dark: #00a8cc;
    --primary-glow: rgba(0, 212, 255, 0.3);
    
    --secondary: #8b5cf6;     /* Neon Purple */
    --secondary-dark: #7c3aed;
    --secondary-glow: rgba(139, 92, 246, 0.3);

    --danger: #ef4444;        /* Crimson Red */
    --success: #10b981;       /* Emerald Green */
    --warning: #f59e0b;       /* Amber Gold */
    --info: #3b82f6;          /* Royal Blue */

    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(26, 26, 36, 0.7);
    --border: rgba(42, 42, 58, 0.6);
    --border-glow: rgba(139, 92, 246, 0.15);
    
    --text: #ffffff;
    --text-muted: #a0a0b0;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Quest Editor Body & Shell Layout */
.quest-editor-body {
    background-color: var(--bg-darker);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.editor-shell {
    display: flex;
    height: calc(100vh - 80px); /* Height below fixed 80px navbar */
    margin-top: 80px;
    overflow: hidden;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(5, 5, 8, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* Left Sidebar styling */
.editor-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 23, 0.85);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--border);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 10;
    overflow: hidden;
}

.editor-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.editor-citizen-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.editor-citizen-icon {
    font-size: 1.3rem;
    -webkit-text-fill-color: initial;
}

.editor-session-timer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    align-self: flex-start;
}

.editor-session-timer-time {
    color: var(--primary);
    font-family: var(--font-mono);
}

.sidebar-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sidebar Section Blocks */
.sidebar-section {
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sidebar-section:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.05);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding-bottom: 0.4rem;
}

/* Form inputs & controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

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

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-input, .editor-textarea {
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.25s ease;
}

.editor-input:focus, .editor-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(15, 15, 23, 0.9);
}

.editor-input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(10, 10, 15, 0.3);
}

.editor-textarea {
    resize: vertical;
}

.input-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Checkbox Toggle styling */
.checkbox-group {
    margin-top: 0.5rem;
}

.editor-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    user-select: none;
}

.editor-toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    transition: background-color 0.25s;
    border: 1px solid var(--border);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    top: 2px;
    left: 2px;
    transition: transform 0.25s, background-color 0.25s;
}

.editor-toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--primary);
}

.editor-toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(18px);
    background-color: var(--bg-darker);
}

/* Input with inline action button */
.input-with-btn {
    display: flex;
    gap: 0.4rem;
}

.input-with-btn .editor-input {
    flex: 1;
}

.item-form-row {
    display: flex;
    gap: 0.4rem;
}

.item-form-row .editor-input:first-child {
    flex: 1;
}

/* Badges and Lists */
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    min-height: 24px;
}

.editor-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.editor-badge-remove {
    cursor: pointer;
    color: var(--danger);
    font-weight: bold;
    font-size: 0.8rem;
    transition: opacity 0.15s;
}

.editor-badge-remove:hover {
    opacity: 0.8;
}

/* Command Lists */
.command-mini-list, .item-reward-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 2px;
}

.command-mini-item, .reward-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
}

.command-mini-item span {
    font-family: var(--font-mono);
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
    flex: 1;
}

.reward-item-row span {
    color: var(--text);
}

.reward-item-row strong {
    color: var(--warning);
    font-family: var(--font-mono);
}

.btn-remove-mini {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    transition: color 0.15s;
}

.btn-remove-mini:hover {
    color: var(--danger);
}

/* Sidebar Footer */
.editor-sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 10, 15, 0.4);
}

/* General button styling */
.editor-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.editor-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.editor-btn-primary {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: white;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.editor-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4), 0 0 10px rgba(0, 212, 255, 0.2);
}

.editor-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-color: var(--border);
}

.editor-btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.15);
}

.editor-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.editor-btn-danger:hover:not(:disabled) {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.editor-btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.editor-btn-xs {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* Right Main Area with Visual Workspace Canvas */
.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

/* Canvas Toolbar */
.canvas-toolbar {
    height: 55px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 5;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.zoom-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.2rem 0.4rem;
    gap: 0.5rem;
}

.zoom-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

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

.zoom-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
    min-width: 40px;
    text-align: center;
}

/* Canvas Draggable Viewport workspace */
.canvas-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.canvas-viewport:active {
    cursor: grabbing;
}

/* Premium radial Grid background */
.canvas-workspace {
    position: absolute;
    width: 5000px;
    height: 5000px;
    background-color: var(--bg-darker);
    background-image: radial-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    transform-origin: 0 0;
    overflow: visible;
}

/* Connector SVG Layer */
.canvas-connections-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 1;
}

.connection-curve {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 3px var(--primary-glow));
    transition: stroke 0.2s, stroke-width 0.2s;
    marker-end: url(#arrow);
}

.connection-curve.selected {
    stroke: var(--secondary);
    stroke-width: 3.5;
    filter: drop-shadow(0 0 5px var(--secondary-glow));
    marker-end: url(#arrow-selected);
}

/* Interactive flow pulse animation on connections */
.connection-flow-dash {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-dasharray: 8, 12;
    animation: connection-flow 2s linear infinite;
    pointer-events: none;
}

@keyframes connection-flow {
    to {
        stroke-dashoffset: -40;
    }
}

/* Draggable Quest Step Node cards */
.quest-step-node {
    position: absolute;
    width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    z-index: 2;
    cursor: default;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s ease-out;
}

.quest-step-node:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.quest-step-node.selected {
    border-color: var(--secondary);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Node Header & Drag handle */
.node-header {
    background: rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.node-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.node-step-index {
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.node-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-btn-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.2rem;
    transition: color 0.15s;
}

.node-btn-delete:hover {
    color: var(--danger);
}

/* Node Contents Body */
.node-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.node-desc-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border-left: 2px solid var(--primary);
    word-break: break-word;
}

/* Connector pin sockets */
.node-connector-in, .node-connector-out {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 5px var(--primary-glow);
    transition: background-color 0.2s, transform 0.2s;
}

.node-connector-in {
    left: -7px;
}

.node-connector-out {
    right: -7px;
}

.quest-step-node.selected .node-connector-in,
.quest-step-node.selected .node-connector-out {
    border-color: var(--secondary);
    box-shadow: 0 0 6px var(--secondary-glow);
}

/* Objectives display on step cards */
.node-objectives-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.node-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.25rem;
}

.objective-pill {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.objective-pill:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.03);
}

.objective-pill-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.obj-type-badge {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
}

.obj-type-badge.TALK_NPC { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.obj-type-badge.KILL_MOB { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.obj-type-badge.COLLECT_ITEM { background: rgba(245, 158, 11, 0.15); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.3); }
.obj-type-badge.REACH_LOCATION { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }

.obj-amount {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.obj-desc {
    font-size: 0.72rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

.objective-pill-delete {
    position: absolute;
    top: 3px;
    right: 5px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    display: none;
}

.objective-pill:hover .objective-pill-delete {
    display: block;
}

.objective-pill-delete:hover {
    color: var(--danger);
}

/* Quick summary cards for Rewards & Commands on nodes */
.node-config-rows {
    display: flex;
    gap: 0.5rem;
}

.node-config-card {
    flex: 1;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.node-config-card:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.03);
}

.node-config-icon {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.node-config-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Collapsible JSON Preview Drawer */
.json-preview-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: rgba(15, 15, 23, 0.95);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 8;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    animation: slideLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

.json-preview-header h3 {
    font-size: 0.95rem;
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
}

.json-preview-actions {
    display: flex;
    gap: 0.4rem;
}

.json-preview-content {
    flex: 1;
    overflow: auto;
    padding: 1rem;
}

.json-preview-content pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary);
    line-height: 1.5;
}

/* Sticky bottoms Save Bar */
.editor-save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 100;
}

.editor-save-bar-inner {
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.save-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.editor-dirty-indicator {
    color: var(--warning);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

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

/* Overlay Backdrop */
.editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
}

/* Elegant glassmorphic popup modals */
.editor-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(22, 22, 33, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1001;
    display: none;
    flex-direction: column;
    max-height: 85vh;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.editor-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.editor-modal-medium {
    width: 460px;
}

.editor-modal-small {
    width: 380px;
}

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

.editor-modal-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.editor-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.15s;
}

.editor-modal-close:hover {
    color: white;
}

.editor-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.editor-modal-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    background: rgba(10, 10, 15, 0.3);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Copy Command blocks in save modal */
.editor-command-box {
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.85rem 0;
    gap: 0.5rem;
}

.editor-command-box code {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow-x: auto;
    flex: 1;
}

.editor-expiry-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-description-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
