/* ============================================
   DigiHost Dashboard Styles
   ============================================ */

:root {
    --dash-primary: #0d6efd;
    --dash-navbar-bg: #1e293b;
    --dash-card-hover: #f0f4ff;
}

/* ---- Body ---- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f4f6f9;
}

/* ---- Navbar ---- */
.dash-navbar {
    background: var(--dash-navbar-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dash-navbar .navbar-brand {
    color: #fff;
    font-size: 1.1rem;
}

.dash-navbar .navbar-brand:hover {
    color: #cfd8e3;
}

/* ---- Cards ---- */
.dash-card {
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    background: var(--dash-card-hover);
}

.dash-card:focus-visible {
    outline: 2px solid var(--dash-primary);
    outline-offset: 2px;
}

.dash-card .card-title {
    font-size: 0.95rem;
}

/* ---- Status Icons ---- */
.status-icons .status-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    transition: background 0.15s;
}

.status-icons .status-icon:hover {
    background: rgba(0, 0, 0, 0.08);
}

.status-icons .status-icon.text-success {
    background: rgba(25, 135, 84, 0.1);
}

.status-icons .status-icon.text-warning {
    background: rgba(255, 193, 7, 0.12);
}

/* ---- Call lines ---- */
.call-line {
    padding: 3px 0;
    line-height: 1.5;
}

.call-line + .call-line {
    border-top: 1px solid #f0f0f0;
}

/* ---- Error line ---- */
.error-line {
    padding: 3px 0;
    line-height: 1.5;
}

/* ---- Detail header badges ---- */
#detail-header .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* ---- Tables ---- */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.table td {
    font-size: 0.875rem;
    vertical-align: middle;
}

/* ---- Tabs ---- */
.nav-tabs .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.nav-tabs .nav-link.active {
    color: var(--dash-primary);
    font-weight: 600;
}

/* ---- Charts ---- */
.card canvas {
    max-height: 260px;
}

/* ---- Pagination ---- */
.pagination .page-link {
    font-size: 0.8rem;
    border-radius: 6px;
    margin: 0 2px;
}

/* ---- Login card ---- */
#login-screen .card {
    border-radius: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .status-icons .status-icon {
        font-size: 0.95rem;
        width: 24px;
        height: 24px;
    }

    .dash-card .card-title {
        font-size: 0.85rem;
    }

    #detail-header .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* ---- Scrollbar styling ---- */
pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

pre::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* ---- Spinner overlay ---- */
#overview-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
