:root {
    --dash-bg: #f0f4f8;
    --dash-card: #ffffff;
    --dash-primary: #0077b6;
    --dash-dark: #1d3557;
    --dash-call: #0d6efd;
    --dash-wa: #198754;
    --dash-muted: #6c757d;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--dash-bg);
    color: #334155;
}

.dash-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8f4fb 0%, #f0f4f8 45%, #dbeafe 100%);
    padding: 1.5rem;
}

.dash-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--dash-card);
    border-radius: 1.25rem;
    padding: 2rem;
}

.btn-dash {
    background: var(--dash-primary);
    border: none;
    color: #fff;
    font-weight: 700;
}
.btn-dash:hover {
    background: #005f92;
    color: #fff;
}

.dash-topbar {
    background: var(--dash-dark);
    color: #fff;
    padding: 0.9rem 0;
}
.dash-topbar a {
    color: #fff;
    text-decoration: none;
}
.dash-topbar .brand {
    font-weight: 700;
}

.stat-card {
    background: var(--dash-card);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(29, 53, 87, 0.06);
    height: 100%;
    box-shadow: 0 8px 24px rgba(29, 53, 87, 0.04);
}
.stat-card .label {
    color: var(--dash-muted);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.stat-card .value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dash-dark);
    line-height: 1.1;
}
.stat-card.call .value { color: var(--dash-call); }
.stat-card.wa .value { color: var(--dash-wa); }

.filter-bar {
    background: var(--dash-card);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(29, 53, 87, 0.06);
    box-shadow: 0 8px 24px rgba(29, 53, 87, 0.04);
}

.panel-card {
    background: var(--dash-card);
    border-radius: 1rem;
    border: 1px solid rgba(29, 53, 87, 0.06);
    box-shadow: 0 8px 24px rgba(29, 53, 87, 0.04);
    overflow: hidden;
}
.panel-card .panel-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
    font-weight: 700;
    color: var(--dash-dark);
}
.panel-card .table {
    margin-bottom: 0;
}
.panel-card .table th {
    font-size: 0.8rem;
    color: var(--dash-muted);
    font-weight: 600;
    background: #f8fafc;
}
.badge-call {
    background: rgba(13, 110, 253, 0.12);
    color: var(--dash-call);
}
.badge-whatsapp {
    background: rgba(25, 135, 84, 0.12);
    color: var(--dash-wa);
}
.page-cell {
    max-width: 280px;
}
.page-cell .url {
    font-size: 0.75rem;
    color: var(--dash-muted);
    word-break: break-all;
}
.site-link {
    color: var(--dash-primary);
    text-decoration: none;
    font-weight: 600;
}
.site-link:hover {
    text-decoration: underline;
}

.day-bar {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    overflow-x: auto;
    min-height: 140px;
    padding-bottom: 0.25rem;
}
.day-bar .bar-col {
    flex: 0 0 auto;
    width: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.day-bar .bar {
    width: 18px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #48cae4 0%, var(--dash-primary) 100%);
}
.day-bar .bar-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dash-dark);
    margin-bottom: 0.2rem;
}
.day-bar .bar-label {
    font-size: 0.65rem;
    color: var(--dash-muted);
    margin-top: 0.35rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .stat-card .value {
        font-size: 1.45rem;
    }
    .page-cell {
        max-width: 180px;
    }
}
