/*
  ----------------------------------------
  Admin (superadmin shared layout)
  ----------------------------------------
*/

@layer styles {
    .admin {
        /* Superadmin sidebar shell */
        .ui-admin-sidebar {
            width: 15rem;
            background: var(--admin-sidebar-bg);
            color: var(--admin-sidebar-text);
        }

        .ui-admin-sidebar-brand {
            padding: var(--space-sm) var(--space-xs) var(--space-md);
            border-bottom: var(--border) solid var(--admin-sidebar-border);
            color: var(--white);
        }

        .ui-admin-sidebar-logo {
            width: 2.4rem;
            height: 2.4rem;
            flex-shrink: 0;
            border-radius: var(--rounded-full);
            object-fit: cover;
            box-shadow: var(--shadow-sm);
        }

        .ui-admin-sidebar-title {
            color: var(--white);
            font-size: var(--text-sm);
            font-weight: var(--font-bold);
            line-height: 1;
        }

        .ui-admin-sidebar-subtitle {
            color: var(--admin-sidebar-muted);
            font-size: var(--text-xs);
            line-height: 1;
        }

        .ui-admin-sidebar-section-label {
            color: var(--admin-sidebar-muted);
            padding-inline: var(--space-2xs);
        }

        /* Admin nav links (left menu) */
        .nav-link-admin {
            display: flex;
            width: 100%;
            align-items: center;
            gap: 0.4rem;
            text-decoration: none;
            color: var(--midtone);
            padding: 0.5rem 0.5rem;
            border-radius: var(--rounded-sm);
            transition: color 300ms ease;

            &.active,
            &:hover,
            &:active {
                background: var(--darker);
                color: var(--white);
            }

            svg {
                width: 1.25rem;
                height: 1.25rem;
            }
        }

        .ui-admin-sidebar .nav-link-admin {
            position: relative;
            min-height: 2.35rem;
            gap: var(--space-xs);
            padding: var(--space-xs) var(--space-sm);
            border-radius: var(--rounded);
            color: var(--admin-sidebar-text);
            transition:
                background-color 160ms ease,
                color 160ms ease;

            &.active,
            &:hover,
            &:active {
                background: var(--admin-sidebar-surface);
                color: var(--white);
            }

            &.active::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0.65rem;
                bottom: 0.65rem;
                width: 0.18rem;
                border-radius: var(--rounded-full);
                background: var(--brand-1-light);
            }

            svg {
                width: 1rem;
                height: 1rem;
                flex-shrink: 0;
            }
        }
    }
}
