/* ========================================
   Layout Shell - CSS Variables & Modern UI
   ======================================== */

:root {
    /* Layout dimensions */
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 56px;
    --header-height: 64px;

    /* Sidebar */
    --color-sidebar-bg: #f0f4f8;
    --color-sidebar-border: #dce3eb;
    --color-sidebar-text: #4a5568;
    --color-sidebar-hover: #e2e8f0;
    --color-sidebar-active-bg: #e0eeff;
    --color-sidebar-active-border: #0098f9;
    --color-sidebar-active-text: #0074c4;

    /* Primary */
    --color-primary: #0098f9;
    --color-primary-hover: #007acc;
    --color-primary-light: #e0eeff;
    --color-primary-shadow: rgba(0, 152, 249, 0.2);
    --color-primary-shadow-hover: rgba(0, 122, 204, 0.3);

    /* Surfaces */
    --color-header-bg: #fff;
    --color-content-bg: #f7fafc;
    --color-surface: #fff;
    --color-surface-secondary: #f5f5f5;
    --color-surface-hover: #f0f7ff;
    --color-th-bg: #f7fafc;

    /* Text */
    --color-text: #2d3748;
    --color-text-secondary: #4a5568;
    --color-text-muted: #718096;
    --color-text-lighter: #a0aec0;
    --color-text-disabled: #b0b0b0;

    /* Borders */
    --color-border: #e2e8f0;
    --color-border-light: #edf2f7;
    --color-border-medium: #dce3eb;

    /* Status */
    --color-success: #38a169;
    --color-success-bg: #f0fff4;
    --color-success-border: #c6f6d5;
    --color-error: #e53e3e;
    --color-error-bg: #fff5f5;
    --color-error-border: #fed7d7;
    --color-error-dark: #c53030;
    --color-warning: #dd6b20;
    --color-warning-light: #f6ad55;
    --color-warning-bg: #fff3cd;
    --color-warning-text: #856404;
    --color-warning-border: #ffc107;
    --color-inactive: #a0aec0;

    /* Inputs */
    --color-input-bg: #e8f4fe;
    --color-input-border: #a8d4f9;
    --color-input-focus-bg: #dceefb;

    /* Misc */
    --color-info-value-bg: #e0eeff;
    --color-disabled-bg: #ccc;
    --color-disabled-bg-light: #f0f0f0;
    --color-disabled-border: #e0e0e0;
    --color-subtitle-bg: #edf2f7;
    --color-icon-empty: #cbd5e0;

    /* Shadows */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.18);
    --shadow-notification: 0 4px 20px rgba(0, 0, 0, 0.15);

    /* Scrollbar */
    --color-scrollbar-thumb: #3498db;
    --color-scrollbar-track: #f1f1f1;
}

/* ========== Dark Mode ========== */

html.dark-mode {
    --color-sidebar-bg: #1a1f2e;
    --color-sidebar-border: #2d3548;
    --color-sidebar-text: #8896a6;
    --color-sidebar-hover: #252b3d;
    --color-sidebar-active-bg: #1e2a40;
    --color-sidebar-active-border: #3ea8fb;
    --color-sidebar-active-text: #6dbcfc;

    --color-primary: #3ea8fb;
    --color-primary-hover: #2196f3;
    --color-primary-light: #1e2a40;
    --color-primary-shadow: rgba(62, 168, 251, 0.2);
    --color-primary-shadow-hover: rgba(62, 168, 251, 0.3);

    --color-header-bg: #1e2433;
    --color-content-bg: #141820;
    --color-surface: #1e2433;
    --color-surface-secondary: #252b3d;
    --color-surface-hover: #252b3d;
    --color-th-bg: #1a1f2e;

    --color-text: #e2e8f0;
    --color-text-secondary: #b0bec5;
    --color-text-muted: #8896a6;
    --color-text-lighter: #6b7a8d;
    --color-text-disabled: #4a5568;

    --color-border: #2d3548;
    --color-border-light: #232838;
    --color-border-medium: #2d3548;

    --color-success: #48bb78;
    --color-success-bg: #1a2e22;
    --color-success-border: #276749;
    --color-error: #fc8181;
    --color-error-bg: #2d1b1b;
    --color-error-border: #5a2020;
    --color-error-dark: #e53e3e;
    --color-warning: #f6ad55;
    --color-warning-light: #f6ad55;
    --color-warning-bg: #2d2415;
    --color-warning-text: #f6ad55;
    --color-warning-border: #8b6914;
    --color-inactive: #6b7a8d;

    --color-input-bg: #1a2030;
    --color-input-border: #2d3a50;
    --color-input-focus-bg: #1e2840;

    --color-info-value-bg: #1e2a40;
    --color-disabled-bg: #2d3548;
    --color-disabled-bg-light: #252b3d;
    --color-disabled-border: #3a4458;
    --color-subtitle-bg: #252b3d;
    --color-icon-empty: #4a5568;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-notification: 0 4px 20px rgba(0, 0, 0, 0.35);

    --color-scrollbar-thumb: #3ea8fb;
    --color-scrollbar-track: #1a1f2e;
}

