/* ============================================================
   ADMIN CSS — Serralharia Poquinhas
   Design: Premium dark sidebar · Clean white workspace · Red accent
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #c8191a;
    --red-dark: #a01213;
    --red-light: #fdf0f0;
    --red-glow: rgba(200,25,26,0.12);
    --black: #0f0f10;
    --gray-900: #1a1a1c;
    --gray-800: #252528;
    --gray-700: #333338;
    --gray-600: #4a4a52;
    --gray-500: #6b6b76;
    --gray-400: #8e8e99;
    --gray-300: #b5b5be;
    --gray-200: #d4d4dc;
    --gray-100: #ebebef;
    --gray-50: #f5f5f8;
    --white: #ffffff;
    --border: #e2e2e8;
    --border-light: #ececf0;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --sidebar-w: 250px;
    --topbar-h: 56px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-sm: 6px;
    --ease: 0.2s cubic-bezier(0.4,0,0.2,1);
}

html, body { height: 100%; }
body { background: var(--gray-50); color: var(--black); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font); font-size: inherit; }

/* ---- ICONS ---- */
.icon-xs { width: 13px; height: 13px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-md { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 40px; height: 40px; flex-shrink: 0; color: var(--gray-300); }
svg, i[data-lucide] { display: inline-block; vertical-align: middle; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-body {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: linear-gradient(135deg, var(--gray-50) 0%, #e8e8ee 100%);
}
.login-wrapper { width: 100%; max-width: 400px; padding: 2rem; }
.login-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
}
.login-brand { text-align: center; margin-bottom: 2rem; }
.login-logo { height: 28px; margin: 0 auto 0.75rem; }
.login-subtitle { font-size: 0.82rem; color: var(--gray-400); font-weight: 500; }
.login-form { display: flex; flex-direction: column; gap: 1.25rem; }
.login-back {
    display: block; text-align: center; margin-top: 1.75rem;
    font-size: 0.82rem; color: var(--gray-400); font-weight: 500;
    transition: color var(--ease);
}
.login-back:hover { color: var(--red); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-body { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: var(--sidebar-w); background: var(--black);
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 800;
    display: flex; flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.5rem 1.5rem; min-height: var(--topbar-h);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo { height: 26px; filter: invert(1); opacity: 0.85; }
.sidebar-nav {
    flex: 1; padding: 0.75rem; display: flex; flex-direction: column; gap: 2px;
    overflow-y: auto;
}
.sidebar-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25); padding: 1.25rem 0.75rem 0.5rem; margin-top: 0.25rem;
}
.sidebar-link {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.45);
    transition: all var(--ease); position: relative;
}
.sidebar-link:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.06); }
.sidebar-link.active {
    color: var(--white); background: rgba(255,255,255,0.1); font-weight: 600;
}
.sidebar-link.active::before {
    content: ''; position: absolute; left: -0.75rem; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; background: var(--red); border-radius: 0 3px 3px 0;
}
.sidebar-bottom {
    padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; flex-direction: column; gap: 2px;
}
.sidebar-link.sidebar-logout:hover { color: var(--red) !important; }

/* ============================================================
   MAIN AREA
   ============================================================ */
.admin-main {
    margin-left: var(--sidebar-w); flex: 1; min-height: 100vh;
    display: flex; flex-direction: column;
}
.admin-topbar {
    display: flex; align-items: center; gap: 1rem;
    padding: 0 2rem; height: var(--topbar-h); min-height: var(--topbar-h);
    background: var(--white); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 700;
}
.admin-topbar-title { font-size: 1.1rem; font-weight: 700; flex: 1; letter-spacing: -0.01em; }
.admin-topbar-user {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; color: var(--gray-400); font-weight: 500;
}
.admin-topbar-user .user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gray-100); display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); font-size: 0.72rem; font-weight: 700;
}
.admin-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    padding: 0.35rem; color: var(--gray-600); border-radius: var(--radius-sm);
    transition: background var(--ease);
}
.admin-menu-btn:hover { background: var(--gray-100); }
.admin-content { padding: 1.75rem 2rem 3rem; flex: 1; max-width: 1280px; width: 100%; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.form-group label {
    font-size: 0.78rem; font-weight: 600; color: var(--gray-500);
    letter-spacing: 0.01em;
}
.form-group input, .form-group select, .form-group textarea {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 0.6rem 0.75rem;
    font-size: 0.85rem; color: var(--black); width: 100%;
    outline: none; transition: all var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-300); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 0.5rem; }
