/* Master Viewer Admin - custom styles */
:root {
    --mv-sidebar-w: 250px;
    --mv-primary: #0d6efd;
    --mv-bg: #f5f7fb;
}

body {
    background: var(--mv-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
}

.mv-navbar {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.mv-shell {
    display: flex;
    min-height: calc(100vh - 56px);
}

.mv-sidebar {
    width: var(--mv-sidebar-w);
    min-width: var(--mv-sidebar-w);
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.mv-main {
    flex: 1;
    min-width: 0;
    background: var(--mv-bg);
}

.mv-nav .nav-link {
    color: #495057;
    padding: .7rem 1.1rem;
    border-left: 3px solid transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.mv-nav .nav-link:hover {
    background: #f1f5f9;
    color: var(--mv-primary);
}

.mv-nav .nav-link.active {
    background: #eaf2ff;
    color: var(--mv-primary);
    border-left-color: var(--mv-primary);
    font-weight: 600;
}

.mv-nav .nav-link i {
    width: 1.2rem;
    text-align: center;
}

.mv-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #f1f1f1;
}

@media (max-width: 991.98px) {
    .mv-shell {
        display: block;
    }

    .mv-sidebar {
        width: 280px;
    }
}

/* Login screen */
.mv-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    padding: 1rem;
}

.mv-login-card {
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    padding: 2.2rem;
}

.mv-login-card h1 {
    font-size: 1.5rem;
    margin-bottom: .35rem;
}

.mv-login-card .mv-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--mv-primary);
    margin-bottom: 1.3rem;
}

.mv-login-card .demo-box {
    background: #f8f9fa;
    border: 1px dashed #cfd8e3;
    padding: .7rem .9rem;
    border-radius: 8px;
    font-size: .8rem;
    margin-top: 1rem;
}

/* Stat cards */
.mv-stat {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: transform .15s ease;
}

.mv-stat:hover {
    transform: translateY(-2px);
}

.mv-stat .mv-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.bg-mv-blue    { background: linear-gradient(135deg, #4e73df, #224abe); }
.bg-mv-green   { background: linear-gradient(135deg, #1cc88a, #13855c); }
.bg-mv-orange  { background: linear-gradient(135deg, #f6c23e, #dda20a); }
.bg-mv-red     { background: linear-gradient(135deg, #e74a3b, #be2617); }
.bg-mv-purple  { background: linear-gradient(135deg, #6f42c1, #4e2c93); }
.bg-mv-teal    { background: linear-gradient(135deg, #20c997, #168765); }

.mv-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.mv-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    font-weight: 600;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.badge-soft-success { background: #d1f2e5; color: #13855c; }
.badge-soft-warning { background: #fdecc8; color: #8a6100; }
.badge-soft-danger  { background: #fadbd8; color: #a42a1d; }
.badge-soft-info    { background: #d6ecff; color: #0b5ed7; }
.badge-soft-secondary { background: #e9ecef; color: #495057; }

.mv-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.mv-empty i {
    font-size: 2.5rem;
    opacity: .3;
    display: block;
    margin-bottom: .8rem;
}

.code-inline {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .85em;
    word-break: break-all;
}
