:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #4f46e5;
    --primary-dark: #312e81;
    --accent: #111827;
}

body {
    background: linear-gradient(180deg, #f3f4f6 0%, #eef2ff 100%);
    color: var(--text);
    min-height: 100vh;
}

.app-nav {
    background: linear-gradient(90deg, #111827, #312e81);
}

.login-card {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
}

.brand-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #4f46e5, #111827);
    color: #fff;
}

.demo-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 1rem;
    color: var(--muted);
}

.hero-pro {
    background: radial-gradient(circle at top left, #6366f1, #111827 70%);
    color: white;
    border-radius: 28px;
    padding: 2rem;
}

.glass-panel {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 24px;
    padding: 1.2rem;
    backdrop-filter: blur(10px);
}

.mini-stat {
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    padding: .9rem;
}

.mini-stat span {
    display: block;
    font-size: .8rem;
    opacity: .85;
}

.mini-stat strong {
    font-size: 1.4rem;
}

.stat-card-pro,
.card-item-pro {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.stat-card-pro .card-body {
    padding: 1.4rem;
}

.stat-label {
    color: var(--muted);
    font-size: .92rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.media-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.media-card img,
.cover-box-pro,
.detail-cover {
    width: 100%;
    object-fit: cover;
    background: #e5e7eb;
}

.media-card img {
    height: 88px;
    border-radius: 14px;
}

.cover-box-pro {
    height: 290px;
}

.card-item-pro {
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-item-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .12);
}

.detail-cover-wrap {
    background: #e5e7eb;
}

.detail-cover {
    min-height: 100%;
    height: 100%;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
}

.progress-bar {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.form-control,
.form-select,
.btn,
.card,
.alert {
    border-radius: 14px !important;
}

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

@media (max-width: 768px) {
    .hero-pro {
        padding: 1.4rem;
    }
    .media-card {
        grid-template-columns: 70px 1fr;
    }
}


.scanner-reader {
    min-height: 320px;
    overflow: hidden;
}

#scannerReader video {
    width: 100% !important;
    border-radius: 1rem;
}

#scannerReader__scan_region img,
#scannerReader__dashboard_section_csr img {
    max-width: 100%;
}
