:root {
    --bs-body-bg-cover: url("images/cover-dark.jpg") !important;
}

html:after {
    background-color: var(--bs-body-bg);
    background-image: var(--bs-body-bg-gradient);
    background-image: var(--bs-body-bg-cover);
}

.app-header .brand{
    width:auto;
}

.app-header .brand .brand-logo {
    font-size: 1.2rem;
    font-weight: 400;
}

select optgroup {
    color: black;
}

.log-box {
    white-space: pre;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #0b0f19;
    color: #c8d3f5;
    padding: 12px;
    border-radius: 6px;
    height: 75vh;
    overflow: auto;
    text-wrap: wrap;
}

.notification-badge{
    width:19px;
    height:19px;
    line-height: 19px;
    color:white;
    border-radius: 100%;
    font-size: 10px;
    text-align: center;
    font-weight: bold;
    left:120% !important;
}

/* Docs Panel */
.docs-panel{
    position: fixed;
    top: 56px; /* below header */
    right: 0;
    bottom: 0;
    width: min(520px, 80vw);
    background: rgba(18,22,33,0.98);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -8px 0 16px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform .2s ease-in-out;
    z-index: 1040;
    overflow: auto;
}
.docs-panel.open{ transform: translateX(0); }
.docs-header{ border-bottom: 1px solid rgba(255,255,255,0.08); }
.docs-content{ font-size: 0.95rem; line-height: 1.6; }
.docs-content img{ max-width: 100%; height: auto; border-radius: 4px; }
.docs-content video{ max-width: 100%; border-radius: 4px; }
.docs-content pre{ background: #0b0f19; color: #c8d3f5; padding: 10px; border-radius: 6px; overflow: auto; }
.docs-content code{ background: rgba(255,255,255,0.06); padding: 2px 4px; border-radius: 4px; }
.docs-content h1,.docs-content h2{ border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 6px; margin-top: 1rem; }

/* Shift content/footer when docs panel is open */
#app.docs-open .app-content{ margin-right: min(520px, 80vw); }
#app.docs-open .app-footer{ margin-right: min(520px, 80vw); }

.nav-link{
    color: #c8d3f5;
}
.nav-link:hover{
    color: #d8e3f5;
}

.milkdown {
    --crepe-color-background: #1b1c1d66 !important;
}

.milkdown .ProseMirror h1 {
    font-size: 42px !important;
    line-height: 48px !important;
    margin-top: 32px;
}

.crm-interaction-received{
    background: #000b8f09 !important;
    padding-top:20px !important;
}

.crm-interaction-sent{
    color:rgba(255,255,255,0.5) !important;
    padding-top:20px !important;
}

/* Audit: HTTP forbidden / not-found rows (visible on dark backgrounds) */
tr.audit-row-forbidden > td {
    background-color: rgba(180, 35, 35, 0.48) !important;
    box-shadow: inset 4px 0 0 rgba(255, 95, 95, 0.98);
}
tr.audit-row-notfound > td {
    background-color: rgba(175, 120, 0, 0.42) !important;
    box-shadow: inset 4px 0 0 rgba(255, 210, 70, 0.98);
}