/* ============================================================
   EASYCORRECT – Admin Dashboard Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --brand-red: #E71616;
    --brand-red-dark: #c01212;
    --brand-red-glow: rgba(231, 22, 22, 0.35);

    --bg-primary: #0a0e17;
    --bg-sidebar: #0d1118;
    --bg-card: #111827;
    --bg-card-hover: #1a2236;
    --bg-surface: #151d2e;
    --bg-input: #0f1520;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(231, 22, 22, 0.25);

    --sidebar-width: 260px;
    --header-height: 64px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition-fast: 0.2s ease;
    --transition-med: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 22, 22, 0.15), transparent 70%);
    border-radius: 50%;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-box__logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-box__logo img {
    height: 48px;
    width: 48px;
    border-radius: var(--radius-sm);
    margin: 0 auto 12px;
}

.login-box__logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.login-box__logo h1 span {
    color: var(--brand-red);
}

.login-box__logo p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.login-form input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(231, 22, 22, 0.1);
}

.login-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-med);
    border: none;
}

.btn--primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 4px 16px var(--brand-red-glow);
}

.btn--primary:hover {
    background: var(--brand-red-dark);
    transform: translateY(-1px);
}

.btn--full {
    width: 100%;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn--outline:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.btn--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn--danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ============================================================
   LAYOUT: SIDEBAR + MAIN
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-med);
}

.sidebar__logo {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar__logo img {
    height: 36px;
    width: 36px;
    border-radius: var(--radius-sm);
}

.sidebar__logo span {
    font-weight: 800;
    font-size: 1.15rem;
}

.sidebar__nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar__link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.sidebar__link.active {
    background: rgba(231, 22, 22, 0.10);
    color: var(--brand-red);
}

.sidebar__link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar__link.active svg {
    opacity: 1;
}

.sidebar__separator {
    height: 1px;
    background: var(--border-color);
    margin: 12px 16px;
}

.sidebar__footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    flex: 1;
    min-width: 0;
}

.sidebar__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.sidebar__logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.sidebar__user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(231, 22, 22, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.85rem;
}

.sidebar__user-info {
    flex: 1;
    min-width: 0;
}

.sidebar__user-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__user-email {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.main-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-header__title {
    font-size: 1.1rem;
    font-weight: 700;
}

.main-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-body {
    padding: 32px;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .main-body {
        padding: 20px;
    }
}

/* ============================================================
   STAT CARDS (KPIs)
   ============================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-med);
}

.kpi-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.kpi-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.kpi-card__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(231, 22, 22, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
}

.kpi-card__value {
    font-size: 2rem;
    font-weight: 800;
}

.kpi-card__change {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.kpi-card__change.up {
    color: #22c55e;
}

.kpi-card__change.down {
    color: #ef4444;
}

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.panel__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel__title {
    font-size: 1rem;
    font-weight: 700;
}

.panel__body {
    padding: 24px;
}

.panel__body--flush {
    padding: 0;
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table .name-col {
    color: var(--text-primary);
    font-weight: 600;
}

.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-status--new {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.badge-status--read {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar__input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-bar__input:focus {
    border-color: var(--brand-red);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.pagination .active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

/* ============================================================
   CHART CONTAINER
   ============================================================ */
.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   AI INSIGHTS
   ============================================================ */
.ai-insights {
    background: linear-gradient(135deg, rgba(231, 22, 22, 0.06), var(--bg-card));
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.ai-insights::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(231, 22, 22, 0.08), transparent 70%);
    border-radius: 50%;
}

.ai-insights__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.ai-insights__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.ai-insights__title svg {
    color: var(--brand-red);
}

.ai-insights__content {
    position: relative;
}

.ai-insights__loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.ai-insights__loading.show {
    display: block;
}

.ai-insights__result {
    position: relative;
}

.ai-insights__summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--brand-red);
}

.ai-insights__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ai-insights__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-insights__list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--brand-red);
}

.ai-insights__actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-insights__actions-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ai-insights__actions-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #22c55e;
}

.ai-insights__alert {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    color: #f59e0b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-insights__empty {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

/* ============================================================
   SETTINGS FORM
   ============================================================ */
.settings-form .form-group {
    margin-bottom: 24px;
}

.settings-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.settings-form input {
    width: 100%;
    max-width: 500px;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.settings-form input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(231, 22, 22, 0.1);
}

.settings-form .form-help {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-success-msg {
    display: none;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: #22c55e;
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 16px;
    max-width: 500px;
}

.form-success-msg.show {
    display: block;
}

/* ============================================================
   LEAD DETAIL
   ============================================================ */
.lead-detail {
    max-width: 700px;
}

.lead-detail__field {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
}

.lead-detail__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lead-detail__value {
    color: var(--text-primary);
    font-size: 0.92rem;
}

/* ============================================================
   TOP PAGES TABLE
   ============================================================ */
.top-pages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-page-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.top-page-row__bar-bg {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.top-page-row__bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(231, 22, 22, 0.2), rgba(231, 22, 22, 0.08));
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.top-page-row__count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    width: 48px;
    text-align: right;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 3px;
}

/* ============================================================
   ROLE BADGES
   ============================================================ */
.badge-role {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-role--admin {
    background: rgba(231, 22, 22, 0.12);
    color: #E71616;
}

.badge-role--marketing {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.badge-role--vendas {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.badge-role--financeiro {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(231, 22, 22, 0.2);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   BLOG EDITOR – Dual Panel Layout
   ============================================================ */
.editor-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.editor-main {
    min-width: 0;
}

.editor-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* AI Assistant Card */
.ai-assistant {
    background: linear-gradient(145deg, rgba(231, 22, 22, 0.08), rgba(231, 22, 22, 0.02));
    border: 1px solid rgba(231, 22, 22, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
}

.ai-assistant__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ai-assistant__title span {
    font-size: 1.3rem;
}

/* Live Preview */
.live-preview {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-top: -8px;
    min-height: 200px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.live-preview.show {
    display: block;
}

.live-preview h1,
.live-preview h2,
.live-preview h3 {
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.live-preview p {
    margin-bottom: 16px;
}

.live-preview ul,
.live-preview ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.live-preview li {
    margin-bottom: 8px;
}

.live-preview img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* Delete button style */
.btn--danger {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn--danger:hover {
    background: #ef4444;
    color: #fff;
}

/* Full-width button */
.btn--full {
    width: 100%;
}

/* Blog Editor Responsive */
@media (max-width: 900px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-sidebar {
        position: static;
    }
}

/* ============================================================
   CLIENT PORTAL — shared layout helpers
   ============================================================ */

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 0;
    margin-bottom: 24px;
}

.content-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.content-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 32px 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--border-glow);
}

.stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .content-header {
        padding: 20px 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-grid {
        padding: 0 16px 24px;
        grid-template-columns: 1fr;
    }
}