:root {
    --brand: #BD2E34;
    --brand-dark: #a02227;
    --ink: #1f2937;
    --muted: #6b7280;
    --bg: #f8f9fa;
    --card: #ffffff;
    --line: #e5e7eb;
    --chart-dark: #172033;
    --chart-light: #d3d6dd;
}

body {
    background: var(--bg);
    color: #585858;
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
}

.app-title {
    color: var(--ink);
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 700;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-logo {
    width: 122px;
    max-width: 35vw;
    height: auto;
    display: block;
}
.text-brand{
color: #BD2E34;
}
.brand-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-like {
    border: none;
    background: var(--card);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.section-title {
    color: var(--ink);
    font-weight: 700;
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    margin-bottom: 0;
}

.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-control:focus,
.form-select:focus,
.btn:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(189, 46, 52, 0.2);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.range-btn.active {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
}

.date-range {
    font-size: 0.95rem;
}

.kpi-block {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0;
}

.kpi-block:last-child {
    border-bottom: 1px solid var(--line);
}

.kpi-label {
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.kpi-value {
    color: var(--brand);
    font-weight: 700;
    line-height: 1;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.chart-title {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 700;
}

.chart-wrap {
    position: relative;
    min-height: 320px;
}

.top-pages-panel table thead th {
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.top-pages-panel table tbody td {
    color: var(--ink);
    font-size: 1.05rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-color: #eceff3;
}

.top-pages-panel table tbody td.text-end {
    color: var(--brand) !important;
}

.page-path {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-bar {
    height: 3px;
    border-radius: 3px;
    background: var(--brand);
}

.extra-chart-card {
    padding: 1.2rem;
}

.extra-chart-title {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.extra-chart-wrap {
    min-height: 260px;
    position: relative;
}

@media (max-width: 991.98px) {
    .card-like {
        padding: 1rem;
    }

    .toolbar {
        width: 100%;
    }

    .chart-wrap {
        min-height: 250px;
    }

    .brand-logo {
        width: 96px;
        max-width: 30vw;
    }

    .app-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .extra-chart-wrap {
        min-height: 220px;
    }
}
