/* Unified Editor Shell — toolbar, chat, sidebar, tabs, rollback, toast */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #021E2F;
    color: #E0E0E0;
}

/* main.lm-page is a flex child of .lm-content-wrap; editor fills it completely */
.lm-page {
    height: 100%;
    overflow: hidden;
}

#es-app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ================================================================
   Toolbar
   ================================================================ */

#es-toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: #021E2F;
    color: #E0E0E0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    min-height: 44px;
}

#es-hamburger {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem 0.4rem;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
#es-hamburger:hover { color: #E0E0E0; background: rgba(255,255,255,0.08); }

.es-back-link {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
.es-back-link:hover { color: #E0E0E0; }

.es-divider { color: rgba(255,255,255,0.20); font-size: 0.85rem; }

#es-project-name,
.es-project-name-text {
    font-weight: 600;
    font-size: 1.0rem;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
    cursor: pointer;
    border-radius: 4px;
    padding: 0.1rem 0.25rem;
    margin: -0.1rem -0.25rem;
    transition: background 0.15s;
    flex-shrink: 1;
}
.es-project-name-text:hover { background: rgba(255,255,255,0.07); }

.es-project-name-input {
    font-weight: 600;
    font-size: 1.0rem;
    color: #FFFFFF;
    background: rgba(255,255,255,0.08);
    border: 1px solid #62D84E;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    outline: none;
    font-family: inherit;
    max-width: 380px;
    flex-shrink: 1;
}

.es-spacer { flex: 1; }

/* Toolbar account (inline next to project name) */
.es-toolbar-account {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding-left: 0.1rem;
}
.es-toolbar-account svg {
    flex-shrink: 0;
    color: rgba(255,255,255,0.30);
}

#es-account-select,
.es-account-select {
    background: #021E2F;
    color: rgba(255,255,255,0.60);
    border: none;
    border-radius: 4px;
    padding: 0.15rem 0.3rem;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    max-width: 180px;
    outline: none;
}
#es-account-select:hover,
.es-account-select:hover { color: #E0E0E0; }
#es-account-select:focus,
.es-account-select:focus { color: #FFFFFF; outline: 1px solid rgba(98,216,78,0.5); border-radius: 3px; }
#es-account-select option,
.es-account-select option {
    background: #032D42;
    color: #E0E0E0;
}
#es-account-select:disabled,
.es-account-select:disabled { opacity: 0.4; cursor: default; }

/* Buttons */
.es-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.es-btn:disabled { opacity: 0.5; pointer-events: none; }
.es-btn-primary { background: #62D84E; color: #021E2F; }
.es-btn-primary:hover { background: #4EC43C; }
.es-btn-success { background: #62D84E; color: #021E2F; }
.es-btn-success:hover { background: #4EC43C; }
.es-btn-danger { background: #FF6B6B; color: #fff; }
.es-btn-danger:hover { background: #e05555; }
.es-btn-ghost { background: transparent; color: rgba(255,255,255,0.55); border-color: transparent; }
.es-btn-ghost:hover { background: #032D42; color: #FFFFFF; border-color: rgba(255,255,255,0.15); }

/* Split button (Deploy + caret) */
.es-split-btn {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}
.es-split-btn .es-split-main {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.es-split-btn .es-split-caret {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.35rem 0.5rem;
    margin-left: -1px;
}
.es-split-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: #021E2F;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
    padding: 0.25rem;
}
.es-split-btn.open .es-split-menu { display: block; }

.es-split-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #E0E0E0;
    font-size: 0.8rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.es-split-menu-item:hover { background: #032D42; color: #FFFFFF; }
.es-split-menu-item:disabled { opacity: 0.45; pointer-events: none; }
.es-split-menu-item .fa { width: 14px; text-align: center; color: rgba(255,255,255,0.55); }
.es-split-menu-item:hover .fa { color: #E0E0E0; }
.es-split-menu-danger { color: #FFFFFF; }
.es-split-menu-danger:hover { background: rgba(255,107,107,0.15); color: #FF6B6B; }


/* ================================================================
   Body (sidebar + main)
   ================================================================ */

#es-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ================================================================
   Sidebar
   ================================================================ */

#es-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #032D42;
    border-right: 1px solid rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.2s, min-width 0.2s;
}

#es-sidebar.collapsed {
    width: 0;
    min-width: 0;
    border-right: none;
    overflow: hidden;
}
#es-sidebar.collapsed > * { display: none; }

/* Sidebar tabs (Assets / Presentations) */
#es-sidebar-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
}

.es-sidebar-tab {
    flex: 1;
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.45);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.es-sidebar-tab:hover { color: rgba(255,255,255,0.75); }
.es-sidebar-tab.active {
    color: #62D84E;
    border-bottom-color: #62D84E;
}

#es-sidebar-header {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

#es-sidebar-header .es-btn { width: 100%; justify-content: center; }

#es-new-project-form {
    margin-top: 0.4rem;
}
#es-new-project-form .es-input {
    margin-bottom: 0.35rem;
}

#es-project-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.es-project-item {
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    font-size: 0.82rem;
}
.es-project-item:hover { background: rgba(255,255,255,0.04); }
.es-project-item.active { background: rgba(98,216,78,0.08); border-left-color: #62D84E; }

/* Main row: type icon + name */
.es-project-row-main {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.es-project-type-icon {
    flex-shrink: 0;
    color: rgba(255,255,255,0.40);
    display: flex;
    align-items: center;
}
.es-project-item.active .es-project-type-icon { color: rgba(98,216,78,0.70); }

.es-project-name {
    font-weight: 600;
    font-size: 0.86rem;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Meta row: account + actions */
.es-project-row-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
    min-width: 0;
}

.es-sidebar-account-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.es-sidebar-account-text {
    font-size: 0.70rem;
    color: rgba(255,255,255,0.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* ================================================================
   Main content area
   ================================================================ */

#es-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ================================================================
   Chat panel (collapsible)
   ================================================================ */

#es-chat-panel {
    background: #021E2F;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    max-height: 50vh;
}

#es-chat-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    color: #62D84E;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}
#es-chat-toggle:hover { color: #4EC43C; }

.es-chat-chevron {
    font-size: 0.65rem;
    margin-left: 0.25rem;
    transition: transform 0.15s;
}

#es-chat-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

#es-chat-body.collapsed {
    display: none;
}

/* Chat history */
#es-chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    max-height: 200px;
}

.es-msg-user {
    align-self: flex-end;
    background: #62D84E;
    color: #021E2F;
    border-radius: 0.75rem 0.75rem 0.2rem 0.75rem;
    padding: 0.45rem 0.75rem;
    max-width: 80%;
    font-size: 0.82rem;
    white-space: pre-wrap;
}

.es-msg-assistant {
    align-self: flex-start;
    max-width: 85%;
    font-size: 0.82rem;
}

.es-msg-summary {
    color: #E0E0E0;
    padding: 0.35rem 0;
}

.es-msg-raw-toggle {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.40);
    cursor: pointer;
    user-select: none;
    margin-top: 0.2rem;
}
.es-msg-raw-toggle:hover { color: rgba(255,255,255,0.60); }

.es-msg-raw {
    margin: 0.3rem 0 0;
    padding: 0.5rem;
    background: #021E2F;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Chat input */
#es-chat-input {
    padding: 0.5rem 1rem 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#es-prompt {
    width: 100%;
    resize: vertical;
    min-height: 48px;
    max-height: 120px;
    background: #032D42;
    color: #E0E0E0;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 5px;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 0.82rem;
}
#es-prompt:focus {
    outline: none;
    border-color: #62D84E;
    box-shadow: 0 0 0 2px rgba(98,216,78,0.15);
}

#es-chat-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#es-model-select {
    background: #032D42;
    color: #E0E0E0;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
    font-family: inherit;
    min-width: 120px;
}

#es-chat-controls label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    white-space: nowrap;
}

#es-generate-btn {
    margin-left: auto;
}

/* ================================================================
   Page tabs (for custom pages)
   ================================================================ */

#es-page-tabs {
    display: flex;
    gap: 0;
    background: #032D42;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding: 0 1rem;
    flex-shrink: 0;
    overflow-x: auto;
}
#es-page-tabs:empty { display: none; }

.es-page-tab {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    user-select: none;
}
.es-page-tab:hover { color: #E0E0E0; }
.es-page-tab.active {
    color: #FFFFFF;
    border-bottom-color: #62D84E;
}

.es-tab-actions {
    display: inline-flex;
    gap: 2px;
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.15s;
}
.es-page-tab:hover .es-tab-actions { opacity: 1; }

.es-tab-action-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0 2px;
}
.es-tab-action-btn:hover { color: #FF6B6B; }

/* ================================================================
   Viewport
   ================================================================ */

#es-viewport {
    flex: 1;
    overflow: auto;
    position: relative;
    min-height: 0;
}

/* ================================================================
   Rollback panel
   ================================================================ */

#es-rollback-panel {
    position: fixed;
    top: 44px;
    right: 0;
    width: 300px;
    height: calc(100vh - 44px);
    background: #021E2F;
    border-left: 1px solid rgba(255,255,255,0.10);
    z-index: 150;
    display: none;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}

#es-rollback-panel.open { display: flex; }

.es-rollback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
}

.es-rollback-pin-section {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.es-rollback-pin-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    flex-shrink: 0;
}

.es-rollback-pin-input {
    flex: 1;
    font-size: 0.78rem;
    padding: 0.28rem 0.5rem;
    min-width: 0;
}

.es-rollback-pin-section .es-btn {
    font-size: 0.78rem;
    padding: 0.28rem 0.65rem;
    flex-shrink: 0;
}

.es-rollback-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem;
}

.es-rollback-empty {
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
    padding: 0.75rem;
    text-align: center;
    line-height: 1.5;
}

.es-rollback-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.35rem;
    background: #021E2F;
    transition: border-color 0.15s;
}
.es-rollback-item:hover { border-color: rgba(255,255,255,0.18); }

