:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --soft-bg: #f4f7fb;
    --text-main: #172033;
    --muted: #667085;
    --border: #e5e7eb;
}

body {
    background: var(--soft-bg);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { text-decoration: none; }

.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    padding: 11px 16px;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
}

.form-control, .form-select {
    border-radius: 14px;
    padding: 12px 14px;
    border-color: #d0d5dd;
}

.card-soft {
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .04);
    background: white;
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(20,184,166,.25), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14,165,233,.22), transparent 30%),
        #f8fafc;
}

.login-card {
    width: min(450px, 100%);
    background: white;
    border-radius: 28px;
    border: 1px solid var(--border);
    padding: 30px;
    box-shadow: 0 25px 60px rgba(15,23,42,.08);
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    display: grid;
    place-items: center;
    font-size: 22px;
    color: white;
}

.sidebar {
    width: 270px;
    background: #0f172a;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 22px 18px;
    z-index: 100;
}

.sidebar .brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: white;
    background: rgba(255,255,255,.1);
}

.main-content {
    margin-left: 270px;
    padding: 24px;
}

.topbar {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .04);
}

.stat-card {
    padding: 18px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .04);
    min-height: 122px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.bg-soft-primary { background: #ccfbf1; color: #0f766e; }
.bg-soft-warning { background: #fef3c7; color: #b45309; }
.bg-soft-success { background: #dcfce7; color: #15803d; }
.bg-soft-danger { background: #fee2e2; color: #b91c1c; }
.bg-soft-info { background: #dbeafe; color: #1d4ed8; }

.badge-status {
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 600;
    font-size: 12px;
}

.table thead th {
    font-size: 12px;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f8fafc;
}

.table td, .table th {
    vertical-align: middle;
    padding: 14px 12px;
}

.photo-review {
    min-height: 520px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.photo-review img {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    display: block;
}

.mobile-shell {
    max-width: 460px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f8fafc;
}

.mobile-header {
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: white;
    padding: 28px 22px 24px;
    border-radius: 0 0 30px 30px;
}

.mobile-body {
    padding: 18px;
}

.mobile-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 26px rgba(15,23,42,.06);
    margin-bottom: 16px;
}

.example-photo {
    min-height: 170px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfeff, #f0fdf4);
    border: 1px solid #ccfbf1;
    display: grid;
    place-items: center;
    color: #0f766e;
    text-align: center;
    padding: 12px;
}

.camera-box {
    aspect-ratio: 3/4;
    width: 100%;
    border-radius: 22px;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    border: 2px dashed #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    overflow: hidden;
    position: relative;
}

.camera-box video,
.camera-box canvas,
.camera-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 14px; }
    .topbar { border-radius: 18px; }
}
