/* PERUN Glossary — Main Stylesheet V004 MVP */

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2440;
    --accent: #e53e3e;
    --accent-light: #fc8181;
    --success: #38a169;
    --warning: #d69e2e;
    --danger: #e53e3e;
    --info: #3182ce;
    --bg: #f7fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #1a202c;
    --text: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 8px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === LAYOUT === */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: #fff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.sidebar-logo h1 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: 2px;
}

.sidebar-logo .subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav { padding: 16px 0; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    color: #cbd5e0;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: var(--accent);
}

.sidebar-nav a .icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 16px;
}

.sidebar-section {
    padding: 12px 24px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.sidebar-user {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: rgba(0,0,0,0.2);
    font-size: 13px;
}

.sidebar-user .role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
    min-height: 100vh;
}

/* === PAGE HEADER === */
.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.page-header .breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

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

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}

.stat-card .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-card.critical .number { color: var(--accent); }
.stat-card.success .number { color: var(--success); }
.stat-card.warning .number { color: var(--warning); }
.stat-card.info .number { color: var(--info); }

/* === TABLES === */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: var(--bg);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
    background: #edf2f7;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-approved { background: #c6f6d5; color: #22543d; }
.badge-draft { background: #fefcbf; color: #744210; }
.badge-in-review { background: #bee3f8; color: #2a4365; }
.badge-locked { background: #e9d8fd; color: #44337a; }
.badge-deprecated { background: #fed7d7; color: #742a2a; }
.badge-forbidden { background: #fed7d7; color: #742a2a; }
.badge-preferred { background: #c6f6d5; color: #22543d; }
.badge-allowed { background: #bee3f8; color: #2a4365; }
.badge-critical { background: #fed7d7; color: #742a2a; }
.badge-high { background: #feebc8; color: #744210; }
.badge-normal { background: #e2e8f0; color: #4a5568; }
.badge-primary { background: #bee3f8; color: #2a4365; }
.badge-secondary { background: #e2e8f0; color: #4a5568; }
.badge-related { background: #fefcbf; color: #744210; }
.badge-pending { background: #feebc8; color: #744210; }

/* === FORMS === */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(44,82,130,0.1);
}

select.form-control {
    appearance: auto;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { background: var(--bg); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* === FILTER BAR === */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-bar .form-group {
    margin-bottom: 0;
    min-width: 160px;
}

/* === CONCEPT DETAIL === */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary);
}

.detail-field {
    margin-bottom: 12px;
}

.detail-field .field-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-field .field-value {
    font-size: 14px;
    margin-top: 2px;
}

/* === TERM CARDS === */
.term-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg);
}

.term-card.forbidden {
    border-color: var(--danger);
    background: #fff5f5;
}

.term-card .term-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.term-card .term-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

/* === LOGIN === */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.login-box {
    background: #fff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 16px;
}

.login-box h1 {
    font-size: 28px;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.login-box .subtitle {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 32px;
}

.login-box .error {
    background: #fed7d7;
    color: #742a2a;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.login-box .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 8px;
}

/* === REVIEW FORM === */
.review-form {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
}

/* === TREE VIEW === */
.tree-item {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tree-item .indent {
    display: inline-block;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar { width: 0; overflow: hidden; }
    .main-content { margin-left: 0; padding: 16px; }
    .detail-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-bar { flex-direction: column; }
}

/* === FOOTER === */
.footer {
    margin-top: 48px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   V005 ADDITIONS — CRUD, Forms, Flash
   ======================================== */

/* FLASH MESSAGES */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.5s;
}
.flash-success { background: #c6f6d5; color: #22543d; border: 1px solid #9ae6b4; }
.flash-warning { background: #fefcbf; color: #744210; border: 1px solid #f6e05e; }
.flash-error   { background: #fed7d7; color: #742a2a; border: 1px solid #fc8181; }
.flash-close { cursor: pointer; font-size: 20px; line-height: 1; margin-left: 12px; }

/* FORM GRID (2-column layout for concept form) */
.form-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-top: 8px;
}
@media (max-width: 1024px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* FORM IMPROVEMENTS */
.form-row {
    display: flex;
    gap: 12px;
}
.form-row > .form-group { flex: 1; }

.form-row-compact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.form-row-compact > .form-group { flex: 1; min-width: 120px; }

.form-help {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    bottom: 16px;
    z-index: 10;
}

textarea.form-control {
    resize: vertical;
    min-height: 40px;
}

.required { color: var(--accent); }

.lang-badge {
    display: inline-block;
    padding: 1px 6px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* STATUS BAR */
.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* INLINE EDIT FORMS (inside details/summary) */
.inline-form-toggle > summary {
    cursor: pointer;
    list-style: none;
}
.inline-form-toggle > summary::-webkit-details-marker { display: none; }
.inline-form-toggle[open] > summary { margin-bottom: 8px; }

.inline-edit-form {
    padding: 12px;
    background: #f7fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-top: 6px;
}
.inline-edit-form .form-group { margin-bottom: 8px; }
.inline-edit-form label { font-size: 11px; }
.inline-edit-form .form-control { font-size: 13px; padding: 6px 8px; }

/* EXTRA BUTTON SIZES */
.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
}
.btn-lg {
    padding: 12px 32px;
    font-size: 16px;
}

/* TERM CARD */
.term-card .term-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

/* CLASSIFICATION ITEM */
.classification-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
}

/* MONO */
.mono { font-family: 'SF Mono', 'Fira Code', monospace; }

/* CONFIRM DELETE STYLE */
.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}
.btn-danger:hover { background: #c53030; }

.btn-success {
    background: var(--success);
    color: #fff;
    border: none;
}
.btn-success:hover { background: #2f855a; }

/* Badge improvements */
.badge-approved { background: #c6f6d5; color: #22543d; }
.badge-draft { background: #e2e8f0; color: #4a5568; }
.badge-in_review { background: #bee3f8; color: #2a4365; }
.badge-locked { background: #e9d8fd; color: #553c9a; }
.badge-not_started { background: #e2e8f0; color: #718096; }
.badge-preferred { background: #c6f6d5; color: #22543d; }
.badge-allowed { background: #bee3f8; color: #2a4365; }
.badge-forbidden { background: #fed7d7; color: #742a2a; }
.badge-primary { background: #bee3f8; color: #2a4365; }
.badge-secondary { background: #e2e8f0; color: #4a5568; }
.badge-related { background: #fefcbf; color: #744210; }
.badge-pending { background: #fefcbf; color: #744210; }
.badge-accepted { background: #c6f6d5; color: #22543d; }
.badge-rejected { background: #fed7d7; color: #742a2a; }
.badge-reopened { background: #fed7d7; color: #742a2a; }
.badge-warning { background: #fefcbf; color: #744210; }

/* ========================================
   V006 — Language Switcher, Tree, Import
   ======================================== */

/* LANGUAGE SWITCHER */
.lang-switcher {
    position: relative;
    margin: 8px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 8px;
}
.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #cbd5e0;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}
.lang-current:hover { background: rgba(255,255,255,0.08); }

.lang-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #2d3748;
    border-radius: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    max-height: 320px;
    overflow-y: auto;
    z-index: 200;
    padding: 4px;
}
.lang-switcher.open .lang-dropdown { display: block; }

.lang-dropdown a {
    display: block;
    padding: 6px 12px;
    color: #cbd5e0;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
}
.lang-dropdown a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.lang-dropdown a.active { background: var(--primary); color: #fff; font-weight: 600; }

/* TREE VIEW */
.tree-card { padding: 8px 0; }

.tree-node {
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.15s;
}
.tree-node:hover { background: #f0f4f8; }
.tree-node:last-child { border-bottom: none; }

.tree-node-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    padding-left: calc(16px + var(--depth, 0) * 28px);
}

.tree-indent {
    font-family: monospace;
    color: #cbd5e0;
    font-size: 13px;
    white-space: pre;
    user-select: none;
}
.tree-pipe { color: #e2e8f0; margin-right: 2px; }

.tree-icon { font-size: 16px; flex-shrink: 0; }

.tree-label {
    flex: 1;
    min-width: 0;
}
.tree-label strong {
    font-size: 14px;
    color: var(--text);
}
.tree-name-en {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 1px;
}

.tree-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.tree-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

/* Level-specific styling */
.tree-node.level-0 { background: #edf2f7; }
.tree-node.level-0 .tree-label strong { font-size: 15px; color: var(--primary); }
.tree-node.level-1 .tree-label strong { font-size: 14px; }

/* IMPORT CENTER */
input[type="file"].form-control {
    border: 2px dashed var(--border);
    background: #f7fafc;
    cursor: pointer;
}
input[type="file"].form-control:hover {
    border-color: var(--primary-light);
    background: #edf2f7;
}

/* LANGUAGE PAIR SELECTOR */
.langpair-selector {
    margin: 0 12px 4px;
    padding-bottom: 8px;
}
.langpair-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 4px;
}
.langpair-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.langpair-select {
    flex: 1;
    padding: 5px 4px;
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}
.langpair-select:focus { outline: none; border-color: var(--info); }
.langpair-select option { background: #2d3748; color: #e2e8f0; }
.langpair-arrow {
    color: #fc8181;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.langpair-btn {
    background: var(--primary-light);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.langpair-btn:hover { background: var(--info); }

/* SAVE DEFAULT BUTTON */
.langpair-save {
    background: #38a169;
    flex: 0 !important;
    padding: 4px 8px;
}
.langpair-save:hover { background: #2f855a; }

/* ========================================
   001-07 — Concept Images
   ======================================== */

/* Thumbnail in concept list */
.concept-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.concept-thumb-empty {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #edf2f7;
    border: 1px dashed #cbd5e0;
    flex-shrink: 0;
}

/* Image on concept detail */
.concept-image-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 4px;
}
.concept-image-wrap {
    padding: 12px 16px;
    text-align: center;
}
.concept-image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: max-height 0.3s;
}
.concept-image-preview.expanded {
    max-height: 600px;
}
.concept-image-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============ 001-08 ADDITIONS ============ */

/* Fix dropdown z-index (Bug C) */
.lang-switcher { position: relative; z-index: 100; }
.lang-dropdown { z-index: 1000; position: absolute; bottom: 100%; left: 0; right: 0;
    max-height: 320px; overflow-y: auto; }
.langpair-select { z-index: 10; }

/* Login marketing slogans */
.login-slogan { font-size: 13px; line-height: 1.5; color: #a0aec0; max-width: 500px; margin: 0 auto; }
.login-slogan-top { margin-bottom: 20px; padding: 12px 16px; background: rgba(255,255,255,0.04);
    border-radius: 8px; border-left: 3px solid #e53e3e; color: #e2e8f0; }
.login-slogan-bottom { margin-top: 20px; padding: 12px 16px; background: rgba(255,255,255,0.04);
    border-radius: 8px; border-left: 3px solid #48bb78; font-size: 12px; }

/* Login language switcher (Bug J) */
.login-lang-switcher { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.login-lang-switcher a { font-size: 11px; color: #718096; text-decoration: none; padding: 2px 6px;
    border-radius: 4px; transition: all 0.15s; }
.login-lang-switcher a:hover { color: #e2e8f0; background: rgba(255,255,255,0.1); }
.login-lang-switcher a.active { color: #90cdf4; font-weight: 600; }

/* Sidebar avatar */
.sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2); }

/* Profile avatar */
.avatar-section { display: flex; align-items: center; gap: 16px; padding: 16px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--border); }
.avatar-actions { display: flex; flex-direction: column; gap: 8px; }

/* Review cards (Ustalenie B) */
.review-card { padding: 16px; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.review-term-display { font-size: 18px; font-weight: 700; color: var(--accent); padding: 8px 0; }
.review-context-section { background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 6px; padding: 12px; margin-bottom: 12px; }

/* Footer description */
.footer-description { font-size: 12px; line-height: 1.5; color: #718096; max-width: 700px;
    margin: 0 auto 8px; text-align: center; }
.footer-meta { font-size: 11px; color: #a0aec0; text-align: center; }

/* Inactive user row */
.inactive-row { opacity: 0.5; }
.inactive-row:hover { opacity: 0.8; }

/* Admin link in sidebar */
.sidebar-nav .sidebar-section { margin-top: 16px; }

/* Fix sidebar user section overlap */
.sidebar-user { margin-top: auto; padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.sidebar-nav { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.sidebar { display: flex; flex-direction: column; }

/* Login page - darker marketing slogans */
.login-slogan-top { color: #2d3748; }
.login-slogan-bottom { color: #4a5568; }

/* ============ TREE CARDS (Fields of Expertise, Knowledge Areas) ============ */
.tree-container { display: flex; flex-direction: column; gap: 8px; }
.tree-card { border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); overflow: hidden; }
.tree-root { border-left: 4px solid var(--accent); }
.tree-root > .tree-card-header { background: linear-gradient(135deg, rgba(66,153,225,0.06), rgba(66,153,225,0.02)); }
.tree-card-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; transition: background 0.15s; flex-wrap: wrap; }
.tree-card-header:hover { background: rgba(0,0,0,0.02); }
.tree-expand-icon { font-size: 12px; color: #718096; transition: transform 0.2s; width: 16px; }
.tree-card.expanded > .tree-card-header .tree-expand-icon { transform: rotate(90deg); }
.tree-card-title { flex: 1; min-width: 200px; }
.tree-card-title strong { font-size: 15px; display: block; }
.tree-card-subtitle { font-size: 13px; color: #718096; }
.tree-card-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tree-card-actions { display: flex; gap: 8px; align-items: center; }
.tree-children { display: none; padding: 0 0 8px 32px; }
.tree-card.expanded > .tree-children { display: block; }
.tree-child { margin: 4px 8px 4px 0; border-left: 3px solid #e2e8f0; }
.tree-child .tree-card-header { padding: 10px 14px; cursor: default; }

/* ============ 001-09 FIXES ============ */

/* Fix #3: Login slogans - darker text on white background */
.login-slogan-top {
    color: #2d3748 !important;
    background: rgba(229, 62, 62, 0.06) !important;
    border-left: 3px solid #e53e3e;
    font-weight: 500;
}
.login-slogan-bottom {
    color: #4a5568 !important;
    background: rgba(72, 187, 120, 0.06) !important;
    border-left: 3px solid #48bb78;
}

/* Fix #4: Sidebar user section must not overlap navigation */
.sidebar {
    display: flex !important;
    flex-direction: column !important;
}
.sidebar-logo { flex-shrink: 0; }
.langpair-selector { flex-shrink: 0; }
.lang-switcher { flex-shrink: 0; }
.sidebar-nav {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0;
    padding-bottom: 8px !important;
}
.sidebar-user {
    position: relative !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    padding: 12px 16px !important;
}

/* Fix #9: Delete buttons - NOT on red background, with space from edit */
.btn-delete-safe {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #e53e3e;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 12px;
}
.btn-delete-safe:hover {
    background: #fff5f5;
    border-color: #fc8181;
}

/* Fix #5/6: Review Queue - big action buttons */
.review-action-buttons {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.review-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.review-action-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.review-action-btn.action-correct { border-color: #48bb78; color: #22543d; }
.review-action-btn.action-correct:hover { background: #f0fff4; }
.review-action-btn.action-correct.selected { background: #c6f6d5; border-color: #38a169; }
.review-action-btn.action-fix { border-color: #4299e1; color: #2a4365; }
.review-action-btn.action-fix:hover { background: #ebf8ff; }
.review-action-btn.action-fix.selected { background: #bee3f8; border-color: #3182ce; }
.review-action-btn.action-wrong { border-color: #fc8181; color: #742a2a; }
.review-action-btn.action-wrong:hover { background: #fff5f5; }
.review-action-btn.action-wrong.selected { background: #fed7d7; border-color: #e53e3e; }
.review-action-btn .action-icon { font-size: 24px; }
.review-action-btn .action-label { font-size: 12px; font-weight: 400; color: #718096; }

/* Review - source/target display */
.review-lang-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.review-lang-col { }
.review-lang-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.review-lang-term {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.review-lang-missing {
    color: var(--text-muted);
    font-style: italic;
}

/* Fix #11: Dashboard reviewer prompt */
.reviewer-prompt {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(66,153,225,0.08), rgba(66,153,225,0.02));
    border: 1px solid #bee3f8;
    border-left: 4px solid #4299e1;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text);
}
.reviewer-prompt a {
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: underline;
}
.reviewer-prompt .prompt-count {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    display: inline;
}

/* Review filter bar */
.review-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 13px;
}
.review-filter-bar label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 500;
}
