/* =====================================================
   MVOGMS Dashboard Modern Shell
   Matches the storefront look: blue gradient accents,
   soft shadows, rounded surfaces, generous spacing.
   Loaded by admin/ and vendor/ via inc/header.php
   ===================================================== */

:root {
    --brand-blue: #2f80ed;
    --brand-navy: #1e3c72;
    --brand-grad: linear-gradient(135deg, #2f80ed 0%, #1e3c72 100%);
    --page-bg: #f1f5f9;
    --surface: #ffffff;
    --ink: #1e293b;
    --ink-muted: #64748b;
    --line: #eef2f7;
    --radius: .75rem;
}

body {
    background: var(--page-bg);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Source Sans Pro', sans-serif;
    color: var(--ink);
}

/* ---------- Sidebar ---------- */
.main-sidebar.sidebar-dark-primary {
    background: linear-gradient(180deg, #0f172a 0%, #16233f 100%);
}

.main-sidebar .brand-link.bg-primary {
    background: var(--brand-grad) !important;
    border-bottom: 0;
}

.main-sidebar .brand-link {
    min-height: 3.7rem;
}

.main-sidebar .brand-text {
    font-weight: 700;
    letter-spacing: .2px;
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link {
    border-radius: .55rem;
    margin: .15rem .55rem;
    color: #cbd5e1;
    font-weight: 500;
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link.active {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: 0 .4rem .9rem rgba(47,128,237,.35);
}

.main-sidebar .nav-sidebar .nav-header {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: .7rem;
    margin: 1rem .55rem .35rem;
    padding: 0;
}

.main-sidebar .nav-sidebar .nav-icon {
    color: inherit;
}

/* ---------- Navbar ---------- */
.main-header.navbar {
    border-bottom: 1px solid var(--line);
    background: #fff;
    min-height: 3.7rem;
}

.main-header .nav-link {
    color: var(--ink-muted) !important;
}

.main-header .nav-link:hover {
    color: var(--brand-blue) !important;
}

.main-header .navbar-nav > .nav-item > .btn {
    border-radius: 50rem;
}

/* Language switcher pill inside topbar */
.dash-lang-btn {
    border-radius: 50rem !important;
    border: 1px solid var(--line) !important;
    background: #fff !important;
    color: var(--ink) !important;
    font-weight: 600;
    font-size: .85rem;
    padding: .35rem .85rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

.dash-lang-btn:hover,
.dash-lang-btn:focus {
    color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 .2rem rgba(47,128,237,.15) !important;
}

.dash-lang-menu .dropdown-item {
    font-size: .875rem;
    border-radius: .5rem;
    margin: .1rem .35rem;
    padding: .4rem .8rem;
}

.dash-lang-menu .dropdown-item.active {
    background: #eef4ff;
    color: var(--brand-blue);
    font-weight: 700;
}

/* ---------- Content ---------- */
.content-wrapper {
    background: var(--page-bg);
}

.content-wrapper > .content {
    padding: 1.25rem 1.5rem 2rem;
}

.content-header {
    margin-bottom: 1rem;
}

.content-header h1 {
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--ink);
    letter-spacing: -.2px;
}

.content-header h1 small {
    color: var(--ink-muted);
    font-weight: 500;
    font-size: .85rem;
}

.content-header .breadcrumb {
    background: transparent;
    font-size: .8rem;
}

.content-header .breadcrumb a {
    color: var(--brand-blue);
}

/* ---------- Cards ---------- */
.card {
    border: 0 !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.08), 0 6px 24px rgba(15,23,42,.05) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 1.25rem;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
}

.card-header .card-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
}

.card-footer {
    background: #fafbfc;
    border-top: 1px solid var(--line);
}

/* Dashboard stat cards */
.small-box {
    border-radius: var(--radius) !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.08), 0 6px 24px rgba(15,23,42,.05) !important;
    border: 0 !important;
    overflow: hidden;
}

.small-box.bg-primary {
    background: var(--brand-grad) !important;
}

.small-box .inner h3,
.small-box .inner p {
    color: #fff;
}

.small-box .icon > i {
    color: rgba(255,255,255,.55) !important;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: .5rem;
    font-weight: 600;
}

.btn-primary {
    background: var(--brand-grad);
    border: 0;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-navy);
    border: 0;
    box-shadow: 0 .4rem 1rem rgba(47,128,237,.35) !important;
}

.btn-pill {
    border-radius: 50rem !important;
}

.btn-info,
.btn-outline-info { color: #1e8ad6; }
.btn-info { background: #e6f4ff; border: 0; }
.btn-info:hover { background: #1e8ad6; color: #fff; }

.btn-light {
    background: #f8fafc;
    border: 1px solid var(--line);
}

.btn-outline-primary {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.btn-outline-primary:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
}

.btn-sm {
    border-radius: .4rem;
}

/* ---------- Tables ---------- */
.table thead th {
    border-bottom: 2px solid #e7edf5;
    color: var(--ink-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 700;
    background: #f8fafc;
}

.table tbody td {
    vertical-align: middle;
    border-color: #f0f3f8;
    font-size: .875rem;
}

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

/* ---------- Forms ---------- */
.form-control,
.custom-select,
.input-group-text {
    border-radius: .5rem;
    border-color: #dbe3ee;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 .2rem rgba(47,128,237,.15);
}

.form-control-border {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #dbe3ee;
}

label.control-label {
    font-weight: 600;
    color: var(--ink);
    font-size: .875rem;
}

.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px);
    border-color: #dbe3ee;
    border-radius: .5rem;
}

/* ---------- Modals ---------- */
.modal-content {
    border: 0 !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 1rem 3rem rgba(15,23,42,.2) !important;
}

.modal-header {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem 1.25rem;
}

.modal-header .modal-title {
    font-weight: 700;
    color: var(--ink);
}

.modal-footer {
    border-top: 1px solid var(--line);
    padding: .9rem 1.25rem;
}

/* ---------- Pagination ---------- */
.pagination .page-link {
    border-radius: .45rem !important;
    margin: 0 .15rem;
    color: var(--brand-blue);
    border: 1px solid var(--line);
}

.pagination .page-item.active .page-link {
    background: var(--brand-grad);
    border-color: transparent;
}

/* ---------- Badges ---------- */
.badge {
    padding: .4em .65em;
    font-weight: 600;
    border-radius: 50rem;
}

/* ---------- Breadcrumb + misc ---------- */
.nav-tabs .nav-link {
    border-radius: .5rem .5rem 0 0;
}

.list-group-item {
    border-color: var(--line);
}

hr {
    border-color: var(--line);
}

/* Small screens */
@media (max-width: 991.98px) {
    .content-wrapper > .content {
        padding: 1rem .9rem 1.5rem;
    }
    .main-sidebar .nav-sidebar > .nav-item > .nav-link {
        margin: .1rem .35rem;
    }
}