/* ========== Theme Toggle Button ========== */

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05em;
    transition: transform 0.2s, color 0.2s, background 0.2s, border-color 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-surface);
}

/* ========== Dark Mode Transition ========== */

html.dark-mode-transition,
html.dark-mode-transition *,
html.dark-mode-transition *::before,
html.dark-mode-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ========== Sidebar ========== */

.app-sidebar {
    background-color: var(--color-sidebar-bg);
    border-right: 1px solid var(--color-sidebar-border);
    color: var(--color-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-collapsed-width);
    height: 100vh;
    z-index: 20;
    overflow: hidden;
    transition: width 0.25s ease;
}

/* Sidebar expandida (controlada via JS para manter estado entre navegacoes) */
.app-sidebar.expanded {
    width: var(--sidebar-width);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
}

.sidebar-logo {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-sidebar-border);
    min-height: 48px;
    flex-shrink: 0;
}

.sidebar-logo img {
    height: 38px;
    cursor: pointer;
    transition: height 0.25s ease;
}

.app-sidebar.expanded .sidebar-logo img {
    height: 46px;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav-item {
    display: flex;
    text-decoration: none;
    color: var(--color-sidebar-text);
    padding: 14px 16px;
    align-items: center;
    gap: 14px;
    font-size: 0.92em;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-nav-item:hover {
    background-color: var(--color-sidebar-hover);
    color: var(--color-text);
}

.sidebar-nav-item.active {
    background-color: var(--color-sidebar-active-bg);
    border-left-color: var(--color-sidebar-active-border);
    color: var(--color-sidebar-active-text);
    font-weight: 600;
}

.sidebar-nav-item i {
    width: 22px;
    text-align: center;
    font-size: 1.1em;
    flex-shrink: 0;
}

.sidebar-nav-item span {
    opacity: 0;
    transition: opacity 0.15s ease 0.05s;
    overflow: hidden;
}

.app-sidebar.expanded .sidebar-nav-item span {
    opacity: 1;
}

.sidebar-nav-item.sidebar-nav-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sidebar-nav-item.sidebar-nav-disabled:hover {
    background-color: transparent;
    color: var(--color-sidebar-text);
}

/* ========== Sidebar Submenu (Flyout) ========== */

.sidebar-submenu-wrapper {
    position: relative;
}

.sidebar-submenu-trigger {
    cursor: pointer;
}

.sidebar-submenu-arrow {
    font-size: 0.7em;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s ease 0.05s;
}

.app-sidebar.expanded .sidebar-submenu-arrow {
    opacity: 0.5;
}

.sidebar-submenu-wrapper.open .sidebar-submenu-arrow {
    opacity: 1;
}

.sidebar-submenu {
    display: none;
    position: fixed;
    min-width: 200px;
    background: var(--color-sidebar-bg);
    border: 1px solid var(--color-sidebar-border);
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 4px 0;
}

.sidebar-submenu.open {
    display: block;
}

.sidebar-submenu-item {
    display: flex;
    text-decoration: none;
    color: var(--color-sidebar-text);
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
    font-size: 0.88em;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.sidebar-submenu-item span {
    opacity: 1;
}

.sidebar-submenu-item:hover {
    background-color: var(--color-sidebar-hover);
    color: var(--color-text);
}

.sidebar-submenu-item.active {
    background-color: var(--color-sidebar-active-bg);
    color: var(--color-sidebar-active-text);
    font-weight: 600;
}

.sidebar-submenu-item i {
    width: 20px;
    text-align: center;
    font-size: 1em;
    flex-shrink: 0;
}

.sidebar-submenu-item.sidebar-nav-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sidebar-submenu-item.sidebar-nav-disabled:hover {
    background-color: transparent;
    color: var(--color-sidebar-text);
}

/* Dark mode submenu */
html.dark-mode .sidebar-submenu {
    box-shadow: 4px 2px 16px rgba(0, 0, 0, 0.35);
}

/* ========== Sidebar Health Status ========== */

.sidebar-health {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-sidebar-border);
    cursor: default;
    flex-shrink: 0;
    min-height: 48px;
    transition: background-color 0.2s ease;
}

.sidebar-health:hover {
    background-color: var(--color-sidebar-hover);
}

.sidebar-health-icon {
    width: 22px;
    text-align: center;
    font-size: 1.15em;
    flex-shrink: 0;
    line-height: 1;
}

.sidebar-health[data-health="green"] .sidebar-health-icon { color: var(--color-success); }
.sidebar-health[data-health="orange"] .sidebar-health-icon { color: var(--color-warning); }
.sidebar-health[data-health="red"] .sidebar-health-icon { color: var(--color-error); }
.sidebar-health[data-health="gray"] .sidebar-health-icon { color: var(--color-inactive); }

.sidebar-health-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s ease 0.05s;
    white-space: nowrap;
    overflow: hidden;
}

.app-sidebar.expanded .sidebar-health-details {
    opacity: 1;
}

.sidebar-health-label {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.sidebar-health[data-health="green"] .sidebar-health-label { color: var(--color-success); }
.sidebar-health[data-health="orange"] .sidebar-health-label { color: var(--color-warning); }
.sidebar-health[data-health="red"] .sidebar-health-label { color: var(--color-error); }
.sidebar-health[data-health="gray"] .sidebar-health-label { color: var(--color-inactive); }

.sidebar-health-env {
    font-size: 0.7em;
    color: var(--color-text-muted);
    font-weight: 500;
}

.sidebar-health-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    color: var(--color-sidebar-text);
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.15s ease 0.05s, color 0.2s;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

.app-sidebar.expanded .sidebar-health-link {
    opacity: 0.6;
}

.sidebar-health-link:hover {
    opacity: 1 !important;
    color: var(--color-primary);
}

/* ========== Header ========== */

.app-header {
    background-color: var(--color-header-bg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 24px;
    gap: 8px 16px;
    position: fixed;
    top: 0;
    left: var(--sidebar-collapsed-width);
    right: 0;
    min-height: var(--header-height);
    z-index: 15;
    transition: left 0.25s ease;
}

/* Header reage a expansao da sidebar */
body.sidebar-expanded .app-header {
    left: var(--sidebar-width);
}

.header-title {
    font-size: 1.35em;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title i {
    color: var(--color-primary);
    font-size: 0.9em;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 280px;
    max-width: 560px;
}

.header-search input[type="text"] {
    height: 38px;
    border: 1px solid var(--color-input-border);
    border-radius: var(--border-radius);
    padding: 0 12px;
    font-size: 0.95em;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
    background-color: var(--color-input-bg);
    color: var(--color-text);
}

.header-search input[type="text"]:focus {
    border-color: var(--color-primary);
    background-color: var(--color-input-focus-bg);
}

.header-search button {
    height: 38px;
    padding: 0 18px;
    font-size: 0.95em;
    white-space: nowrap;
    box-sizing: border-box;
}

/* ========== Toggle PRD/DEV (dentro do header-search) ========== */

.toggle-container-main {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--color-border);
    border-radius: 30px;
    cursor: pointer;
    font-size: 70%;
    flex-shrink: 0;
}

.toggle-slider-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
    z-index: 1;
}

/* ========== Login/Logout (header-actions, dropdown absoluto) ========== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    position: relative;
}

.header-login-wrapper {
    position: relative;
}

/* Login/Logout posicionado via login_styles.css (position: fixed) */

/* ========== Content Area ========== */

.app-content {
    background-color: var(--color-content-bg);
    margin-top: var(--header-height);
    margin-left: var(--sidebar-collapsed-width);
    padding: 24px 24px 0;
    min-height: calc(100vh - var(--header-height));
    box-sizing: border-box;
    overflow-y: auto;
    transition: margin-left 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* Content reage a expansao da sidebar */
body.sidebar-expanded .app-content {
    margin-left: var(--sidebar-width);
}

/* ========== Footer ========== */

.showcase-footer {
    padding: 8px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    opacity: 0.4;
    margin-top: auto;
    color: var(--color-text-muted);
}

/* ========== Info Bar (compartilhado entre paginas) ========== */

.info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 10px;
    background: var(--color-sidebar-bg);
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
}

.info-card {
    flex: 1 1 0;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    transition: box-shadow 0.2s;
    position: relative;
}

.info-card:hover {
    box-shadow: var(--shadow-card);
}

.info-card-label {
    font-size: 0.7em;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.info-card-value {
    font-size: 0.92em;
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-info-value-bg);
    padding: 2px 12px;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
}

.info-bar-refresh-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    transition: background 0.2s, transform 0.3s;
    box-shadow: 0 2px 6px var(--color-primary-shadow);
}

.info-bar-refresh-btn:hover {
    background: var(--color-primary-hover);
    transform: rotate(180deg);
}

/* ========== Empty State ========== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    color: var(--color-text-muted);
}

.empty-state i {
    font-size: 3em;
    margin-bottom: 16px;
    color: var(--color-icon-empty);
}

.empty-state .empty-state-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.empty-state .empty-state-desc {
    font-size: 0.95em;
    max-width: 360px;
    line-height: 1.5;
}

/* ========== Loader ========== */

.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000000;
}

