/* ══════════════════════════════════════════
   LINDE CMS – GLOBALE VARIABLEN & RESET
   ══════════════════════════════════════════ */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root {
    --green:            #006621;
    --green-dark:       #004d17;
    --green-light:      #e8f5ec;
    --green-extra-light:#F4F6F5;
    --green-mid:        #cce8d4;
    --gold:             #c8a84b;
    --gold-light:       #fdf6e3;
    --red:              #c0392b;
    --red-light:        #fdf0ee;
    --gray:             #6b7280;
    --gray-light:       #f4f6f5;
    --border:           #dde5e0;
    --text:             #1e2820;
    --text-muted:       #6b7280;
    --white:            #ffffff;
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --shadow-sm:        0 2px 8px rgba(0,102,33,0.08);
    --shadow-md:        0 8px 30px rgba(0,102,33,0.12);
    --shadow-lg:        0 20px 60px rgba(0,102,33,0.15);
    --shadow-login:     0 20px 60px rgba(0,102,33,0.12);
    --transition:       0.2s ease;
}

/* ── Standard Dashboard Body ── */
body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    min-height: 100vh;
}

/* Verhindert Konflikte auf der Login-Seite */
body:not(.login-page) {
    padding: 0;
    display: flex;

    height: 100vh;
    overflow: hidden;

    background: #eef4f0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0,102,33,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(200,168,75,0.04) 0%, transparent 50%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   ANSICHT 1: LOGIN SEITE
   ══════════════════════════════════════════ */
body.login-page {
    background: linear-gradient(135deg, #e8f5ec 0%, #f0f7f2 50%, #e0efe5 100%);
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-login);
    padding: 50px 45px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--green));
}

.login-image {
    margin-bottom: 10px;
}

.login-image img {
    width: 70px;
    border-radius: 18px;
    display: block;
    margin: 0 auto;
}

/* ── LOGIN BRANDING (RECHTSBÜNDIGE KRONEN-AUSRICHTUNG) ── */
.login-card .login-logo-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;    /* Richtet fulli's perfekt am rechten Rand aus */
    margin-bottom: 6px;
}

.login-maker-name {
    font-family: 'Georgia', serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 1px;
    text-decoration-thickness: 0.5px;
    color: var(--gold);
    letter-spacing: 1.8px;
    margin-bottom: 0px;
    display: block;
}

.login-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--green);
    letter-spacing: -0.5px;
    margin-bottom: 0;
    line-height: 0.95;
}

.login-logo span { color: var(--gold); }

.login-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 36px;
}

/* ── Login Formular ── */
.form-group { text-align: left; margin-bottom: 20px; }

.form-group label { 
    display: block; 
    font-weight: 600; 
    font-size: 0.875rem; 
    color: var(--text); 
    margin-bottom: 8px; 
    text-transform: none;
    letter-spacing: normal;
}

input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

input[type="password"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0,102,33,0.1);
}

.error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    letter-spacing: 0.5px;
}

.btn-login:hover { background: var(--green-dark); }
.btn-login:active { transform: scale(0.98); }
.lock-icon { font-size: 2.5rem; margin-bottom: 16px; }


/* ══════════════════════════════════════════
   ANSICHT 2: DASHBOARD (ADMIN-BEREICH)
   ══════════════════════════════════════════ */
.admin-wrapper {
    display: flex;
    width: 100%;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px 40px 60px;
    max-width: 1200px;
    height: 100vh;
    overflow-y: auto;
}

.main-content.sidebar-collapsed {
    margin-left: 70px;
}
/* ==========================================================================
   DIE OPTIMIERTE SIDEBAR
   ========================================================================== */
.sidebar {
    width: 280px;
    height: 100vh;
/*    overflow: hidden; */
    overflow: visible;
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0,102,33,0.02);
}

.sidebar.collapsed {
    width: 85px;
}

.sidebar-toggle {
    position: absolute;
     top: 50%;
/*    top: 133px;    */
    right: -16px;
    transform: translateY(-50%);
/*    transform: none;  */
    width: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    z-index: 200;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.08);
}

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}

/* .sidebar.collapsed .sidebar-toggle {
    left: 10px; NICHT LEFT
    right: -16px;
    top: 65px;
} */

