/**
 * Accident Database Styles
 * Red theme (#F44336)
 *
 * Part 1: Floating Panel (simulator) — mirrors AI Chat pattern
 * Part 2: Detail Modal (shared)
 * Part 3: Management Page (accident-db.html)
 */

/* ═══════════════════════════════════════════════════════════════
   Part 1: Floating Panel (Simulator)
   ═══════════════════════════════════════════════════════════════ */

/* Toggle Button — fixed, bottom-left */
#accidentDbToggle {
    position: fixed;
    bottom: 114px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
    z-index: var(--z-toggle);
    transition: transform 0.3s, box-shadow 0.3s;
}

#accidentDbToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

/* Floating Panel */
#accidentPanel {
    position: fixed;
    bottom: 174px;
    right: 24px;
    width: 300px;
    max-height: 450px;
    background: rgba(26, 26, 46, 0.98);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: flex;
    flex-direction: column;
    z-index: var(--z-floating);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    box-sizing: border-box;
    overflow: hidden;
}

#accidentPanel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Panel Header */
.adb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.adb-header h4 {
    margin: 0;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.adb-header h4::before {
    content: '\1F6A8 ';
}

.adb-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    box-shadow: none;
}

/* Panel Content */
.adb-content {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Stats summary */
.adb-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.adb-stat {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.adb-stat b {
    color: #fff;
}

.adb-stat.verified b {
    color: var(--color-primary);
}

.adb-stat.unverified b {
    color: var(--color-danger);
}

/* Tabs */
.adb-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.adb-tab {
    flex: 1;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 10px;
    text-align: center;
    transition: all 0.2s;
}

.adb-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.adb-tab.active {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
    color: var(--color-danger);
    font-weight: 600;
}

/* Tab content */
.adb-tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    flex-direction: column;
}

.adb-tab-content.active {
    display: flex;
}

/* List area */
.adb-list {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 67, 54, 0.3) transparent;
}

.adb-list::-webkit-scrollbar {
    width: 4px;
}

.adb-list::-webkit-scrollbar-thumb {
    background: rgba(244, 67, 54, 0.3);
    border-radius: 2px;
}

/* List items */
.adb-item {
    padding: 6px;
    margin-bottom: 3px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 2px solid transparent;
}

.adb-item:hover {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #F44336;
}

.adb-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.adb-item-id {
    color: rgba(255, 255, 255, 0.4);
    font-size: 9px;
    font-family: 'Consolas', monospace;
}

.adb-item-source {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.adb-item-source.traffic {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-danger);
}

.adb-item-source.road_border {
    background: rgba(255, 152, 0, 0.2);
    color: var(--color-warning);
}

.adb-item-source.zero_speed {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.adb-item-verified {
    margin-left: auto;
    font-size: 10px;
}

.adb-item-verified.yes {
    color: var(--color-primary);
}

.adb-item-verified.no {
    color: rgba(255, 255, 255, 0.2);
}

.adb-item-name {
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adb-item-result {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: auto;
}

.adb-item-result.pass {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-primary);
}

.adb-item-result.fail {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-danger);
}

.adb-item-result.none {
    color: rgba(255, 255, 255, 0.3);
}

.adb-item-detail {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
}

.adb-item-time {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 2px;
}

/* Refresh button */
.adb-refresh {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.adb-refresh:hover {
    border-color: #F44336;
    color: var(--color-danger);
}

.adb-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding: 20px;
    font-size: 10px;
}

.adb-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

.adb-error {
    color: var(--color-danger);
    padding: 10px;
    font-size: 10px;
}


/* ═══════════════════════════════════════════════════════════════
   Part 2: Detail Modal (shared between simulator & page)
   ═══════════════════════════════════════════════════════════════ */

#accidentDetailModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: var(--z-modal-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
}

#accidentDetailModal.hidden {
    display: none;
}

.adb-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px;
    font-family: 'Segoe UI', sans-serif;
}

.adb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.adb-modal-header h3 {
    margin: 0;
    color: var(--color-danger);
    font-size: 14px;
}

.adb-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
}

.adb-modal-close:hover {
    color: #fff;
}