.es-rollback-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #E0E0E0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.es-rollback-date {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.40);
}


.es-rollback-rename-input {
    width: 100%;
    background: #032D42;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 3px;
    color: #E0E0E0;
    font-size: 0.78rem;
    padding: 0.1rem 0.3rem;
    outline: none;
}

.es-rollback-rename-input:focus {
    border-color: #62D84E;
}

.es-commit-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
    padding: 0.5rem 0.6rem 0.2rem;
}

.es-commit-sparkle {
    display: flex;
    align-items: center;
    color: #62D84E;
    flex-shrink: 0;
}

.es-rollback-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 0.5rem;
}

.es-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: rgba(255,255,255,0.60);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.es-icon-btn svg {
    width: 16px;
    height: 16px;
}

.es-icon-btn:hover {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.15);
    background: #032D42;
}

.es-commit-sparkle svg {
    width: 11px;
    height: 11px;
}

/* ================================================================
   Toast
   ================================================================ */

#es-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    z-index: 300;
    display: none;
    animation: es-toast-in 0.25s ease;
}
#es-toast.success { background: #62D84E; color: #021E2F; }
#es-toast.error { background: #FF6B6B; }
#es-toast.info { background: #32ADEE; }

@keyframes es-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   Inputs
   ================================================================ */

