:root {
    --brand: #2563eb;
    --brand-dark: #1e40af;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
}

body {
    color: var(--ink);
}

.navbar-brand {
    letter-spacing: 0;
}

.soft-card,
.metric-card,
.auth-card,
.employee-card {
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.metric-card {
    background: #fff;
}

.metric-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 1.25rem;
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 48%, #ffffff 100%);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(100%, 430px);
    background: #fff;
    padding: 28px;
}

.brand-mark,
.success-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: var(--brand);
    font-size: 1.65rem;
}

.success-mark {
    background: #dcfce7;
    color: #15803d;
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
}

.table > :not(caption) > * > * {
    padding: .9rem .85rem;
}

.image-review-card {
    border-radius: 8px;
    border: 1px solid var(--line);
    overflow: hidden;
}

.image-button {
    width: 100%;
    border: 0;
    padding: 0;
    background: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
}

.image-button img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.modal-image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.employee-page {
    min-height: 100vh;
    background: #f4f7fb;
}

.employee-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px 12px;
}

.employee-card {
    width: min(100%, 520px);
    background: #fff;
    padding: 22px;
}

.simple-list {
    display: grid;
    gap: 10px;
}

.simple-list div {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.simple-list span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    flex: 0 0 auto;
}

.consent-box {
    padding: 14px 14px 14px 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.step-indicator {
    width: fit-content;
    margin: 0 auto 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
    font-size: .9rem;
}

.preview-box {
    position: relative;
    aspect-ratio: 1.55 / 1;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.preview-vertical {
    width: min(100%, 320px);
    aspect-ratio: 3 / 4;
    margin: 0 auto;
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
}

.preview-placeholder {
    color: var(--muted);
    display: grid;
    place-items: center;
    gap: 8px;
}

.preview-placeholder i {
    font-size: 2.4rem;
}

.tip-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: #475569;
}

.tip-list li {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.tip-list li::before {
    content: "✓";
    color: #16a34a;
    font-weight: 700;
}

.selfie-guide {
    width: min(100%, 220px);
    margin: 0 auto 14px;
}

.selfie-guide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.wizard-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wizard-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
}

.wizard-dots span.active {
    background: var(--brand);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.review-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--soft);
}

.review-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #111827;
}

.upload-loader {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .btn-mobile,
    .employee-card .btn-lg {
        width: 100%;
    }

    .auth-card,
    .employee-card {
        padding: 20px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        display: grid;
        gap: 6px;
    }

    .btn-group > .btn {
        border-radius: 6px !important;
    }
}
