:root {
    --bg-main: #f4f7fb;
    --bg-sidebar: #141b24;
    --bg-sidebar-active: #263242;
    --text-light: #e8edf6;
    --text-dark: #1f2730;
    --accent: #ff7e2d;
    --accent-soft: #ffe9d9;
    --line-soft: #dbe3ee;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-image: url("../images/deltalyth-bg-pattern.svg");
    background-position: center top;
    background-size: cover;
}

.login-bg {
    background: linear-gradient(140deg, #10161e 0%, #1f2a36 54%, #314253 100%);
}

.login-card {
    width: min(100%, 430px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 32px rgba(14, 23, 36, 0.18);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.login-brand-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.login-brand-wordmark {
    width: 150px;
    height: auto;
    display: block;
}

.login-card .alert-info {
    background-color: var(--accent-soft);
    border-color: #ffd0b0;
    color: #8f3c09;
}

.alert-info {
    background-color: #ffe9d9;
    border-color: #ffd0b0;
    color: #8f3c09;
}

.sidebar {
    background: linear-gradient(170deg, #121922 0%, #1a2430 100%);
    color: var(--text-light);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-logo {
    width: 34px;
    height: 34px;
}

.sidebar-wordmark {
    width: 148px;
    height: auto;
}

.sidebar-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffbf93;
}

.sidebar-user-meta {
    color: #d2dceb;
}

.sidebar .nav-link {
    color: var(--text-light);
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--bg-sidebar-active);
    border-color: rgba(255, 163, 108, 0.3);
    color: #fff;
}

.content-area {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.82));
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #e0691f !important;
    border-color: #e0691f !important;
}

.btn-outline-primary {
    border-color: #e07c39;
    color: #cf6720;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #e07c39;
    border-color: #e07c39;
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: #d86f2b !important;
    border-color: #d86f2b !important;
    color: #fff !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active:focus,
.btn-check:focus + .btn-outline-primary {
    box-shadow: 0 0 0 0.25rem rgba(255, 126, 45, 0.25) !important;
}

.border-primary {
    border-color: #ff9a5c !important;
}

.card,
.table,
.accordion-item {
    border-color: var(--line-soft);
}

.max-w-560 {
    max-width: 560px;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-200 {
    max-width: 200px;
}

.max-w-170 {
    max-width: 170px;
}

.analysis-spinner-lg {
    width: 3rem;
    height: 3rem;
}

.analysis-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-overlay-content {
    min-width: 220px;
}

.metadata-scroll-320 {
    max-height: 320px;
    overflow: auto;
}

.metadata-scroll-240 {
    max-height: 240px;
    overflow: auto;
}

.metadata-scroll-220 {
    max-height: 220px;
    overflow: auto;
}

.preview-frame-min-70vh {
    min-height: 70vh;
}

.gps-map-embed {
    width: 320px;
    max-width: 100%;
    height: 180px;
}

.pdf-scroll-pane {
    height: 78vh;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #f8f9fa;
    padding: 0.5rem;
}

.pdf-page-wrap {
    position: relative;
    background: #fff;
    margin: 0 auto 0.75rem;
    width: fit-content;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.hex-viewer-body {
    background: #f8fafc;
}

.pane-box {
    border: 1px solid #cbd5e1;
    border-radius: 0.4rem;
    background: #fff;
    height: 78vh;
    overflow: auto;
}

.code-block {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

#dropZone {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#dropZone::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/deltalyth-icon.svg") no-repeat center;
    background-size: 180px;
    opacity: 0.11;
    pointer-events: none;
    z-index: 0;
}

#dropZone > * {
    position: relative;
    z-index: 1;
}

#hexPane {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    resize: none;
    padding: 0.75rem;
    background: #fff;
}

.accordion-item.compression-anomaly {
    border-color: #dc2626;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.accordion-item.compression-anomaly .accordion-button {
    background: rgba(220, 38, 38, 0.10);
}

.accordion-item.incremental-suspect {
    border-color: #b45309;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.35);
}

.accordion-item.incremental-suspect .accordion-button {
    background: rgba(245, 158, 11, 0.14);
}

.accordion-item.cmap-anomaly {
    border-color: #7c3aed;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.35);
}

.accordion-item.cmap-anomaly .accordion-button {
    background: rgba(124, 58, 237, 0.12);
}