.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.loader-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== Git Ribbon ========== */

.git-ribbon {
    background-color: #a00;
    overflow: hidden;
    position: fixed;
    right: -3em;
    bottom: 2.5em;
    left: auto;
    transform: rotate(-45deg);
    box-shadow: 0 0 1em #888;
    z-index: 50;
    visibility: hidden;
}

.git-ribbon:hover {
    cursor: default;
    animation: ribbonblink 2s linear infinite;
}

.git-ribbon span {
    border: 1px solid #faa;
    color: #fff;
    display: block;
    font: bold 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0.05em 0 0.075em 0;
    padding: 0.5em 3.5em;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 0 0.5em #444;
}

/* ========== Custom Modal (Confirmacao / Copy) ========== */

.custom-modal-overlay,
.custom-prompt-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-modal-box {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 32px 28px 24px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-modal);
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.custom-modal-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
}

.custom-modal-warning .custom-modal-icon { color: var(--color-warning-light); }
.custom-modal-danger .custom-modal-icon { color: var(--color-error); }
.custom-modal-info .custom-modal-icon { color: var(--color-primary); }
.custom-modal-success .custom-modal-icon { color: var(--color-success); }

.custom-modal-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}

.custom-modal-message {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}

.custom-modal-extra {
    margin: -12px 0 20px;
}

