/* ===================================================================
   Kept minimal on purpose (same policy as orderpulse-local): only a
   reset, :root custom properties (CSS isolation can't scope :root),
   and the static-SSR Login page's styles (no circuit yet, so
   Component.razor.css scoping doesn't apply there). Everything else
   lives in a Component.razor.css next to its component.
   =================================================================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Shared by AdminLayout's sidebar header and AdminPageHeader — they must line up. */
    --admin-topbar-height: calc(38px + 2.2rem);
}

/* Login page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #111111;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 320px;
    padding: 2.5rem 2rem;
    background: #1c1c1c;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.login-title {
    margin: 0 0 0.5rem;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.login-input {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #333333;
    background: #141414;
    color: #ffffff;
    font-size: 0.95rem;
}

.login-input:focus {
    outline: none;
    border-color: #DA1A32;
}

.login-error {
    margin: 0;
    color: #ff6b6b;
    font-size: 0.85rem;
    text-align: center;
}

.login-button {
    margin-top: 0.4rem;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    background: #DA1A32;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.login-button:hover {
    background: #b8152a;
}

/* Shared by AddAdminUserDialog and EditAdminUserPermissionsDialog — two sibling dialogs, no
   parent/child relationship, so this can't live in either one's own Component.razor.css. */
.permission-section-title {
    text-align: center;
    font-weight: 600;
}

.permission-section-hint {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.85em;
}

/* Shared by ModuleAssignmentPicker/StoreAssignmentPicker's MudDropZones — global because it's
   applied via Class="..." on a MudBlazor child component from two unrelated sibling components.
   flex-basis: 0 (not "auto") is what makes both zones split the row equally regardless of how
   much content is inside — with only flex-grow, an empty zone's initial size is based on its own
   (near-zero) content, so it stays visibly narrower than a zone full of item cards. */
.drop-zone-fixed {
    flex: 1 1 0;
    min-width: 0;
    min-height: 220px;
}

/* Global, on purpose: MudDialogProvider renders every dialog's paper into a root portal outside
   any of our own components' render trees, so there's no component to scope this to (::deep
   can't reach it either — it needs a scoped ancestor, and there isn't one). Applies to every
   dialog in the app, not just the permission ones — without it, dialogs blend into the page
   behind them, especially in dark mode where the dialog surface and the backdrop are both dark. */
.mud-dialog {
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 6px 18px rgba(0, 0, 0, 0.6) !important;
}
