.page-section { padding: 2rem; }

/* ── Upload ─────────────────────────────────────────────── */
.upload-area {
    border: 2px dashed #2DC5C5;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    background: #fff;
}
.upload-area:hover, .upload-area.drag-over { background: #e8fafa; }
#file-input { display: none; }
.teal-btn {
    background: #2DC5C5;
    color: white;
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
}
.teal-btn:hover { background: #26a8a8; }

/* ── Dashboard wrapper ──────────────────────────────────── */
#dashboard { background: #f4f6f8; padding: 2rem 0 3rem; }

/* ── KPI cards ──────────────────────────────────────────── */
.kpi-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.kpi-card {
    flex: 1;
    min-width: 160px;
    background: #fff;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-left: 4px solid #2DC5C5;
}
.kpi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6c757d;
    margin-bottom: 0.35rem;
}
.kpi-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #2DC5C5;
    line-height: 1.1;
}
.kpi-value.sm { font-size: 1.15rem; }
.kpi-sub { font-size: 0.78rem; color: #6c757d; margin-top: 0.1rem; }

/* ── Chart / table cards ────────────────────────────────── */
.dash-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 1.75rem;
}
.dash-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
#activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
#activity-table th {
    background: #2DC5C5;
    color: #fff;
    padding: 0.65rem 0.9rem;
    text-align: left;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
#activity-table th:hover { background: #26a8a8; }
#activity-table td {
    padding: 0.5rem 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}
#activity-table tr:nth-child(even) td { background: #f8fdfd; }
#activity-table tr:hover td { background: #e4f8f8; }

/* ── Chart containers ────────────────────────────────────── */
#chart-weekly,
#chart-monthly { min-height: 350px; }

/* ── Chart empty state ───────────────────────────────────── */
.chart-empty {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
    padding: 3rem 1rem;
    margin: 0;
}

/* ── Filters bar ─────────────────────────────────────────── */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-end;
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 1.75rem;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.filter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6c757d;
    font-weight: 600;
}
.filter-input {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
    color: #343a40;
    cursor: pointer;
}
.filter-input:focus { outline: none; border-color: #2DC5C5; box-shadow: 0 0 0 2px rgba(45,197,197,0.2); }
.type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-check {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    color: #343a40;
    cursor: pointer;
    padding: 0.3rem 0.65rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.filter-check:has(input:checked) {
    border-color: #2DC5C5;
    background: #e8fafa;
}
.filter-check input { accent-color: #2DC5C5; cursor: pointer; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.875rem;
    color: #6c757d;
}
.page-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.page-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: #343a40;
    transition: border-color 0.15s, background 0.15s;
}
.page-btn:hover:not(:disabled) { border-color: #2DC5C5; background: #e8fafa; }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-current { font-weight: 600; color: #343a40; }