.form-row .form-group { margin-bottom: 0; }
.form-section {
    margin-bottom: 2.5rem; padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-light);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 1rem; }
.form-section-title {
    font-size: 0.92rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--black);
    display: flex; align-items: center; gap: 0.5rem;
}
.form-section-title i { color: var(--gray-400); }
.form-actions { display: flex; gap: 0.75rem; align-items: center; padding-top: 0.5rem; }
.form-hint {
    font-size: 0.72rem; color: var(--gray-400); margin-top: 0.25rem;
    display: flex; align-items: center; gap: 0.3rem;
}
.form-hint i { color: var(--gray-300); flex-shrink: 0; }

.checkbox-label {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.85rem; cursor: pointer; font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
    accent-color: var(--red); width: 16px; height: 16px;
    border-radius: 3px; cursor: pointer;
}
.file-input { padding: 0.5rem 0.7rem !important; background: var(--gray-50) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-red {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--red); color: var(--white); font-size: 0.82rem; font-weight: 600;
    padding: 0.6rem 1.25rem; border: none; border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--ease); white-space: nowrap;
    box-shadow: 0 1px 2px rgba(200,25,26,0.3);
}
.btn-red:hover { background: var(--red-dark); box-shadow: 0 2px 8px rgba(200,25,26,0.35); transform: translateY(-1px); }
.btn-red:active { transform: translateY(0); }
.btn-red.btn-full { width: 100%; justify-content: center; padding: 0.7rem; }

.btn-outline-sm {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--white); color: var(--gray-600); font-size: 0.78rem; font-weight: 600;
    padding: 0.5rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--ease); white-space: nowrap;
}
.btn-outline-sm:hover { border-color: var(--gray-300); color: var(--black); box-shadow: var(--shadow-sm); }

