/* Admin shell: Zalando Sans + purple sidebar (no Vite rebuild required). */

html, body {
    font-family: 'Zalando Sans', ui-sans-serif, system-ui, sans-serif;
}

/* ── Sidebar shell ─────────────────────────────────────────────── */
.admin-sidebar {
    background: linear-gradient(180deg, #5b3fc4 0%, #3d2a8f 42%, #1e1648 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #e8e4ff;
}

.admin-sidebar .sidebar-brand-name {
    color: #ffffff !important;
}

.admin-sidebar .sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar .sidebar-brand-link {
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: opacity .15s ease;
}

.admin-sidebar .sidebar-brand-link:hover {
    opacity: 0.94;
}

.admin-sidebar .sidebar-brand-logo {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    border-radius: 10px;
}

.admin-sidebar .sidebar-plan-chip {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #f3e8ff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar .sidebar-website-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.admin-sidebar .sidebar-website-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
}

.admin-sidebar .sidebar-menu-label {
    color: rgba(255, 255, 255, 0.42) !important;
}

/* Default nav / group rows */
.admin-sidebar .nav-row {
    color: rgba(255, 255, 255, 0.72) !important;
}

.admin-sidebar .nav-row:hover:not(.nav-row--locked):not(.nav-row--active) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.admin-sidebar .nav-row--active {
    background: rgba(139, 92, 246, 0.55) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

.admin-sidebar .nav-row--locked {
    color: rgba(255, 255, 255, 0.38) !important;
}

.admin-sidebar .nav-group-btn {
    color: rgba(255, 255, 255, 0.72) !important;
}

.admin-sidebar .nav-group-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.admin-sidebar .nav-group-btn.is-open {
    color: #ffffff !important;
}

.admin-sidebar .nav-group-chevron {
    color: rgba(255, 255, 255, 0.45) !important;
}

.admin-sidebar .nav-group-rail {
    border-left-color: rgba(255, 255, 255, 0.14) !important;
}

.admin-sidebar .sidebar-soon-chip {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Licence footer CTA */
.admin-sidebar .sidebar-licence-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.admin-sidebar .nav-row--licence {
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px -3px rgba(37, 99, 235, 0.35) !important;
}

.admin-sidebar .nav-row--licence:hover {
    filter: brightness(1.06);
    color: #ffffff !important;
}

.admin-sidebar .nav-row--licence.nav-row--active {
    background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 55%, #3b82f6 100%) !important;
}

/* Thin, low-opacity scrollbar (matches purple sidebar) */
.admin-sidebar nav,
.admin-sidebar .sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.admin-sidebar nav::-webkit-scrollbar,
.admin-sidebar .sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar nav::-webkit-scrollbar-track,
.admin-sidebar .sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar nav::-webkit-scrollbar-thumb,
.admin-sidebar .sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.admin-sidebar nav::-webkit-scrollbar-thumb:hover,
.admin-sidebar .sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

.admin-sidebar nav::-webkit-scrollbar-corner,
.admin-sidebar .sidebar-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

/* Confirm dialog — full-screen dim over sidebar + header (no blur) */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.55);
}

.confirm-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.confirm-modal-layer > .confirm-modal-panel {
    pointer-events: auto;
}