/* Detail grid */
.adb-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adb-detail-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 10px;
}

.adb-detail-section h5 {
    margin: 0 0 8px;
    color: var(--color-danger);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adb-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
}

.adb-detail-row span:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.adb-detail-row span:last-child {
    color: #fff;
    font-family: 'Consolas', monospace;
    font-size: 10px;
}

.adb-detail-notes {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
    margin-top: 4px;
}

.adb-pass {
    color: var(--color-primary);
    font-weight: 600;
}

.adb-fail {
    color: var(--color-danger);
    font-weight: 600;
}

/* Code block */
.adb-code {
    font-family: 'Consolas', monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 6px;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}

/* Action buttons (shared) */
.adb-detail-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.adb-btn {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.15s;
}

.adb-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.adb-btn-replay {
    border-color: rgba(33, 150, 243, 0.5);
    color: var(--color-info);
}

.adb-btn-replay:hover {
    background: rgba(33, 150, 243, 0.2);
}

.adb-btn-mark {
    border-color: rgba(76, 175, 80, 0.5);
    color: var(--color-primary);
}

.adb-btn-mark:hover {
    background: rgba(76, 175, 80, 0.2);
}

.adb-btn-mark.verified {
    border-color: rgba(255, 152, 0, 0.5);
    color: var(--color-warning);
}

.adb-btn-generate {
    border-color: rgba(156, 39, 176, 0.5);
    color: var(--color-purple);
}

.adb-btn-generate:hover {
    background: rgba(156, 39, 176, 0.2);
}

.adb-btn-run {
    border-color: rgba(33, 150, 243, 0.5);
    color: var(--color-info);
}

.adb-btn-run:hover {
    background: rgba(33, 150, 243, 0.2);
}

.adb-btn-toggle {
    border-color: rgba(255, 152, 0, 0.5);
    color: var(--color-warning);
}

.adb-btn-toggle:hover {
    background: rgba(255, 152, 0, 0.2);
}

.adb-btn-delete {
    border-color: rgba(244, 67, 54, 0.3);
    color: rgba(244, 67, 54, 0.7);
}

.adb-btn-delete:hover {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-danger);
}


/* ═══════════════════════════════════════════════════════════════
   Part 3: Management Page (accident-db.html)
   ═══════════════════════════════════════════════════════════════ */

body.adb-page {
    margin: 0;
    padding: 0;
    background: #0d0d1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page Header */
.adb-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid #F44336;
    flex-shrink: 0;
}

.adb-page-header-left h1 {
    margin: 0;
    font-size: 20px;
    color: var(--color-danger);
    font-weight: 700;
}

.adb-page-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.adb-page-header-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.adb-page-btn {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.adb-page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.adb-page-btn-back {
    border-color: rgba(244, 67, 54, 0.5);
    color: var(--color-danger);
}

.adb-page-btn-back:hover {
    background: rgba(244, 67, 54, 0.15);
}

/* Stats Cards */
.adb-page-stats {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    flex-shrink: 0;
}

.adb-page-stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s;
}