.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: var(--white); border: 1px solid var(--border);
    color: var(--gray-500); cursor: pointer; transition: all var(--ease);
}
.btn-icon:hover { border-color: var(--gray-300); color: var(--black); box-shadow: var(--shadow-sm); }
.btn-icon-danger:hover { border-color: #fca5a5; color: #dc2626; background: #fef2f2; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 0.7rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 500; margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ============================================================
   TOOLBAR
   ============================================================ */
.admin-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.toolbar-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.select-sm {
    padding: 0.45rem 0.7rem; font-size: 0.78rem; font-weight: 500;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--white); color: var(--gray-600); cursor: pointer;
    outline: none; transition: border-color var(--ease);
}
.select-sm:focus { border-color: var(--red); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
    overflow-x: auto; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table thead th {
    background: var(--gray-50); font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400);
    padding: 0.65rem 1rem; text-align: left; white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.admin-table tbody td {
    padding: 0.7rem 1rem; border-bottom: 1px solid var(--border-light);
    vertical-align: middle; color: var(--gray-600);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background var(--ease); }
.admin-table tbody tr:hover { background: var(--gray-50); }
.td-actions { display: flex; gap: 0.3rem; white-space: nowrap; }
.td-msg { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray-400); }
.table-thumb {
    width: 52px; height: 38px; object-fit: cover; border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.status-toggle {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.68rem; font-weight: 600; padding: 0.25rem 0.55rem;
    border-radius: 20px; border: none; cursor: pointer; transition: all var(--ease);
}
.status-toggle.published { background: #ecfdf5; color: #059669; }
.status-toggle.published:hover { background: #d1fae5; }
.status-toggle.draft { background: var(--gray-100); color: var(--gray-400); }
.status-toggle.draft:hover { background: var(--gray-200); }

.status-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 0.2rem 0.5rem;
    border-radius: 20px; color: var(--white); background: var(--status-color, #6b7280);
}

.status-select {
    font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.45rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--white); cursor: pointer; outline: none;
    border-left: 3px solid var(--status-color, #6b7280);
    transition: border-color var(--ease);
}
.status-select:focus { border-color: var(--red); }

.inline-form { display: inline; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state-admin {
    text-align: center; padding: 4rem 2rem; color: var(--gray-400);
    background: var(--white); border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.empty-state-admin i { margin-bottom: 1rem; }
.empty-state-admin p { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.5rem; }
.empty-state-admin .btn-red { margin-top: 1rem; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-welcome { margin-bottom: 1.5rem; }
.dash-welcome-title { font-size: 1.3rem; font-weight: 800; color: var(--black); letter-spacing: -0.02em; }
.dash-welcome-sub {
    font-size: 0.78rem; color: var(--gray-400); font-weight: 500; margin-top: 0.25rem;
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.dash-welcome-alert {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: var(--red-light); color: var(--red); font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 20px; font-size: 0.72rem;
    margin-left: 0.5rem;
}

.dash-filters { display: flex; gap: 0.3rem; margin-bottom: 1.5rem; }
.dash-filter {
    padding: 0.4rem 0.9rem; font-size: 0.75rem; font-weight: 600;
    border: 1px solid var(--border); background: var(--white);
    color: var(--gray-500); cursor: pointer; border-radius: 20px;
    transition: all var(--ease);
}
.dash-filter:hover { border-color: var(--gray-300); color: var(--black); }
.dash-filter.active {
    background: var(--black); color: var(--white); border-color: var(--black);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.dash-stats {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem; margin-bottom: 1.5rem;
}
.stat-card {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 0.85rem;
    box-shadow: var(--shadow-sm); transition: all var(--ease);
    position: relative; overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon-blue   { background: #eff6ff; color: #3b82f6; }
.stat-icon-indigo { background: #eef2ff; color: #6366f1; }
.stat-icon-green  { background: #ecfdf5; color: #10b981; }
.stat-icon-purple { background: #faf5ff; color: #8b5cf6; }
.stat-icon-wa     { background: #ecfdf5; color: #25d366; }
.stat-icon-dark   { background: var(--gray-100); color: var(--gray-600); }
.stat-body { flex: 1; min-width: 0; }
.stat-value { font-size: 1.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--black); }
.stat-label { font-size: 0.65rem; color: var(--gray-400); margin-top: 0.15rem; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-trend {
    position: absolute; top: 0.5rem; right: 0.6rem;
    font-size: 0.62rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.15rem;
    padding: 0.1rem 0.35rem; border-radius: 4px;
}
.stat-trend-up { color: #059669; background: #ecfdf5; }
.stat-trend-down { color: #dc2626; background: #fef2f2; }

.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.dash-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.dash-card-wide { grid-column: span 2; }
.dash-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-light);
}
.dash-card-title {
    font-size: 0.85rem; font-weight: 700; color: var(--black);
    display: flex; align-items: center; gap: 0.45rem;
}
.dash-card-title i { color: var(--gray-400); }
.dash-card-subtitle { font-size: 0.72rem; color: var(--gray-400); font-weight: 500; }
.dash-card-link {
    font-size: 0.75rem; font-weight: 600; color: var(--red);
    display: inline-flex; align-items: center; gap: 0.25rem;
    transition: opacity var(--ease);
}
.dash-card-link:hover { opacity: 0.7; }
.dash-empty { font-size: 0.82rem; color: var(--gray-400); padding: 1.5rem 0; text-align: center; font-weight: 500; }
.badge-red {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; background: var(--red); color: var(--white);
    font-size: 0.65rem; font-weight: 700; border-radius: 10px;
    padding: 0 6px; margin-left: 0.45rem;
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Leads donut + legend */
.leads-status-wrap { display: flex; align-items: center; gap: 1.5rem; }
.leads-status-wrap canvas { max-width: 140px; flex-shrink: 0; }
.leads-status-legend { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; color: var(--gray-600); font-weight: 500; }
.legend-val { font-weight: 700; color: var(--black); }

/* Rankings with progress bars */
.dash-ranking { list-style: none; }
.dash-ranking li {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.55rem 0; border-bottom: 1px solid var(--border-light);
    font-size: 0.82rem; transition: background var(--ease);
}
.dash-ranking li:last-child { border-bottom: none; }
.dash-ranking li:hover { background: var(--gray-50); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: var(--radius-sm); }
.ranking-pos {
    font-size: 0.68rem; font-weight: 800; color: var(--gray-300);
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    background: var(--gray-50); border-radius: 50%; flex-shrink: 0;
}
.ranking-bar-wrap { flex: 1; min-width: 0; }
.ranking-name { font-weight: 500; color: var(--gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-size: 0.8rem; }
.ranking-bar { height: 3px; background: var(--gray-100); border-radius: 2px; margin-top: 0.3rem; }
.ranking-bar-fill { height: 100%; background: var(--red); border-radius: 2px; transition: width 0.6s ease; }
.ranking-val { font-weight: 700; color: var(--black); flex-shrink: 0; font-size: 0.82rem; white-space: nowrap; }

/* ============================================================
   EDIT FORM
   ============================================================ */
.edit-form-wrap {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.edit-form { display: flex; flex-direction: column; }

/* Photos grid admin */
.photos-grid-admin {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem; margin-top: 1rem;
}
.photo-card-admin {
    position: relative; border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: all var(--ease);
}
.photo-card-admin:hover { box-shadow: var(--shadow-md); }
.photo-card-admin.is-cover { border-color: var(--red); border-width: 2px; box-shadow: 0 0 0 3px var(--red-glow); }
.photo-card-admin img { width: 100%; height: 100px; object-fit: cover; }
.photo-card-actions {
    padding: 0.45rem 0.5rem; display: flex; flex-direction: column; gap: 0.25rem;
    font-size: 0.72rem; background: var(--gray-50);
}
.photo-cover-radio, .photo-delete-check {
    display: flex; align-items: center; gap: 0.3rem; cursor: pointer;
    font-weight: 500; color: var(--gray-600);
}
.photo-cover-radio input[type="radio"] { accent-color: var(--red); }
.photo-delete-check input[type="checkbox"] { accent-color: #dc2626; }

/* ============================================================
   PAGINATION (admin)
   ============================================================ */
.admin-pagination { margin-top: 2rem; }
.admin-pagination .pag-num {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 600; border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--gray-500); transition: all var(--ease);
}
.admin-pagination .pag-num:hover, .admin-pagination .pag-num.active {
    background: var(--red); border-color: var(--red); color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .dash-stats { grid-template-columns: repeat(3, 1fr); }
    .leads-status-wrap { flex-direction: column; align-items: flex-start; }
    .leads-status-wrap canvas { max-width: 120px; }
}

@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,0.3); }
    .admin-main { margin-left: 0; }
    .admin-topbar { padding: 0 1.25rem; }
    .admin-menu-btn { display: block; }
    .admin-content { padding: 1.25rem; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-card-wide { grid-column: span 1; }
    .form-row { grid-template-columns: 1fr; }
    .stat-card { padding: 0.85rem 0.75rem; }
    .stat-value { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .dash-stats { grid-template-columns: 1fr; }
    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-filters { flex-direction: column; }
    .select-sm { width: 100%; }
    .admin-content { padding: 1rem; }
    .photos-grid-admin { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
