/* =====================================================
   ZYLOG VMS - Modern Professional Enterprise UI
   Clean, Elegant, Responsive Design System
   ===================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Bootstrap 4 Gap Polyfill ---- */
.d-flex.gap-2, .gap-2 { gap: 8px !important; }
.d-flex.gap-3, .gap-3 { gap: 12px !important; }

/* ---- Professional Theme Variables ---- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #64748b;
    --success: #10b981;
    --success-light: #ecfdf5;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --info: #0284c7;
    --info-light: #f0f9ff;

    --dark: #1e293b;
    --dark-surface: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text: #1e293b;
    --text-muted: #64748b;
    --sidebar-width: 240px;
    --sidebar-bg: #1e293b;
    --sidebar-text: #cbd5e1;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --header-height: 60px;

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.04);

    --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    color: var(--text);
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; font-weight: 500; transition: var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: none; }

/* =====================================================
   HEADER
   ===================================================== */
.header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    min-width: var(--sidebar-width);
    gap: 12px;
    transition: min-width 0.2s ease, width 0.2s ease;
}

.header-left img {
    height: 36px;
    object-fit: contain;
    transition: all 0.2s ease;
}

.page-title-box h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.2px;
}

#toggle_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    margin-right: 12px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    color: var(--secondary);
}

#toggle_btn:hover {
    background: var(--light);
    border-color: var(--border-hover);
    color: var(--dark);
}

.bar-icon { display: flex; flex-direction: column; gap: 3.5px; }
.bar-icon span {
    display: block;
    width: 17px;
    height: 2px;
    background: var(--dark);
    border-radius: 1px;
}

/* User Menu */
.nav.user-menu { margin-left: auto; align-items: center; gap: 8px; }

.user-menu .nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.user-menu .nav-item .nav-link:hover {
    background: var(--light);
    border-color: var(--border-hover);
}

.user-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    background: #ffffff;
    padding: 6px;
    min-width: 190px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid #0f172a;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-inner { padding: 12px 0 20px; }
.sidebar-menu { padding: 0; }
.sidebar-menu ul { list-style: none; padding: 0; margin: 0; }
.sidebar-menu ul > li { position: relative; }

.sidebar-menu ul > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    color: var(--sidebar-text);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin: 2px 10px;
    transition: var(--transition);
}

.sidebar-menu ul > li > a:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.sidebar-menu ul > li.active > a,
.sidebar-menu ul > li > a.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3) !important;
}

.sidebar-menu ul > li.active > a i,
.sidebar-menu ul > li > a.active i {
    color: #ffffff !important;
}

.sidebar-menu ul > li > a i {
    font-size: 17px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Submenu */
.sidebar-menu .submenu > ul {
    background: rgba(0,0,0,0.18);
    padding: 4px 0;
    margin: 2px 10px;
    border-radius: var(--radius-sm);
}

.sidebar-menu .submenu > ul > li > a {
    padding: 7px 14px 7px 36px;
    font-size: 12.5px;
    color: #94a3b8;
    margin: 1px 4px;
}

.sidebar-menu .submenu > ul > li > a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}

.sidebar-menu .submenu > ul > li.active > a {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.sidebar-menu .menu-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 14px 18px 4px;
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */
.page-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   COLLAPSIBLE / MINI SIDEBAR
   ===================================================== */
body.mini-sidebar .header-left {
    min-width: 68px;
    width: 68px;
    justify-content: center;
    overflow: hidden;
}

body.mini-sidebar .header-left img {
    max-width: 42px;
    height: 28px;
}

body.mini-sidebar .sidebar {
    width: 68px;
    overflow: visible;
}

body.mini-sidebar .sidebar .sidebar-inner {
    overflow: visible;
}

body.mini-sidebar .page-wrapper {
    margin-left: 68px;
}

body.mini-sidebar .sidebar .menu-title {
    display: none !important;
}

body.mini-sidebar .sidebar .sidebar-menu ul > li > a {
    padding: 11px 0;
    margin: 4px 8px;
    justify-content: center;
    text-align: center;
    position: relative;
}

body.mini-sidebar .sidebar .sidebar-menu ul > li > a span,
body.mini-sidebar .sidebar .sidebar-menu ul > li > a .la-angle-down {
    display: none !important;
}

body.mini-sidebar .sidebar .sidebar-menu ul > li > a i {
    font-size: 20px;
    margin: 0 !important;
    width: auto;
}

/* Hover flyout submenu in mini-sidebar */
body.mini-sidebar .sidebar .sidebar-menu > ul > li.submenu {
    position: relative;
}

body.mini-sidebar .sidebar .sidebar-menu > ul > li.submenu:hover > ul {
    display: block !important;
    position: absolute;
    left: 68px;
    top: 0;
    width: 220px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    padding: 6px 0;
    margin: 0;
}

body.mini-sidebar .sidebar .sidebar-menu > ul > li.submenu:hover > ul > li > a {
    padding: 8px 14px;
    margin: 2px 6px;
    justify-content: flex-start;
    text-align: left;
}

body.mini-sidebar .sidebar .sidebar-menu > ul > li.submenu:hover > ul > li > a span {
    display: inline !important;
}

body.mini-sidebar .sidebar .sidebar-menu > ul > li.submenu:hover > ul > li > a i {
    font-size: 15px;
    margin-right: 8px !important;
}

/* =====================================================
   MOBILE & TABLET RESPONSIVE FIXES (Overrides style.css)
   ===================================================== */
#mobile_btn, .mobile_btn, .mobile-user-menu {
    display: none !important;
}

