: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; }

/* Ensure modals appear above everything */
.modal {
    z-index: 1060 !important;
}
.modal-backdrop {
    z-index: 1055 !important;
}
.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;
}

.gist-bg{
    background-color:rgba(0,0,0,0.5);
}

.gist .markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.gist code{
    color: #c8d3f5;
}

/* Markdown rendering (used across Forge: docs panel, gists, reports) */
.markdown-body {
    line-height: 1.6;
}

.markdown-body table {
    display: block;              /* allow horizontal scroll when needed */
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0.75rem 0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.75rem;
    vertical-align: top;
}

.markdown-body thead th {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.markdown-body tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.markdown-body hr {
    border-color: rgba(255, 255, 255, 0.12);
}

/* 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);
}

/* Sentry-style error tracking UI */
.sentry-issues-table-scroll {
    max-height: min(70vh, 720px);
    overflow-y: auto;
}

.sentry-event-nav-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.sentry-event-detail-card .card-body {
    min-height: min(65vh, 640px);
}

.sentry-event-detail-card .sentry-detail-tab-content {
    min-height: 480px;
}

.sentry-issues-table tr.sentry-issue-row {
    cursor: pointer;
}

.sentry-issues-table tr.sentry-issue-row:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.sentry-issues-table th {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
}

.error-issue-inline-select {
    width: 7.5rem;
}

.error-issue-inline-input {
    width: 9rem;
}

.sentry-events-list-scroll {
    max-height: 640px;
    overflow-y: auto;
}

.sentry-events-table tr.sentry-event-row {
    cursor: pointer;
}

.sentry-events-table tr.sentry-event-row:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.sentry-level-badge.sentry-level-error {
    background: #e5484d;
    color: #fff;
}

.sentry-level-badge.sentry-level-warning {
    background: #f5a524;
    color: #1a1200;
}

.sentry-level-badge.sentry-level-info {
    background: #3b82f6;
    color: #fff;
}

.sentry-level-badge.sentry-level-default {
    background: #6b7280;
    color: #fff;
}

.sentry-event-detail-card {
    min-height: 480px;
}

.sentry-meta-chips .badge {
    font-weight: 500;
    font-size: 0.7rem;
}

.sentry-detail-tab-content {
    min-height: 280px;
}

.sentry-stack-trace {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.sentry-stack-frame {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.sentry-stack-frame:last-child {
    border-bottom: none;
}

.sentry-stack-frame-inapp {
    background: rgba(59, 130, 246, 0.12);
    border-left: 3px solid #3b82f6;
}

.sentry-stack-fn {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
}

.sentry-breadcrumbs {
    max-height: 360px;
    overflow-y: auto;
}

.sentry-breadcrumb {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sentry-breadcrumb:last-child {
    border-bottom: none;
}

.sentry-crumb-data {
    margin-top: 0.35rem;
    padding: 0.35rem 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-word;
}

.sentry-kv-table th {
    width: 28%;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    vertical-align: top;
    padding-right: 0.75rem;
}

.sentry-kv-table td {
    word-break: break-word;
}

.sentry-raw-json {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    background: #0b0f19;
    color: #c8d3f5;
    padding: 12px;
    border-radius: 6px;
    max-height: 480px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.sentry-exception-chain-item {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* Project activity — daily stakeholder reports */
.report-day-today {
    border-color: rgba(var(--bs-theme-rgb, 63, 203, 178), 0.4);
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
    gap: 0.5rem;
}

/* Dashboard “at a glance” — wider tiles, labels may wrap */
#tab-dashboard #dashWeekKpis.report-kpi-grid {
    grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
}

@media (min-width: 992px) {
    #tab-dashboard #dashWeekKpis.report-kpi-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.report-attention {
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-attention-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.85rem;
}

.report-attention-item {
    margin-bottom: 0.25rem;
}

.report-attention-item:last-child {
    margin-bottom: 0;
}

.report-attention-danger {
    color: var(--bs-danger, #ff6060);
}

.report-attention-warning {
    color: var(--bs-warning, #ff9f0c);
}

.report-attention-info {
    color: var(--bs-info, #5bc0de);
    opacity: 0.9;
}

.report-kpi-grid > .report-kpi {
    min-width: 0;
}

.report-kpi {
    text-align: center;
    padding: 0.5rem 0.35rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.report-kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.report-kpi-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.6;
    margin-top: 0.15rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.report-kpi-ok .report-kpi-value { color: var(--bs-success, #3cd2a5); }
.report-kpi-warn .report-kpi-value { color: var(--bs-warning, #ff9f0c); }
.report-kpi-danger .report-kpi-value { color: var(--bs-danger, #ff6060); }

/* Project dashboard — weekly velocity mini chart */
.dash-velocity-chart {
    min-height: 5.5rem;
}

.dash-velocity-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 5rem;
    padding-top: 0.25rem;
}

.dash-velocity-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.dash-velocity-bar {
    width: 100%;
    max-width: 2rem;
    margin-top: auto;
    border-radius: 0.25rem 0.25rem 0 0;
    background: rgba(var(--bs-theme-rgb, 63, 203, 178), 0.65);
    transition: height 0.2s ease;
}

.dash-velocity-bar-label {
    font-size: 0.6rem;
    opacity: 0.55;
    margin-top: 0.25rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.standup-cadence-bar {
    background: rgba(var(--bs-theme-rgb, 63, 203, 178), 0.06);
}

.standup-cadence-chip {
    font-weight: 500;
}

.standup-assignee-card:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#tab-standup #standupTeamBoard {
    overflow-x: hidden;
    overflow-y: visible;
    max-height: none;
}

.standup-date-nav .form-control {
    min-width: 9.5rem;
}

#tab-standup .standup-presenter-nav,
#standupContent .standup-presenter-nav {
    position: sticky;
    top: 56px;
    z-index: 1025;
    scroll-margin-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.85rem 1.25rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(var(--bs-theme-rgb, 63, 203, 178), 0.45);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(var(--bs-theme-rgb, 63, 203, 178), 0.12) 100%);
    box-shadow: 0 0 24px rgba(var(--bs-theme-rgb, 63, 203, 178), 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.standup-presenter-nav-center {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.standup-presenter-nav-index {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bs-theme, #3fcbb2);
    opacity: 0.9;
}

.standup-presenter-nav-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(var(--bs-theme-rgb, 63, 203, 178), 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.standup-presenter-nav-btn {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(var(--bs-theme-rgb, 63, 203, 178), 0.5);
    background: rgba(0, 0, 0, 0.35);
    color: var(--bs-theme, #3fcbb2);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.standup-presenter-nav-btn:hover:not(:disabled) {
    background: rgba(var(--bs-theme-rgb, 63, 203, 178), 0.2);
    border-color: var(--bs-theme, #3fcbb2);
}

.standup-presenter-nav-btn:disabled {
    opacity: 0.35;
}

.standup-presenter-nav--live {
    border-color: rgba(var(--bs-theme-rgb, 63, 203, 178), 0.65);
    box-shadow: 0 0 28px rgba(var(--bs-theme-rgb, 63, 203, 178), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.standup-start-btn {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(var(--bs-theme-rgb, 63, 203, 178), 0.25);
}

.standup-presenter-active-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#standupPresenterProgress.text-warning {
    font-weight: 600;
}

.standup-team-stack {
    overflow-x: hidden;
}

.standup-member-board {
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.standup-member-board.standup-member-dimmed {
    opacity: 0.28;
    filter: grayscale(0.4) saturate(0.6);
    pointer-events: none;
    user-select: none;
}

.standup-member-board.standup-member-active {
    opacity: 1;
    filter: none;
    pointer-events: auto;
    scroll-margin-top: calc(56px + 7.5rem);
}

.standup-member-board.standup-member-active .standup-member-board-title {
    color: var(--bs-theme, #3fcbb2);
}

.standup-member-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    overflow-x: hidden;
}

@media (max-width: 1199.98px) {
    .standup-member-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .standup-member-cols {
        grid-template-columns: 1fr;
    }
}

.standup-member-col {
    min-width: 0;
}

.standup-notes-col .standup-member-notes {
    min-height: 8rem;
    resize: vertical;
    font-size: 0.85rem;
}

.standup-plan-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
}

.standup-plan-open-btn i {
    font-size: 1.1rem;
    line-height: 1;
}

.standup-assign-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: transparent;
}

.standup-assign-popup {
    position: fixed;
    z-index: 1060;
    width: min(320px, calc(100vw - 16px));
}

.standup-assign-popup-inner {
    background: var(--bs-body-bg, #1a1d24);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    padding: 0.75rem;
}

.standup-assign-popup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.standup-assign-member-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.375rem;
    padding: 0.35rem 0.5rem;
}

.standup-assign-member-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    margin: 0;
    cursor: pointer;
    font-size: 0.875rem;
}

.standup-assign-btn {
    opacity: 0.55;
    line-height: 1;
}

.standup-work-item:hover .standup-assign-btn,
.standup-assign-btn:hover {
    opacity: 1;
}

.standup-assign-when-btns .btn {
    flex: 1 1 0;
    font-size: 0.75rem;
    padding: 0.25rem 0.15rem;
}

.standup-plan-search-row .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
}

.standup-toast-container {
    z-index: 1090;
}

.standup-project-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.standup-project-nav-chips .standup-project-chip {
    border-radius: 2rem;
    border: 1px solid rgba(var(--bs-theme-rgb, 63, 203, 178), 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    font-weight: 500;
}

.standup-project-nav-chips .standup-project-chip--active,
.standup-project-nav-chips .standup-project-chip:hover {
    background: rgba(var(--bs-theme-rgb, 63, 203, 178), 0.2);
    border-color: var(--bs-theme, #3fcbb2);
    color: var(--bs-theme, #3fcbb2);
}

.standup-project-lanes {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.standup-project-lane {
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0.6rem;
}

.standup-project-lane-head {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.8;
    margin-bottom: 0.4rem;
}

.standup-member-cols--global .standup-member-col {
    min-width: 0;
}

.report-work-col-overdue {
    background: rgba(255, 96, 96, 0.1);
    border: 1px solid rgba(255, 96, 96, 0.28);
}

.report-work-col-overdue .report-work-col-head {
    color: var(--bs-danger, #ff6060);
}

#tab-standup .standup-member-board .report-section-title {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.report-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
    margin-bottom: 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
}

.report-highlight-cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.report-highlight-list {
    padding-left: 1.1rem;
    font-size: 0.875rem;
}

.report-highlight-list li {
    margin-bottom: 0.2rem;
}

.report-highlight-scope {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.85;
    padding-left: 0.35rem;
    border-left: 2px solid rgba(36, 157, 121, 0.55);
}

.release-notes-scope {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
    padding-left: 0.35rem;
    border-left: 2px solid rgba(36, 157, 121, 0.55);
}

.release-notes-scope-label {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.report-work-col {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    min-height: 4rem;
    height: 100%;
}

.report-work-col-head {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.report-work-item {
    margin-bottom: 0.45rem;
    list-style: none;
    padding-left: 0;
}

.report-work-title {
    font-size: 0.85rem;
    font-weight: 500;
}

.report-work-link {
    color: inherit;
    text-decoration: none;
}

.report-work-link:hover {
    color: var(--bs-theme, #3fcbb2);
}

.report-work-meta {
    font-size: 0.75rem;
    opacity: 0.55;
}

.report-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.65rem;
}

.report-team-member {
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.report-issue-list,
.report-build-list {
    padding-left: 1.1rem;
    font-size: 0.85rem;
}

.report-issue-list li,
.report-build-list li {
    margin-bottom: 0.35rem;
}