/* ================================================================
   Admin Panel — Centralized Styles
   ================================================================ */

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

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #f1f5f9;
}

/* ================================================================
   Layout: Wrapper
   ================================================================ */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-body {
    flex: 1;
    padding: 1.5rem;
}

/* ================================================================
   Sidebar
   ================================================================ */

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 .75rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.admin-sidebar__logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.admin-sidebar__logo path {
    fill: #60a5fa;
}

.admin-sidebar__title {
    font-size: .9rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
}

.admin-sidebar__subtitle {
    font-size: .7rem;
    font-weight: 400;
    color: #64748b;
}

.admin-sidebar__divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.1);
    margin: 0 .75rem 1rem;
}

.admin-sidebar__label {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #475569;
    padding: 0 .75rem;
    margin-bottom: .5rem;
}

/* ================================================================
   Sidebar Navigation
   ================================================================ */

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.admin-nav__link {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.admin-nav__link:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.08);
}

.admin-nav__link--active {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
}

.admin-nav__link--active:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}

.admin-nav__icon {
    font-size: 20px;
    line-height: 1;
}

/* ================================================================
   Sidebar Submenu
   ================================================================ */

.admin-nav__group {
    display: flex;
    flex-direction: column;
}

.admin-nav__submenu {
    display: none;
    flex-direction: column;
    margin-top: 2px;
    gap: 2px;
}

.admin-nav__group--open .admin-nav__submenu {
    display: flex;
}

.admin-nav__sublink {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .75rem .5rem 2.85rem;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.admin-nav__sublink:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.08);
}

.admin-nav__sublink--active {
    color: #fff;
    background: rgba(59, 130, 246, 0.1);
}

.admin-nav__sublink--active:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
}

/* ================================================================
   Top Bar
   ================================================================ */

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.admin-topbar__user {
    font-size: .85rem;
    color: #64748b;
    font-weight: 500;
}

.admin-topbar__logout {
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .35rem .75rem;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.admin-topbar__logout:hover {
    border-color: #94a3b8;
    color: #334155;
}

/* ================================================================
   Utility: Icons
   ================================================================ */

.admin-icon-sm {
    font-size: 16px;
    vertical-align: middle;
}

/* ================================================================
   Icon picker (custom dropdown with Material Symbol previews)
   ================================================================ */

.icon-picker {
    position: relative;
}

.icon-picker__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    min-height: 38px;
    font-size: 0.875rem;
    color: #212529;
}

.icon-picker__trigger:hover {
    border-color: #86b7fe;
}

.icon-picker__trigger .material-symbols-outlined {
    font-size: 20px;
}

.icon-picker__trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-picker__clear {
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.icon-picker__clear:hover {
    color: #dc3545;
}

.icon-picker__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow: hidden;
    flex-direction: column;
    display: none;
}

.icon-picker--open .icon-picker__dropdown {
    display: flex;
}

.icon-picker__search {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.icon-picker__search input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.8125rem;
    outline: none;
}

.icon-picker__search input:focus {
    border-color: #86b7fe;
}

.icon-picker__list {
    overflow-y: auto;
    flex: 1;
}

.icon-picker__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #212529;
    transition: background 0.1s;
}

.icon-picker__option:hover {
    background: #e9ecef;
}

.icon-picker__option--active {
    background: #0d6efd;
    color: #fff;
}

.icon-picker__option--active:hover {
    background: #0b5ed7;
}

.icon-picker__option .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

.icon-picker__option--hidden {
    display: none;
}

/* ================================================================
   Content: Page headers
   ================================================================ */

.admin-body h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

/* ================================================================
   Dashboard Cards — icon
   ================================================================ */

.admin-dashboard__icon {
    font-size: 48px;
    line-height: 1;
    display: block;
    margin-bottom: .75rem;
}

