:root {
    color-scheme: dark;
}

body {
    background:
        radial-gradient(circle at top left, rgba(79, 124, 247, 0.18), transparent 32%),
        radial-gradient(circle at 85% 15%, rgba(124, 92, 250, 0.18), transparent 30%),
        linear-gradient(180deg, #09111f 0%, #0b1220 45%, #0d1526 100%);
}

.background-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
    pointer-events: none;
}

.background-orb {
    position: fixed;
    border-radius: 9999px;
    filter: blur(100px);
    opacity: 0.32;
    pointer-events: none;
}

.orb-a {
    left: -8rem;
    top: -6rem;
    height: 22rem;
    width: 22rem;
    background: rgba(79, 124, 247, 0.35);
}

.orb-b {
    right: -8rem;
    top: 9rem;
    height: 20rem;
    width: 20rem;
    background: rgba(124, 92, 250, 0.28);
}

.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 32, 51, 0.88), rgba(12, 20, 35, 0.92));
    border-radius: 28px;
    box-shadow: 0 20px 70px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(22px);
}

.eyebrow {
    display: inline-flex;
    border-radius: 9999px;
    border: 1px solid rgba(124, 92, 250, 0.28);
    background: rgba(79, 124, 247, 0.1);
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    padding: 0 1.25rem;
    height: 3.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5rem;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #4f7cf7, #7c5cfa);
    color: white;
    box-shadow: 0 18px 40px rgba(79, 124, 247, 0.28);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.field-label {
    margin-bottom: 0.55rem;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
}

input.field-input,
select.field-select {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(10, 15, 25, 0.86);
    color: white;
    padding: 0 1rem;
    height: 3.25rem;
    font-size: 0.95rem;
    line-height: 1.5rem;
}

textarea.field-textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(10, 15, 25, 0.86);
    color: white;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5rem;
}

/* Native date/month/number pickers: keep dark styling (avoid default white panels). */
input.field-input[type="month"],
input.field-input[type="date"],
input.field-input[type="number"] {
    color-scheme: dark;
    min-height: 3rem;
}

input.field-input[type="month"]::-webkit-calendar-picker-indicator,
input.field-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.75;
}

textarea.field-textarea {
    min-height: 8rem;
}

input.field-input:focus,
select.field-select:focus,
textarea.field-textarea:focus {
    outline: none;
    border-color: rgba(79, 124, 247, 0.75);
    box-shadow: 0 0 0 4px rgba(79, 124, 247, 0.14);
}

.validation-message,
.field-validation-error,
.validation-summary-errors {
    color: #fca5a5;
}

.table-shell {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 18, 32, 0.76);
}

.table-shell table {
    width: 100%;
    border-collapse: collapse;
}

.table-shell th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
}

.table-shell td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    vertical-align: top;
}

.stat-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    padding: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.status-awaitingpackage {
    background: rgba(168, 85, 247, 0.18);
    color: #e9d5ff;
}

.status-approved,
.status-active,
.status-submitted {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.status-provisioned {
    background: rgba(79, 124, 247, 0.16);
    color: #bfdbfe;
}

.status-rejected,
.status-disabled,
.status-missing {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.status-paused {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.status-ended {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

.checkbox-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    padding: 0 1rem;
    height: 3.25rem;
}