:root {
    --bg: #f2f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --border: #e2e8f0;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 14px;
}

body.bg-soft {
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 70%);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.app-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 0.92rem;
}

.card,
.hero-card,
.form-card,
.dashboard-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero {
    margin-top: 0.35rem;
}

.hero-card {
    padding: 3.25rem 2.25rem;
}

.hero-chip {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1d4ed8;
    background: #dbeafe;
}

.hero-title {
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 760px;
    margin-inline: auto;
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.form-label {
    font-size: 0.93rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #d0d5dd;
    min-height: 44px;
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #98b6ff;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-primary,
.btn-success {
    border: 0;
}

.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.scanner-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.75rem;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.scanner-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e3a8a;
}

.scanner-reader {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbe6ff;
    background: #fff;
}

.scanner-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.alert {
    border: 1px solid transparent;
    border-radius: 12px;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.form-actions .btn {
    min-width: 180px;
}

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    background: #f9fafb !important;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table tbody td {
    border-bottom: 1px solid #f1f3f6;
    font-size: 0.93rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f8fbff;
}

.badge {
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    font-weight: 600;
}

.footer {
    color: #94a3b8;
    font-size: 0.9rem;
}

.page-actions {
    gap: 0.5rem;
}

.dashboard-compact .card {
    border-radius: 14px;
}

.list-filter-toolbar .form-control[type="date"] {
    min-height: 44px;
}

.layanan-compact-table th,
.layanan-compact-table td,
.inventaris-compact-table th,
.inventaris-compact-table td {
    vertical-align: middle;
}

.layanan-detail-dl dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.layanan-detail-dl dd {
    margin-bottom: 0.85rem;
}

.layanan-detail-dl dd:last-child {
    margin-bottom: 0;
}

.layanan-detail-foto {
    max-height: 220px;
    max-width: 100%;
}

.no-data {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 992px) {
    .hero-card {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .btn-lg {
        width: 100%;
        padding: 0.65rem 1rem !important;
        font-size: 1rem !important;
    }

    .d-sm-flex,
    .d-flex.page-actions,
    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
    }

    .input-group .btn {
        min-width: 110px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .inventaris-input-group {
        flex-wrap: wrap;
    }

    .inventaris-input-group .form-control {
        width: 100%;
        border-top-right-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
    }

    .inventaris-input-group #scanBtn {
        margin-top: 0.5rem;
        width: 100%;
        border-radius: 12px !important;
    }
}