.col-md-3:nth-child(1) .admin-dashboard__icon { color: #3b82f6; }
.col-md-3:nth-child(2) .admin-dashboard__icon { color: #8b5cf6; }
.col-md-3:nth-child(3) .admin-dashboard__icon { color: #10b981; }
.col-md-3:nth-child(4) .admin-dashboard__icon { color: #f59e0b; }

.admin-dashboard__link {
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}

.admin-dashboard__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.admin-dashboard__link:hover .admin-dashboard__icon,
.admin-dashboard__link:hover .card-title {
    color: #3b82f6;
}

/* ================================================================
   Content: Cards
   ================================================================ */

.admin-body .card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-body .card-body {
    padding: 1.25rem;
}

.admin-body .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

/* ================================================================
   Content: Tables
   ================================================================ */

.admin-body .table {
    font-size: .875rem;
}

.admin-body .table thead th {
    font-weight: 600;
    color: #475569;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom-width: 2px;
    padding: .75rem;
}

.admin-body .table tbody td {
    padding: .75rem;
    vertical-align: middle;
    color: #334155;
}

.admin-body .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(241, 245, 249, 0.5);
}

.admin-body .table-hover > tbody > tr:hover > * {
    background-color: rgba(226, 232, 240, 0.4);
}

/* ================================================================
   Content: Forms
   ================================================================ */

.admin-body .form-label {
    font-size: .8125rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: .375rem;
}

.admin-body .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
    font-size: .875rem;
    padding: .5rem .75rem;
    transition: border-color .15s, box-shadow .15s;
}

.admin-body .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.admin-body .form-select {
    border-radius: 8px;
    border-color: #e2e8f0;
    font-size: .875rem;
    padding: .5rem .75rem;
}

.admin-body .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ================================================================
   Content: Buttons
   ================================================================ */

.admin-body .btn {
    font-size: .85rem;
    font-weight: 500;
    border-radius: 8px;
    padding: .45rem .9rem;
    transition: all .15s;
}

.admin-body .btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
}

.admin-body .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.admin-body .btn-sm {
    padding: .3rem .6rem;
    font-size: .8rem;
}

/* ================================================================
   Content: Badges
   ================================================================ */

.admin-body .badge {
    font-size: .75rem;
    font-weight: 500;
    padding: .35em .65em;
    border-radius: 6px;
}

/* ================================================================
   Content: Alerts
   ================================================================ */

.admin-body .alert {
    border-radius: 10px;
    font-size: .875rem;
    border: none;
}

.admin-body .alert-success {
    background: #f0fdf4;
    color: #166534;
}

.admin-body .alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.admin-body .alert-info {
    background: #f0f9ff;
    color: #075985;
}

/* ================================================================
   Content: Pagination
   ================================================================ */

.admin-body .pagination {
    gap: 4px;
    margin-top: 1.5rem;
}

.admin-body .pagination .page-link {
    border-radius: 6px;
    font-size: .85rem;
    color: #475569;
    border-color: #e2e8f0;
    padding: .4rem .75rem;
}

.admin-body .pagination .page-item.active .page-link {
    background: #3b82f6;
    border-color: #3b82f6;
}

.admin-body .pagination .page-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* ================================================================
   Content: Select2 overrides
   ================================================================ */

.admin-body .select2-container--krajee-bs5 .select2-selection {
    border-radius: 8px;
    border-color: #e2e8f0;
    min-height: 38px;
}

.admin-body .select2-container--krajee-bs5 .select2-selection--single .select2-selection__rendered {
    font-size: .875rem;
    color: #334155;
}

.admin-body .select2-container--krajee-bs5.select2-container--focus .select2-selection,
.admin-body .select2-container--krajee-bs5.select2-container--open .select2-selection {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ================================================================
   Login Page
   ================================================================ */

body.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

body.admin-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo__svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.login-logo__svg path {
    fill: #60a5fa;
}

.login-logo__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 .25rem;
}

.login-logo__subtitle {
    font-size: .85rem;
    color: #64748b;
    margin: 0;
}

.login-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 16px;
    padding: 2rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 20px 40px -4px rgba(0, 0, 0, 0.4);
}

.login-card .form-label {
    font-size: .8125rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: .375rem;
}

.login-card .form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 10px;
    color: #f1f5f9;
    padding: .625rem .875rem;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
}

.login-card .form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    color: #f8fafc;
    outline: none;
}

.login-card .form-control::placeholder {
    color: #475569;
}

.login-card .form-check-input {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: rgba(71, 85, 105, 0.5);
    border-radius: 4px;
    width: 1rem;
    height: 1rem;
    margin-top: .15rem;
}

.login-card .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.login-card .form-check-label {
    font-size: .8125rem;
    color: #94a3b8;
}

.login-btn {
    width: 100%;
    padding: .7rem;
    border: none;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
}

.login-btn:active {
    transform: translateY(0);
}

.login-card .field-loginform-email,
.login-card .field-loginform-password {
    margin-bottom: 1.25rem;
}

.login-card .form-check {
    margin-bottom: 1.5rem;
}

.login-card .invalid-feedback {
    font-size: .78rem;
    color: #f87171;
    margin-top: .35rem;
}

.login-card .has-error .form-control {
    border-color: #ef4444;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .78rem;
    color: #475569;
}

/* ================================================================
   Stats Page
   ================================================================ */

.admin-stats__subtitle {
    font-size: .875rem;
    color: #64748b;
    margin: 0;
}

