:root {
    --purple-900: #32105e;
    --purple-700: #5f259f;
    --purple-500: #7c3dc2;
    --purple-100: #eee4f8;
    --gray-50: #f7f7fa;
    --gray-200: #e6e6ec;
    --gray-600: #656572;
}

html, body { min-height: 100%; }
body {
    background: var(--gray-50);
    color: #282832;
    display: flex;
    flex-direction: column;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.main-navbar {
    background: linear-gradient(110deg, var(--purple-900), var(--purple-700));
    box-shadow: 0 4px 20px rgba(50, 16, 94, .2);
}
.brand-mark {
    align-items: center;
    background: rgba(255,255,255,.16);
    border-radius: 10px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-right: 8px;
    width: 38px;
}
.navbar .nav-link { border-radius: 8px; padding-left: .8rem !important; padding-right: .8rem !important; }
.navbar .nav-link:hover { background: rgba(255,255,255,.1); }
.user-pill { background: rgba(255,255,255,.1); }
.page-content { flex: 1; padding: 2rem 0 3rem; }
.site-footer {
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 0;
}
.page-heading { margin-bottom: 1.5rem; }
.page-heading h1 { color: var(--purple-900); font-size: 1.65rem; font-weight: 750; margin: 0; }
.card {
    border: 1px solid rgba(50,16,94,.08);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(40, 22, 55, .06);
}
.stat-card { overflow: hidden; position: relative; }
.stat-card .icon {
    align-items: center;
    background: var(--purple-100);
    border-radius: 14px;
    color: var(--purple-700);
    display: flex;
    font-size: 1.4rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}
.stat-value { color: var(--purple-900); font-size: 1.8rem; font-weight: 750; }
.panel-arrivals-card {
    background: linear-gradient(135deg, #198754, #11643e);
    border-color: transparent;
    color: #fff;
}
.panel-arrivals-card .stat-value { color: #fff; }
.panel-arrivals-card .icon { background: rgba(255,255,255,.16); color: #fff; }
.panel-new-arrival { animation: panelArrivalHighlight 2.5s ease-out; }
@keyframes panelArrivalHighlight {
    from { background-color: #d1e7dd; }
    to { background-color: transparent; }
}
.btn-primary { background: var(--purple-700); border-color: var(--purple-700); }
.btn-primary:hover, .btn-primary:focus { background: var(--purple-900); border-color: var(--purple-900); }
.btn-outline-primary { border-color: var(--purple-700); color: var(--purple-700); }
.btn-outline-primary:hover { background: var(--purple-700); border-color: var(--purple-700); }
.form-control:focus, .form-select:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 .25rem rgba(124,61,194,.14);
}
.form-switch .form-check-input { height: 1.25rem; width: 2.5rem; }
.form-check-input:checked { background-color: var(--purple-700); border-color: var(--purple-700); }
.credential-box {
    background: #faf9fc;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.25rem;
}
.pix-qr-code {
    height: auto;
    max-width: 280px;
    width: 100%;
}
.table thead th { background: #f0edf4; color: #4b3560; font-size: .82rem; text-transform: uppercase; }
.badge-soft-purple { background: var(--purple-100); color: var(--purple-900); }
.login-shell { min-height: calc(100vh - 180px); }
.login-card { max-width: 440px; width: 100%; }
.hero {
    background: linear-gradient(130deg, var(--purple-900), var(--purple-500));
    border-radius: 24px;
    color: white;
    overflow: hidden;
    padding: 4rem 3rem;
}
@media (max-width: 767px) {
    .page-content { padding-top: 1.25rem; }
    .hero { padding: 2.5rem 1.5rem; }
    .table-responsive { border-radius: 12px; }
}