.custom-modal-queue-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--color-info-value-bg);
    border: 1px solid var(--color-border-medium);
    color: var(--color-text);
    font-size: 0.95em;
    font-weight: 500;
}

.custom-modal-queue-highlight i {
    font-size: 1.2em;
    color: var(--color-primary);
}

.custom-modal-queue-highlight strong {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.custom-modal-queue-highlight .custom-modal-queue-label {
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.custom-modal-btn {
    padding: 10px 24px;
    font-size: 0.95em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 110px;
}

.custom-modal-btn-cancel {
    background: var(--color-subtitle-bg);
    color: var(--color-text-secondary);
}

.custom-modal-btn-cancel:hover {
    background: var(--color-border);
}

.custom-modal-btn-confirm {
    background: var(--color-primary);
    color: #fff;
}

.custom-modal-btn-confirm:hover {
    background: var(--color-primary-hover);
}

.custom-modal-danger .custom-modal-btn-confirm {
    background: var(--color-error);
}

.custom-modal-danger .custom-modal-btn-confirm:hover {
    background: var(--color-error-dark);
}

.custom-modal-copyarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9em;
    resize: vertical;
    background: var(--color-content-bg);
    color: var(--color-text);
    box-sizing: border-box;
}

/* ========== Custom Prompt ========== */

.custom-prompt-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95em;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 20px;
    box-sizing: border-box;
    background: var(--color-surface);
    color: var(--color-text);
}

.custom-prompt-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-shadow);
}

/* ========== Notification Toasts ========== */

.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000001;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 480px;
    min-width: 360px;
    pointer-events: none;
}

.notification-toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--color-surface);
    box-shadow: var(--shadow-notification);
    border-left: 5px solid var(--color-primary);
    transform: translateX(-120%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
    opacity: 0;
}

.notification-toast.notification-show {
    transform: translateX(0);
    opacity: 1;
}

.notification-toast.notification-hide {
    transform: translateX(-120%);
    opacity: 0;
}

.notification-toast i {
    font-size: 1.4em;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-success { border-left-color: var(--color-success); }
.notification-success i { color: var(--color-success); }

.notification-error { border-left-color: var(--color-error); }
.notification-error i { color: var(--color-error); }

.notification-warning { border-left-color: var(--color-warning-light); }
.notification-warning i { color: var(--color-warning-light); }

.notification-info { border-left-color: var(--color-primary); }
.notification-info i { color: var(--color-primary); }

.notification-message {
    font-size: 0.95em;
    color: var(--color-text);
    line-height: 1.5;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--color-text-lighter);
    cursor: pointer;
    padding: 0 0 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--color-text-secondary);
}