.adb-page-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.adb-page-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.adb-page-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adb-page-stat-card.verified .adb-page-stat-value { color: #4CAF50; }
.adb-page-stat-card.verified { border-color: rgba(76, 175, 80, 0.2); }
.adb-page-stat-card.unverified .adb-page-stat-value { color: #F44336; }
.adb-page-stat-card.unverified { border-color: rgba(244, 67, 54, 0.2); }
.adb-page-stat-card.sources .adb-page-stat-value { color: #FF9800; }
.adb-page-stat-card.sources { border-color: rgba(255, 152, 0, 0.2); }

/* Main Content */
.adb-page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 24px 24px;
    overflow: hidden;
    min-height: 0;
}

/* Tabs */
.adb-page-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.adb-page-tab {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px 6px 0 0;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.adb-page-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.adb-page-tab.active {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.4);
    color: var(--color-danger);
    font-weight: 600;
}

/* Content area */
.adb-page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 8px 8px 8px;
    overflow: hidden;
    min-height: 0;
}

/* Filters */
.adb-page-filters {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.adb-page-filters.hidden {
    display: none;
}

.adb-page-filters select {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
}

.adb-page-filters select:focus {
    outline: none;
    border-color: #F44336;
}

/* Split layout: table + detail */
.adb-page-split {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

.adb-page-table-area {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 67, 54, 0.2) transparent;
}

.adb-page-table-area::-webkit-scrollbar {
    width: 6px;
}

.adb-page-table-area::-webkit-scrollbar-thumb {
    background: rgba(244, 67, 54, 0.2);
    border-radius: 3px;
}

/* Tab content (page) */
.adb-page-tab-content {
    display: none;
}

.adb-page-tab-content.active {
    display: block;
}

/* Table */
.adb-page-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.adb-page-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.adb-page-table th {
    background: rgba(26, 26, 46, 0.95);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    white-space: nowrap;
}

.adb-page-table th[data-sort]:hover {
    color: var(--color-danger);
}

.adb-page-table th.sort-asc::after {
    content: ' \25B2';
    font-size: 9px;
}

.adb-page-table th.sort-desc::after {
    content: ' \25BC';
    font-size: 9px;
}

.adb-page-table td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e0e0e0;
    vertical-align: middle;
}

.adb-page-row {
    cursor: pointer;
    transition: background 0.15s;
}

.adb-page-row:hover {
    background: rgba(244, 67, 54, 0.08);
}

.adb-page-row.selected {
    background: rgba(244, 67, 54, 0.15);
    border-left: 3px solid #F44336;
}

td.mono {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
}

/* Source badges */
.adb-source-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.adb-source-badge.traffic {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-danger);
}

.adb-source-badge.road_border {
    background: rgba(255, 152, 0, 0.2);
    color: var(--color-warning);
}

.adb-source-badge.zero_speed {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.adb-source-badge.unknown {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Verified badge */
.adb-verified-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.adb-verified-badge.yes {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-primary);
}

.adb-verified-badge.no {
    background: rgba(244, 67, 54, 0.1);
    color: rgba(244, 67, 54, 0.6);
}

/* Result badge */
.adb-result-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.adb-result-badge.pass {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-primary);
}

.adb-result-badge.fail {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-danger);
}

/* Tags */
.adb-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 2px;
}

/* Enabled/Disabled */
.adb-enabled {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 11px;
}

.adb-disabled {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

/* Empty state */
.adb-page-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding: 40px;
    font-size: 14px;
}

.adb-page-empty.hidden {
    display: none;
}

/* Detail Side Panel */
.adb-page-detail {
    width: 360px;
    min-width: 360px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 67, 54, 0.2) transparent;
}

.adb-page-detail::-webkit-scrollbar {
    width: 6px;
}

.adb-page-detail::-webkit-scrollbar-thumb {
    background: rgba(244, 67, 54, 0.2);
    border-radius: 3px;
}

.adb-page-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

.adb-page-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: rgba(255, 255, 255, 0.5);
}

.adb-page-detail-error {
    color: var(--color-danger);
    padding: 16px;
    font-size: 12px;
}

.adb-page-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: rgba(13, 13, 26, 0.95);
    z-index: 1;
}

.adb-page-detail-header h3 {
    margin: 0;
    color: var(--color-danger);
    font-size: 14px;
}

.adb-page-detail-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 20px;
    padding: 0;
}

.adb-page-detail-close:hover {
    color: #fff;
}

.adb-page-detail-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adb-page-detail-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 10px;
}

.adb-page-detail-section h5 {
    margin: 0 0 8px;
    color: var(--color-danger);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adb-page-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
}

.adb-page-detail-row span:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.adb-page-detail-row span:last-child {
    color: #fff;
    font-family: 'Consolas', monospace;
    font-size: 10px;
}

.adb-page-detail-notes {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
    margin-top: 4px;
}

.adb-page-code {
    font-family: 'Consolas', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 8px;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

.adb-page-detail-actions {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
    .adb-page-stats {
        flex-wrap: wrap;
    }
    .adb-page-stat-card {
        min-width: calc(50% - 12px);
    }
    .adb-page-split {
        flex-direction: column;
    }
    .adb-page-detail {
        width: 100%;
        min-width: 0;
        max-height: 40vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}
