/* =========================================================
   TNA Visa She's Next Programme 2026 — Design System
   Primary: #57c8e7
   ========================================================= */

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

/* ---------------------------------------------------------
   CSS Custom Properties
   --------------------------------------------------------- */
:root {
    --primary:        #57c8e7;
    --primary-dark:   #35b0d0;
    --primary-light:  #a8e5f3;
    --primary-glow:   rgba(87, 200, 231, 0.25);

    --sidebar-bg:     #0f1623;
    --sidebar-hover:  #1a2540;
    --sidebar-active: #1e2d4d;
    --sidebar-text:   #8d9bb5;
    --sidebar-width:  260px;

    --panel-dark:     #141c2e;
    --body-bg:        #f0f4f8;
    --card-bg:        #ffffff;
    --topbar-bg:      #ffffff;

    --text-primary:   #0f1623;
    --text-secondary: #5a6478;
    --text-muted:     #8d9bb5;

    --border:         #e2e8f0;
    --border-radius:  12px;
    --border-radius-sm: 8px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:      0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg:   0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

    --role-admin:  #7c3aed;
    --role-editor: #d97706;
    --role-viewer: #0284c7;

    --transition: .2s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ---------------------------------------------------------
   Scrollbar (webkit)
   --------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4cdd8; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.vsn-login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left panel — form */
.vsn-login-panel {
    width: 360px;
    min-width: 320px;
    background: var(--panel-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.vsn-login-brand {
    margin-bottom: 2.5rem;
}

.vsn-login-brand .brand-tag {
    display: inline-block;
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(87,200,231,.3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 1rem;
}

.vsn-login-brand h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: .4rem;
    letter-spacing: -.02em;
}

.vsn-login-brand p {
    color: var(--sidebar-text);
    font-size: .875rem;
    font-weight: 400;
}

/* Form labels */
.vsn-login-panel .form-label {
    color: #c4cfe8;
    font-size: .8125rem;
    font-weight: 500;
    margin-bottom: .45rem;
}

/* Inputs */
.vsn-login-panel .form-control {
    background: #1c2742;
    border: 1px solid #2a3655;
    color: #e2eaf8;
    border-radius: var(--border-radius-sm);
    padding: .65rem 1rem;
    font-size: .875rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.vsn-login-panel .form-control::placeholder { color: #4a5875; }

.vsn-login-panel .form-control:focus {
    background: #1c2742;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    color: #e2eaf8;
    outline: none;
}

/* Primary button */
.btn-vsn-primary {
    background: var(--primary);
    color: #0f1623;
    font-weight: 700;
    font-size: .9rem;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: .75rem 1.5rem;
    width: 100%;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    letter-spacing: .02em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-vsn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition);
}

.btn-vsn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(87,200,231,.4);
    transform: translateY(-1px);
}

.btn-vsn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-vsn-primary:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* Checkbox */
.vsn-login-panel .form-check-input {
    background-color: #1c2742;
    border-color: #2a3655;
    width: 16px;
    height: 16px;
}

.vsn-login-panel .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.vsn-login-panel .form-check-label {
    color: var(--sidebar-text);
    font-size: .8125rem;
}

.vsn-login-panel .forgot-link {
    color: var(--primary);
    font-size: .8125rem;
    transition: color var(--transition);
}
.vsn-login-panel .forgot-link:hover { color: var(--primary-light); }

.vsn-login-panel .contact-line {
    color: var(--sidebar-text);
    font-size: .8125rem;
    text-align: center;
    margin-top: 1.5rem;
}

.vsn-login-panel .contact-line a {
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition);
}
.vsn-login-panel .contact-line a:hover { color: var(--primary-light); }

/* Alert inside login */
.vsn-login-panel .alert-danger {
    background: rgba(220, 53, 69, .12);
    border: 1px solid rgba(220, 53, 69, .3);
    color: #f78c95;
    border-radius: var(--border-radius-sm);
    font-size: .8125rem;
    padding: .6rem 1rem;
}

/* Right panel — hero image */
.vsn-login-hero {
    flex: 1;
    background-color: var(--sidebar-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.vsn-login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15,22,35,.85) 0%,
        rgba(30,45,77,.65) 50%,
        rgba(87,200,231,.25) 100%
    );
    z-index: 1;
}

.vsn-login-hero-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    z-index: 2;
}

.vsn-login-hero-content .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(87,200,231,.15);
    border: 1px solid rgba(87,200,231,.4);
    color: var(--primary-light);
    font-size: .8125rem;
    font-weight: 600;
    padding: .4rem 1rem;
    border-radius: 99px;
    backdrop-filter: blur(8px);
    margin-bottom: 1rem;
}