.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .maker-name,
.sidebar.collapsed .brand-tagline,
.sidebar.collapsed .user-info,
.sidebar.collapsed .sidebar-link span {
    display: none;
}

/* ── SIDEBAR BRANDING (RECHTSBÜNDIGE KRONEN-AUSRICHTUNG) ── */
.sidebar-brand {
    margin-bottom: 32px;
    padding-left: 8px;
    display: flex;
    flex-direction: column;   
    align-items: flex-start;  
    line-height: 1;
}

.sidebar-logo-block {
    display: inline-flex;
    flex-direction: column;   
    align-items: flex-end;    /* ZWINGT FULLI'S NACH RECHTS! */
    width: auto;
}

.sidebar-brand .maker-name {
    font-family: 'Georgia', serif;
    font-size: 0.90rem;       
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 0.5px;
    color: var(--gold);
    letter-spacing: 1.8px;    
    margin-bottom: 1px;       
    display: block;
}

.sidebar-brand .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--green);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: block;
}

.sidebar-brand .brand-name span { 
    color: var(--gold); 
}

.sidebar-brand .brand-tagline {
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1px;
    margin-left: 2px;
    display: block;
}

/* ── User Profil-Anzeige in der Sidebar ── */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(0,102,33,0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--green-light);
    color: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* .user-info { display: flex; flex-direction: column; } */
.user-info { flex: 1; display: flex; flex-direction: column; min-width: 0;}
.user-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.user-role { font-size: 0.75rem; color: var(--text-muted); }

.user-logout {
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid #f5c0bb;
    border-radius: 6px;
    background: #fff5f4;
    color: var(--red);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all var(--transition);
}

.user-logout:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.user-logout svg {
    width: 12px;
    height: 12px;
}

.user-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 4px;
}

/* ── Sidebar Navigation ── */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.925rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition);
}

.sidebar-link:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.sidebar-link:hover svg { transform: translateX(2px); }

.sidebar-link.active {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,102,33,0.15);
}

/* ── Logout Button Sidebar ── */
.sidebar .logout-wrapper {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.sidebar .logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fdf0ee;
    color: var(--red);
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all var(--transition);
    border: 1px solid #f5c0bb;
}

.sidebar .logout-btn:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(192,57,43,0.2);
}

/* ── Statusmeldung & Bar ── */
.msg-bar {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.msg-success { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green-mid); }

/* ── Module / Karten ── */
.module {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green-light);
}

.module-number {
    width: 32px;
    height: 32px;
    background: var(--green);
    color: white;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.0rem;
    flex-shrink: 0;
}

.module-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text);
}

/* ── Formular-Elemente ── */
.field-group { margin-bottom: 16px; }

.field-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--gray-light);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0,102,33,0.1);
}

textarea { resize: vertical; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--green);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    letter-spacing: 0.3px;
}

.btn:hover {
    background: var(--green-dark);
    box-shadow: 0 4px 12px rgba(0,102,33,0.3);
    transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }
.btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 1rem; }

.btn-sm {
    padding: 5px 10px;
    font-size: 0.78rem;
    border-radius: 5px;
}

.btn-danger {
    background: transparent;
    border: 1px solid #fecaca;
    color: var(--red);
    padding: 5px 9px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background var(--transition), border-color var(--transition);
}

.btn-danger:hover { background: var(--red-light); border-color: var(--red); }

.btn-muted {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--gray);
    padding: 5px 9px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background var(--transition);
}

/* BUTTONS UND LINKS FÜR DEN DATEIMANAGER */
.file-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;
}

.file-action svg {
    width: 16px;
    height: 16px;
}

.folder-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.folder-link:hover {
    text-decoration: underline;
}