.es-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: inherit;
    color: #E0E0E0;
    background: #032D42;
    outline: none;
}
.es-input:focus { border-color: #62D84E; }

.es-select {
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    font-size: 0.78rem;
    color: #E0E0E0;
    background: #032D42;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

/* ================================================================
   Present mode
   ================================================================ */

#es-present-exit {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: rgba(2, 30, 47, 0.90);
    color: #E0E0E0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    user-select: none;
}

body.present-mode #es-present-exit {
    display: flex;
}

body.present-mode #es-present-exit.visible {
    opacity: 1;
    pointer-events: all;
}

body.present-mode #es-present-exit:hover {
    background: rgba(3, 45, 66, 0.95);
    color: #FFFFFF;
}

/* Presentation fullscreen overlay */
#es-pres-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #000;
}

#es-pres-overlay.active {
    display: block;
}

#es-pres-overlay-frame {
    width: 100%;
    height: 100%;
    border: none;
}

#es-pres-overlay-exit {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: rgba(2, 30, 47, 0.90);
    color: #E0E0E0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    user-select: none;
}

#es-pres-overlay.active #es-pres-overlay-exit {
    pointer-events: all;
}

#es-pres-overlay.active #es-pres-overlay-exit:hover {
    opacity: 1;
    background: rgba(3, 45, 66, 0.95);
    color: #FFFFFF;
}

/* Spinner */
.es-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff44;
    border-top-color: #fff;
    border-radius: 50%;
    animation: es-spin 0.6s linear infinite;
}
@keyframes es-spin { to { transform: rotate(360deg); } }

/* Delete project button in sidebar */
.es-delete-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 0.3rem;
    border-radius: 3px;
}
.es-delete-btn:hover { color: #FF6B6B; }

/* Sidebar project action buttons (duplicate + delete) */
.es-project-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.es-project-item:hover .es-project-actions { opacity: 1; }
.es-duplicate-item-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0 0.3rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
}
.es-duplicate-item-btn:hover { color: #62D84E; }

/* Page tab inline rename */
.es-tab-rename-input {
    background: rgba(255,255,255,0.10);
    border: 1px solid #62D84E;
    border-radius: 3px;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-family: inherit;
    padding: 0.05rem 0.3rem;
    outline: none;
    width: 120px;
}

/* Import button in page tabs bar */
.es-tab-import-btn {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    color: rgba(255,255,255,0.55);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    align-self: center;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}
.es-tab-import-btn:hover {
    color: #E0E0E0;
    border-color: rgba(255,255,255,0.25);
}

/* Modal */
.es-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}
.es-modal {
    background: #032D42;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 4px 16px rgba(0,0,0,0.40);
}
.es-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
}
.es-modal-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.es-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.es-modal-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.55);
}
.es-modal-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.es-modal-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: #E0E0E0;
    cursor: pointer;
}
.es-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
