body {
    background: radial-gradient(circle at top left, #f3f4ff 0, #f9fafb 40%, #f4f6f9 100%);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

a { text-decoration: none; color: #2563eb; }
a:hover { color: #1d4ed8; }

.app-header {
    background: transparent;
    padding: 1.75rem 0 1rem;
}

.app-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-shell {
    max-width: 1120px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.app-card {
    border-radius: 1.2rem !important;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.card-body { padding: 1.6rem 1.9rem !important; }
.card-title { font-weight: 600; }

.feature-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-item { display: flex; align-items: flex-start; gap: 0.9rem; }
.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.metric-card .card-body,
.metric-box {
    background: linear-gradient(180deg, rgba(248,250,252,0.9), rgba(255,255,255,1));
    border-radius: 1rem;
}
.metric-box {
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1rem 1rem 0.85rem;
    height: 100%;
}
.metric-label {
    color: #64748b;
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
}
.metric-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.empty-state {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: #64748b;
}
.empty-state i {
    font-size: 3rem;
    color: #6366f1;
}

.category-section + .category-section {
    border-top: 1px dashed #dbe3ef;
    padding-top: 1rem;
}

table.table {
    background: transparent;
    border-radius: 0.9rem;
    overflow: hidden;
    margin-bottom: 0;
}

table.table th {
    background: #f9fafb;
    font-weight: 600;
    padding: 10px !important;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

table.table td {
    padding: 10px !important;
    vertical-align: top;
    font-size: 0.92rem;
    border-top: 1px solid #edf0f4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

table.table tbody tr:nth-child(odd) { background: #ffffff; }
table.table tbody tr:nth-child(even) { background: #f9fafb; }
table.table tbody tr:hover { background: #eef2ff; }

input[type="text"], input[type="password"], .form-select {
    border-radius: 0.85rem !important;
    border-color: #d1d5db;
}
.input-group-text {
    border-radius: 0.85rem 0 0 0.85rem !important;
    background: #f3f4f6;
    border-color: #d1d5db;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
}

.status-pill-ok, .status-badge-ok { background-color: #dcfce7 !important; color: #166534 !important; font-weight: 600; }
.status-pill-warning, .status-badge-warning { background-color: #fef9c3 !important; color: #854d0e !important; font-weight: 600; }
.status-pill-error, .status-badge-error { background-color: #fee2e2 !important; color: #b91c1c !important; font-weight: 600; }
.status-pill-info, .status-badge-info { background-color: #e0f2fe !important; color: #075985 !important; font-weight: 600; }

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 760px;
    overflow: auto;
    padding-right: 0.25rem;
}
.timeline-item {
    display: block;
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    color: inherit;
    background: #fff;
}
.timeline-item.active {
    border-color: rgba(79,70,229,0.5);
    box-shadow: 0 10px 20px rgba(79,70,229,0.08);
    background: #eef2ff;
}

.code-panel {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    overflow: hidden;
}
.code-panel strong { display: block; margin-bottom: 0.75rem; }
.code-panel pre {
    margin: 0;
    max-height: 360px;
    overflow: auto;
    background: transparent;
    color: inherit;
    padding: 0;
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .app-header-inner { align-items: flex-start; }
    .metric-value { font-size: 1.35rem; }
    .search-card .card-body,
    .result-card .card-body { padding: 1.4rem !important; }
}


.search-card .card-body,
.result-card .card-body {
    padding: 2rem 2.2rem !important;
}

.search-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #475569;
    font-size: 0.95rem;
}

.report-status-badge {
    font-size: 0.95rem;
}

.compact-empty-state {
    min-height: 240px;
}