@media (max-width: 991.98px) {
    .header {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 12px !important;
        height: 60px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
    }

    .header .header-left,
    .header-left {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 170px !important;
        height: 60px !important;
        float: none !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin-left: 6px !important;
        order: 2 !important;
    }

    .header .header-left .logo,
    .header .header-left a.logo {
        display: inline-flex !important;
        align-items: center !important;
        height: 60px !important;
        line-height: 60px !important;
    }

    .header .header-left img,
    .header-left img {
        max-height: 38px !important;
        max-width: 145px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    #toggle_btn {
        display: flex !important;
        order: 1 !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        margin: 0 6px 0 0 !important;
        float: none !important;
        position: relative !important;
        z-index: 1052 !important;
        background: #ffffff !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-sm) !important;
        cursor: pointer !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .page-title-box {
        display: none !important;
    }

    .nav.user-menu {
        order: 3 !important;
        margin-left: auto !important;
        position: relative !important;
        z-index: 1052 !important;
        display: flex !important;
    }

    /* Mobile Sidebar Drawer - Overrides style.css margin-left */
    .sidebar {
        position: fixed !important;
        top: 60px !important;
        bottom: 0 !important;
        left: 0 !important;
        margin-left: 0 !important;
        width: 250px !important;
        transform: translateX(-105%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1060 !important;
        background: var(--sidebar-bg) !important;
        box-shadow: none !important;
    }

    .sidebar.opened {
        transform: translateX(0) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25) !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(2px) !important;
        z-index: 1055 !important;
    }

    .sidebar-overlay.opened {
        display: block !important;
    }

    .page-wrapper {
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.content {
    padding: 22px 26px;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
}

.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--primary); font-weight: 600; }

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: visible;
    position: relative;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 7px 7px 0 0;
}

.card-header .card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 22px;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.1px;
}

.form-control {
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    padding: 7px 12px;
    width: 100%;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
    background: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
}

textarea.form-control {
    height: auto;
    min-height: 85px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Input with Icon */
.input-icon { position: relative; }
.input-icon .form-control { padding-left: 38px; }
.input-icon .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

/* =====================================================
   BUTTONS (Clean Enterprise)
   ===================================================== */
.btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    vertical-align: middle;
}

.btn:hover {
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}
.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}
.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: #ffffff;
}
.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

.btn-outline-primary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.btn-lg {
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
}

.btn-block { width: 100%; justify-content: center; }

/* =====================================================
   TABLES
   ===================================================== */
.table-responsive {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 20px;
}

.table { margin: 0; width: 100%; }

.table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    border-top: none;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.1s ease;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:hover {
    background: #f8fafc !important;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    vertical-align: middle;
}

/* =====================================================
   BADGES & STATUS PILLS
   ===================================================== */
.badge, .badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-secondary { background: #f1f5f9; color: #64748b; }

/* =====================================================
   VISITOR CARDS (Dashboard Profile Widgets)
   ===================================================== */
.profile-widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.profile-widget:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.profile-img img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid #f1f5f9;
    box-shadow: var(--shadow-xs);
    object-fit: cover;
    margin-bottom: 8px;
}

.user-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--dark);
    margin: 6px 0 2px;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--dark);
}

.modal-header .close {
    color: var(--secondary);
    opacity: 0.8;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 12px 18px;
    background: #f8fafc;
}

/* =====================================================
   ENTERPRISE PRELOADER & ANIMATIONS
   ===================================================== */
#loader-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(248, 250, 252, 0.94) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loader-wrapper.loaded {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
    cursor: default !important;
}

#loader {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.loader-ellips {
    display: none !important;
}

.vms-preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 42px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(255, 255, 255, 0.9);
    animation: vmsPreloaderPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vms-spinner-container {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.vms-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #2563eb;
    border-right-color: #f97316;
    animation: vmsSpin 0.95s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.vms-spinner-ring-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dashed rgba(37, 99, 235, 0.35);
    animation: vmsSpinReverse 2.4s linear infinite;
}

.vms-spinner-badge {
    width: 54px;
    height: 54px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 6px;
}

.vms-loader-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vms-loader-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vms-loader-brand {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #0f172a;
    display: block;
}

.vms-loader-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
    margin-bottom: 12px;
}

.vms-loader-track {
    width: 130px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.vms-loader-bar {
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #f97316);
    border-radius: 9999px;
    position: absolute;
    animation: vmsProgress 1.3s ease-in-out infinite;
}

@keyframes vmsSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes vmsSpinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes vmsProgress {
    0% { left: -45%; width: 30%; }
    50% { left: 30%; width: 55%; }
    100% { left: 100%; width: 30%; }
}

@keyframes vmsPreloaderPop {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}