.filemanager-folder {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.filemanager-folder:hover {
    text-decoration: underline;
}

.breadcrumbs {
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.filemanager-breadcrumbs {
    margin: 15px 0 20px;
    padding: 10px 15px;
    background: var(--surface-color, #f5f5f5);
    border-radius: 8px;
}

.filemanager-breadcrumbs a {
    text-decoration: none;
}

.filemanager-breadcrumbs a:hover {
    text-decoration: underline;
}
/* .filemanager-path {
    margin: 20px 0;
    padding: 14px 18px;

    background: #fff;

    border: 1px solid #e3e6ea;
    border-radius: 10px;

    box-shadow: 0 2px 6px rgba(0,0,0,.04);
} */

.filemanager-path {
    margin: 20px 0;
    padding: 12px 16px;
    background: var(--green-extra-light);
    border: 2px solid var(--border);
    border-radius: 8px;
}

.filemanager-path-label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;

    color: #666;
}

.filemanager-path-label svg {
    width: 16px;
    height: 16px;
}

.filemanager-path-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    font-weight: 500;
}

.filemanager-path-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;

    padding: 3px 6px;
    border-radius: 4px;

    transition: background .15s ease;
}

.filemanager-path-breadcrumbs a:hover {
    background: rgba(0,0,0,.05);
    text-decoration: none;
}

.filemanager-path-breadcrumbs .separator {
    color: #999;
    font-weight: normal;
}

.filemanager-table {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
}

.filemanager-table thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.current-folder {
    font-weight: 600;
    color: var(--text-color);
}

/* ------------------------------------------------

.btn-muted:hover { background: var(--gray-light); }

/* ── Toggle-Badges ── */
.toggle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: filter var(--transition), transform var(--transition);
    border: none;
}

.toggle-badge:hover { filter: brightness(0.92); transform: scale(1.04); }
.toggle-badge .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.toggle-on { background: var(--green-light); color: var(--green-dark); }
.toggle-on .dot { background: var(--green); box-shadow: 0 0 0 2px rgba(0,102,33,0.2); }
.toggle-off { background: #f0f0f0; color: #999; }
.toggle-off .dot { background: #ccc; }

/* ── Tabellen ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-light); }
.status-active   { color: var(--green); font-weight: 700; }
.status-inactive { color: var(--text-muted); text-decoration: line-through; opacity: 0.7; }

code {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    background: var(--green-light);
    color: var(--green-dark);
    padding: 2px 7px;
    border-radius: 4px;
}

/* ── Schiebe-Buttons (Reihenfolge) ── */
.move-wrap { display: flex; gap: 4px; justify-content: center; }

.move-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--green-light);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background var(--transition), transform var(--transition);
}

.move-btn:hover { background: var(--green-mid); transform: scale(1.15); }

/* ── Inline Add-Form ── */
.add-form {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}

.add-form input[type="text"] {
    flex: 1;
    background: var(--white);
}

/* ══════════════════════════════════════════
   PAGE GRID & TILES (Seiten-Verwaltung)
   ══════════════════════════════════════════ */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, max-content));
    gap: 16px;
    margin-bottom: 32px;
}

.page-tile {
    background: #f8faf9;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.page-tile:hover {
    border-color: var(--green);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 102, 33, 0.05);
}

.page-tile.active-tile {
    border-color: var(--green);
    background: #f0f7f4;
}

.page-tile-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
}

.page-tile-name.status-inactive {
    color: var(--muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.page-tile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: auto;
}

/* Kleiner Fix direkt für das Modul: Verhindert das Springen der Button-Breite */
.page-grid .toggle-badge {
    min-width: 55px;
    justify-content: flex-start;
}

.section-divider {
    border: none;
    border-top: 2px dashed var(--green-mid);
    margin: 28px 0;
}

/* ── Editor-Box ── */
.editor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.editor-slug {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--green-light);
    padding: 3px 9px;
    border-radius: 20px;
}

.editor-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text);
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: var(--white);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    opacity: 0;
    transform: translateX(100%);
}

.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--gold); }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-message { font-size: 0.9rem; color: var(--text); flex: 1; }

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 2px;
    transition: color 0.2s;
}

.toast-close:hover { color: var(--text); }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

.CodeMirror {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    height: 700px;
    margin-top: 10px;
}

.CodeMirror-gutters {
    background: #f8f8f8;
    border-right: 1px solid var(--border);
}

.CodeMirror-dialog {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px;
}

.CodeMirror-dialog input {
    border: 1px solid var(--border);
    padding: 6px 8px;
    border-radius: 4px;
}