.vsn-login-hero-content h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    margin-bottom: .75rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.vsn-login-hero-content p {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    max-width: 420px;
}

/* =========================================================
   DASHBOARD LAYOUT
   ========================================================= */

/* Sidebar */
.vsn-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.vsn-sidebar-brand {
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.vsn-sidebar-brand .brand-name {
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.vsn-sidebar-brand .brand-year {
    font-size: .75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Sidebar nav */
.vsn-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    list-style: none;
}

.vsn-nav-section-label {
    font-size: .675rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3a4a68;
    padding: .75rem 1.25rem .3rem;
}

.vsn-nav-item a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.25rem;
    color: var(--sidebar-text);
    font-size: .875rem;
    font-weight: 500;
    border-radius: 0;
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.vsn-nav-item a:hover {
    background: var(--sidebar-hover);
    color: #c4d0ea;
}

.vsn-nav-item a.active {
    background: var(--sidebar-active);
    color: var(--primary);
}

.vsn-nav-item a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.vsn-nav-item a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.vsn-nav-badge {
    margin-left: auto;
    background: var(--primary-glow);
    color: var(--primary);
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    border: 1px solid rgba(87,200,231,.3);
}

/* Sidebar bottom user area */
.vsn-sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.vsn-sidebar-user .user-info {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.vsn-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 700;
    color: #0f1623;
    flex-shrink: 0;
}

.vsn-sidebar-user .user-name {
    font-size: .8125rem;
    font-weight: 600;
    color: #c4d0ea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vsn-sidebar-user .user-role {
    font-size: .7rem;
    color: var(--sidebar-text);
    text-transform: capitalize;
}

.vsn-sidebar-user .logout-btn {
    margin-left: auto;
    color: var(--sidebar-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}
.vsn-sidebar-user .logout-btn:hover {
    color: #f87171;
    background: rgba(248,113,113,.1);
}

/* Main content area */
.vsn-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.vsn-topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.vsn-topbar .page-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.vsn-topbar .breadcrumb {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.vsn-topbar .breadcrumb-item.active { color: var(--text-secondary); }
.vsn-topbar .breadcrumb-item + .breadcrumb-item::before { color: var(--border); }

.vsn-topbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.vsn-topbar .topbar-user-name {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vsn-topbar .topbar-role-badge {
    font-size: .675rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    text-transform: capitalize;
}

/* Content area */
.vsn-content {
    flex: 1;
    padding: 2rem;
}

/* =========================================================
   ROLE BADGES
   ========================================================= */
.badge-role-admin  { background: rgba(124,58,237,.12); color: #7c3aed; border: 1px solid rgba(124,58,237,.25); }
.badge-role-editor { background: rgba(217,119,6,.12);  color: #b45309; border: 1px solid rgba(217,119,6,.25);  }
.badge-role-viewer { background: rgba(2,132,199,.12);  color: #0369a1; border: 1px solid rgba(2,132,199,.25);  }

.badge-role {
    font-size: .675rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    letter-spacing: .04em;
    text-transform: capitalize;
}

/* =========================================================
   KPI CARDS
   ========================================================= */
.vsn-kpi-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

.vsn-kpi-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.vsn-kpi-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: .08;
    transform: translate(20px, -20px);
}

.vsn-kpi-card.kpi-primary::after { background: var(--primary); }
.vsn-kpi-card.kpi-success::after { background: #10b981; }
.vsn-kpi-card.kpi-warning::after { background: #f59e0b; }
.vsn-kpi-card.kpi-danger::after  { background: #ef4444; }

.vsn-kpi-card .kpi-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.vsn-kpi-card .kpi-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.vsn-kpi-card .kpi-change {
    font-size: .75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.kpi-change.up   { color: #10b981; }
.kpi-change.down { color: #ef4444; }
.kpi-change.flat { color: var(--text-muted); }

.vsn-kpi-card .kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.kpi-icon.icon-primary { background: rgba(87,200,231,.12); color: var(--primary); }
.kpi-icon.icon-success { background: rgba(16,185,129,.12); color: #10b981; }
.kpi-icon.icon-warning { background: rgba(245,158,11,.12);  color: #f59e0b; }
.kpi-icon.icon-danger  { background: rgba(239,68,68,.12);   color: #ef4444; }

/* =========================================================
   DATA CARDS / PANELS
   ========================================================= */
.vsn-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.vsn-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.vsn-card-header h5 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.vsn-card-header .card-subtitle {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .125rem;
}

.vsn-card-body { padding: 1.5rem; }

/* =========================================================
   TABLES
   ========================================================= */
.vsn-table {
    width: 100%;
    border-collapse: collapse;
}

.vsn-table thead th {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    padding: .75rem 1rem;
    border-bottom: 2px solid var(--border);
    background: #f8fafc;
    white-space: nowrap;
}

.vsn-table tbody td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .8125rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

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

.vsn-table tbody tr {
    transition: background var(--transition);
}

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

.vsn-table .user-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.vsn-table .user-cell .mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: #0f1623;
    flex-shrink: 0;
}

.vsn-table .cell-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: .8125rem;
}

.vsn-table .cell-email {
    font-size: .75rem;
    color: var(--text-muted);
}

/* Status badge */
.badge-status {
    font-size: .675rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
}

.badge-status.active   { background: rgba(16,185,129,.12); color: #059669; border: 1px solid rgba(16,185,129,.25); }
.badge-status.inactive { background: rgba(107,114,128,.1);  color: #6b7280; border: 1px solid rgba(107,114,128,.2); }

/* =========================================================
   FORMS (inside cards)
   ========================================================= */
.vsn-form .form-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .4rem;
}

.vsn-form .form-control,
.vsn-form .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--border-radius-sm);
    padding: .6rem .9rem;
    font-size: .875rem;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--card-bg);
}

.vsn-form .form-control:focus,
.vsn-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-vsn-sm {
    font-size: .75rem;
    font-weight: 600;
    padding: .35rem .75rem;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.btn-vsn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}
.btn-vsn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

.btn-vsn-danger-sm {
    background: rgba(239,68,68,.1);
    border-color: rgba(239,68,68,.2);
    color: #dc2626;
}
.btn-vsn-danger-sm:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.btn-vsn-success-sm {
    background: rgba(16,185,129,.1);
    border-color: rgba(16,185,129,.2);
    color: #059669;
}
.btn-vsn-success-sm:hover {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

/* =========================================================
   MODAL
   ========================================================= */
.vsn-modal .modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.vsn-modal .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.vsn-modal .modal-title {
    font-weight: 700;
    font-size: .9375rem;
    color: var(--text-primary);
}

.vsn-modal .modal-body  { padding: 1.5rem; }
.vsn-modal .modal-footer { border-top: 1px solid var(--border); padding: 1rem 1.5rem; }

/* =========================================================
   CUSTOM SLIDE DRAWER
   ========================================================= */
.vsn-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 35, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vsn-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.vsn-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 100%;
    background: var(--card-bg);
    z-index: 1050;
    box-shadow: -8px 0 32px rgba(15, 22, 35, 0.08);
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.vsn-drawer.open {
    transform: translateX(0);
}

.vsn-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    flex-shrink: 0;
}

.vsn-drawer-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vsn-drawer-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vsn-drawer-close:hover {
    color: var(--text-primary);
    background: #e2e8f0;
}

.vsn-drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.vsn-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #f8fafc;
    flex-shrink: 0;
}

/* =========================================================
   ACTIVITY / TIMELINE
   ========================================================= */
.vsn-activity-item {
    display: flex;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
}

.vsn-activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}

.activity-dot.dot-primary { background: rgba(87,200,231,.15); color: var(--primary); }
.activity-dot.dot-success { background: rgba(16,185,129,.12); color: #10b981; }
.activity-dot.dot-warning { background: rgba(245,158,11,.12); color: #f59e0b; }
.activity-dot.dot-danger  { background: rgba(239,68,68,.12);  color: #ef4444; }

.activity-body .activity-text {
    font-size: .8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.activity-body .activity-meta {
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: .125rem;
}

/* =========================================================
   MISC / UTILITIES
   ========================================================= */
.vsn-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.text-primary-vsn { color: var(--primary) !important; }
.bg-primary-vsn   { background: var(--primary) !important; }

.spinner-vsn {
    width: 20px; height: 20px;
    border: 2px solid rgba(87,200,231,.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Page entry animation */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vsn-content > * {
    animation: fadeSlideUp .3s ease both;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .vsn-sidebar {
        transform: translateX(-100%);
    }
    .vsn-sidebar.open {
        transform: translateX(0);
    }
    .vsn-main {
        margin-left: 0;
    }
    .vsn-topbar {
        padding: 0 1rem;
    }
    .vsn-content {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .vsn-login-panel {
        width: 100%;
        min-width: unset;
    }
    .vsn-login-hero {
        display: none;
    }
    .vsn-kpi-card .kpi-value {
        font-size: 1.75rem;
    }
}

/* Sidebar overlay (mobile) */
.vsn-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
}
.vsn-sidebar-overlay.open { display: block; }