.admin-stats__periods {
    display: flex;
    gap: 4px;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 3px;
}

.admin-stats__period-btn {
    padding: .4rem .85rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.admin-stats__period-btn:hover {
    color: #334155;
}

.admin-stats__period-btn--active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-stats__card {
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.admin-stats__card--blue {
    border-left: 4px solid #3b82f6;
}

.admin-stats__card--green {
    border-left: 4px solid #10b981;
}

.admin-stats__card--purple {
    border-left: 4px solid #8b5cf6;
}

.admin-stats__card-label {
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .25rem;
}

.admin-stats__card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.admin-stats__card-avg {
    font-size: .8rem;
    color: #94a3b8;
    margin-top: .25rem;
}

.admin-stats__tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
}

.admin-stats__tab {
    padding: .6rem 1.25rem;
    font-size: .875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.admin-stats__tab:hover {
    color: #334155;
    border-bottom-color: #cbd5e1;
}

.admin-stats__tab--active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

.admin-stats__pages-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
}

.admin-stats__pages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.admin-stats__pages-table thead th {
    font-weight: 600;
    color: #475569;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .625rem .75rem;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.admin-stats__pages-table thead th:not(:first-child) {
    text-align: right;
    width: 120px;
}

.admin-stats__pages-table tbody td {
    padding: .625rem .75rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.admin-stats__pages-table tbody td:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.admin-stats__pages-table tbody tr:hover td {
    background: rgba(241, 245, 249, 0.5);
}

.admin-stats__url {
    display: inline-block;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: .8rem;
    color: #475569;
}

.admin-stats__toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.admin-stats__group-toggle {
    display: flex;
    gap: 4px;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 3px;
}

.admin-body a.admin-stats__group-btn {
    display: inline-block;
    padding: .4rem .85rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: background .15s, color .15s, box-shadow .15s;
}

.admin-body a.admin-stats__group-btn:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.admin-body a.admin-stats__group-btn--active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-body a.admin-stats__group-btn--active:hover {
    background: #fff;
    color: #1e293b;
    text-decoration: none;
}

.admin-body a.admin-stats__bots-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    background: #e2e8f0;
    text-decoration: none;
    transition: background .15s, color .15s, box-shadow .15s;
}

.admin-body a.admin-stats__bots-btn:hover {
    color: #334155;
    background: #d8dee6;
    text-decoration: none;
}

.admin-body a.admin-stats__bots-btn--active {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.admin-body a.admin-stats__bots-btn--active:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

.admin-stats__bots-excluded {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 5px;
    font-size: .7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    line-height: 1.3;
}

.admin-stats__toolbar-hint {
    font-size: .78rem;
    color: #94a3b8;
    margin: -.5rem 0 1rem;
}

.admin-body .admin-stats__date-range {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: -.5rem;
    margin-bottom: 1rem;
}

.admin-body .admin-stats__date-range--hidden {
    display: none !important;
}

.admin-body .admin-stats__date-label {
    font-size: .8rem;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.admin-body .admin-stats__date-range .input-group {
    width: 160px;
    flex: 0 0 160px;
}

.admin-body .admin-stats__date-range .form-control {
    font-size: .8rem;
    padding: .35rem .5rem;
    border-color: #e2e8f0;
    border-radius: 6px 0 0 6px;
}

.admin-body .admin-stats__date-range .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.admin-body .admin-stats__date-range .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    font-size: .85rem;
    padding: .35rem .5rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.admin-body .admin-stats__date-apply {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .75rem;
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    flex-shrink: 0;
}

.admin-body .admin-stats__date-apply:hover {
    border-color: #94a3b8;
    color: #1e293b;
    background: #f8fafc;
}

.admin-body .admin-stats__date-apply-icon {
    font-size: 16px;
    color: #64748b;
}

.admin-stats__sync-info {
    font-size: .8rem;
    color: #94a3b8;
    text-align: right;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 768px) {
    .admin-sidebar {
        width: 200px;
        padding: 1rem .75rem;
    }

    .admin-sidebar__brand {
        margin-bottom: 1.5rem;
    }

    .admin-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        padding: .75rem;
        gap: .5rem;
    }

    .admin-sidebar__brand {
        margin-bottom: 0;
    }

    .admin-sidebar__divider,
    .admin-sidebar__label {
        display: none;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .admin-nav__link {
        padding: .4rem .6rem;
        font-size: .8rem;
    }

    .admin-nav__group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .admin-nav__submenu {
        flex-direction: row;
        margin-top: 0;
        gap: 4px;
    }

    .admin-nav__sublink {
        padding: .4rem .6rem;
        font-size: .8rem;
    }
}
