/* ============================================================
   WeighMaster V2 - Design System
   Professional Enterprise Theme: Deep Teal + Gold
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Primary */
    --v2-primary: #0d7377;
    --v2-primary-light: #e6f3f3;
    --v2-primary-dark: #095456;
    --v2-primary-hover: #0a5f62;

    /* Accent */
    --v2-accent: #d4a843;
    --v2-accent-light: #fdf6e3;
    --v2-accent-dark: #b8922e;

    /* Semantic */
    --v2-success: #16a34a;
    --v2-danger: #dc2626;
    --v2-warning: #f59e0b;
    --v2-info: #0ea5e9;

    /* Neutrals */
    --v2-text-primary: #1e293b;
    --v2-text-secondary: #64748b;
    --v2-text-tertiary: #94a3b8;
    --v2-bg-page: #f1f5f9;
    --v2-bg-surface: #ffffff;
    --v2-border: #e2e8f0;
    --v2-border-dark: #cbd5e1;

    /* Layout */
    --v2-sidebar-width: 250px;
    --v2-sidebar-collapsed: 64px;
    --v2-topbar-height: 48px;
    --v2-border-radius: 12px;
    --v2-border-radius-sm: 8px;
    --v2-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --v2-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --v2-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* --- Base --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--v2-bg-page);
    color: var(--v2-text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--v2-text-primary);
    line-height: 1.3;
}

h1 { font-size: 2.125rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

a {
    color: var(--v2-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--v2-primary-hover);
    text-decoration: none;
}

/* --- Top Bar --- */
.v2-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v2-topbar-height);
    background: var(--v2-bg-surface);
    border-bottom: 1px solid var(--v2-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.v2-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v2-topbar-brand img {
    height: 32px;
    width: auto;
}

.v2-topbar-brand h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--v2-text-primary);
    white-space: nowrap;
}

.v2-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-topbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--v2-text-secondary);
    font-size: 20px;
    border-radius: var(--v2-border-radius-sm);
}

.v2-topbar-toggle:hover {
    background: var(--v2-primary-light);
    color: var(--v2-primary);
}

/* User dropdown in topbar */
.v2-user-menu {
    position: relative;
}

.v2-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-border-radius-sm);
    cursor: pointer;
    color: var(--v2-text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.v2-user-btn:hover {
    background: var(--v2-primary-light);
    border-color: var(--v2-primary);
}

.v2-user-btn i {
    font-size: 16px;
    color: var(--v2-text-secondary);
}

.v2-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--v2-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* --- Sidebar --- */
.v2-sidebar {
    position: fixed;
    top: var(--v2-topbar-height);
    left: 0;
    bottom: 0;
    width: var(--v2-sidebar-width);
    background: var(--v2-bg-surface);
    border-right: 1px solid var(--v2-border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    transition: width 0.2s ease, transform 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--v2-border) transparent;
}

.v2-sidebar::-webkit-scrollbar {
    width: 4px;
}

.v2-sidebar::-webkit-scrollbar-thumb {
    background: var(--v2-border);
    border-radius: 2px;
}

.v2-sidebar-nav {
    padding: 12px 0;
    list-style: none;
    margin: 0;
}

/* Sidebar section labels */
.v2-sidebar-section {
    padding: 16px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--v2-text-tertiary);
}

/* Sidebar nav items */
.v2-sidebar-item {
    list-style: none;
}

.v2-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    color: var(--v2-text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.v2-sidebar-link:hover {
    color: var(--v2-primary);
    background: var(--v2-primary-light);
}

.v2-sidebar-link.active {
    color: var(--v2-primary);
    background: var(--v2-primary-light);
    border-left-color: var(--v2-accent);
    font-weight: 600;
}

.v2-sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.v2-sidebar-link .v2-link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar expandable sections */
.v2-sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.v2-sidebar-submenu.show {
    max-height: 600px;
}

.v2-sidebar-submenu .v2-sidebar-link {
    padding-left: 52px;
    font-size: 13px;
    border-left: none;
}

.v2-sidebar-submenu .v2-sidebar-link.active {
    border-left: none;
    background: var(--v2-primary-light);
}

/* Chevron rotation for expandable items */
.v2-sidebar-link .v2-chevron {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.v2-sidebar-link[aria-expanded="true"] .v2-chevron {
    transform: rotate(90deg);
}

/* Sidebar divider */
.v2-sidebar-divider {
    height: 1px;
    background: var(--v2-border);
    margin: 8px 16px;
}

/* --- Main Content --- */
.v2-main-content {
    margin-left: var(--v2-sidebar-width);
    padding-top: var(--v2-topbar-height);
    min-height: 100vh;
    transition: margin-left 0.2s ease;
}

.v2-page-content {
    padding: 24px;
}

/* Breadcrumb */
.v2-breadcrumb {
    padding: 12px 0;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--v2-text-tertiary);
}

.v2-breadcrumb a {
    color: var(--v2-text-secondary);
}

.v2-breadcrumb a:hover {
    color: var(--v2-primary);
}

/* Page header */
.v2-page-header {
    margin-bottom: 24px;
}

.v2-page-header h2 {
    margin: 0 0 4px;
    font-size: 1.5rem;
}

.v2-page-header p {
    margin: 0;
    color: var(--v2-text-secondary);
    font-size: 14px;
}

/* --- Cards --- */
.card {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-border-radius);
    box-shadow: var(--v2-shadow);
    background: var(--v2-bg-surface);
    transition: box-shadow 0.15s ease;
}

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

.card-header {
    background: var(--v2-bg-surface);
    border-bottom: 1px solid var(--v2-border);
    padding: 16px 20px;
    font-weight: 600;
    border-radius: var(--v2-border-radius) var(--v2-border-radius) 0 0;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--v2-text-primary);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

/* Metric cards */
.v2-metric-card {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-border-radius);
    background: var(--v2-bg-surface);
    padding: 20px;
    box-shadow: var(--v2-shadow);
    transition: all 0.15s ease;
}

.v2-metric-card:hover {
    box-shadow: var(--v2-shadow-md);
    transform: translateY(-1px);
}

.v2-metric-card .v2-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.v2-metric-card .v2-metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--v2-text-primary);
    line-height: 1;
}

.v2-metric-card .v2-metric-label {
    font-size: 13px;
    color: var(--v2-text-secondary);
    margin-top: 4px;
}

/* Card color variants */
.v2-metric-icon.primary {
    background: var(--v2-primary-light);
    color: var(--v2-primary);
}

.v2-metric-icon.success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--v2-success);
}

.v2-metric-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--v2-warning);
}

.v2-metric-icon.danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--v2-danger);
}

.v2-metric-icon.info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--v2-info);
}

.v2-metric-icon.accent {
    background: var(--v2-accent-light);
    color: var(--v2-accent-dark);
}

/* --- Buttons --- */
.btn-primary,
.btn-success {
    background-color: var(--v2-primary);
    border-color: var(--v2-primary);
    border-radius: var(--v2-border-radius-sm);
    font-weight: 500;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    background-color: var(--v2-primary-hover);
    border-color: var(--v2-primary-hover);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
}

.btn-primary:active,
.btn-success:active {
    background-color: var(--v2-primary-dark);
    border-color: var(--v2-primary-dark);
}

.btn-outline-primary,
.btn-outline-success {
    color: var(--v2-primary);
    border-color: var(--v2-primary);
    border-radius: var(--v2-border-radius-sm);
    font-weight: 500;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    background-color: var(--v2-primary);
    border-color: var(--v2-primary);
    color: #fff;
}

.btn-accent {
    background-color: var(--v2-accent);
    border-color: var(--v2-accent);
    color: #fff;
    border-radius: var(--v2-border-radius-sm);
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-accent:hover {
    background-color: var(--v2-accent-dark);
    border-color: var(--v2-accent-dark);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.btn-danger {
    border-radius: var(--v2-border-radius-sm);
}

.btn-warning {
    border-radius: var(--v2-border-radius-sm);
}

.btn-info {
    border-radius: var(--v2-border-radius-sm);
}

.btn-secondary {
    border-radius: var(--v2-border-radius-sm);
}

/* Button sizes */
.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--v2-border-radius-sm);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* --- Forms --- */
.form-control {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-border-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--v2-text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--v2-primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--v2-text-tertiary);
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--v2-text-secondary);
    margin-bottom: 6px;
}

.form-select {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-border-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--v2-text-primary);
}

.form-select:focus {
    border-color: var(--v2-primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
}

/* --- Tables --- */
.table {
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 12px 16px;
}

.table thead {
    background: var(--v2-primary-light);
}

.table thead th {
    border: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--v2-primary-dark);
    white-space: nowrap;
}

.table thead.table-dark th {
    color: #ffffff;
}

.table tbody tr {
    border-bottom: 1px solid var(--v2-border);
    transition: background 0.1s ease;
}

.table tbody tr:hover {
    background: rgba(13, 115, 119, 0.03);
}

.table tbody tr:nth-child(even) {
    background-color: #f8fafb;
}

.table tbody tr:nth-child(even):hover {
    background: rgba(13, 115, 119, 0.05);
}

.table td {
    vertical-align: middle;
    font-size: 13.5px;
    color: var(--v2-text-primary);
}

.table-responsive {
    background: var(--v2-bg-surface);
    border-radius: var(--v2-border-radius);
    box-shadow: var(--v2-shadow);
    overflow: hidden;
}

/* --- Badges --- */
.badge {
    font-weight: 500;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.badge.bg-success,
.bg-success {
    background-color: var(--v2-success) !important;
}

.badge.bg-danger,
.bg-danger {
    background-color: var(--v2-danger) !important;
}

.badge.bg-warning,
.bg-warning {
    background-color: var(--v2-warning) !important;
    color: #fff !important;
}

.badge.bg-info,
.bg-info {
    background-color: var(--v2-info) !important;
}

.badge.bg-primary,
.bg-primary {
    background-color: var(--v2-primary) !important;
}

/* --- Dropdown (topbar) --- */
.dropdown-menu {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-border-radius-sm);
    box-shadow: var(--v2-shadow-lg);
    padding: 6px;
    animation: v2-fadeIn 0.15s ease;
}

.dropdown-menu .dropdown-item {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--v2-text-primary);
    transition: all 0.1s ease;
}

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

.dropdown-menu .dropdown-item.active {
    background: var(--v2-primary-light);
    color: var(--v2-primary);
}

.dropdown-menu .dropdown-item i {
    margin-right: 8px;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.dropdown-menu .dropdown-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--v2-text-tertiary);
    padding: 8px 12px 4px;
}

.dropdown-menu .dropdown-divider {
    margin: 4px 0;
    border-color: var(--v2-border);
}

@keyframes v2-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Login Page --- */
.v2-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/assets/img/login-bg-sukhna.jpg') center/cover no-repeat fixed;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.v2-login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 58, 60, 0.55);
    pointer-events: none;
}

.v2-login-page::after {
    content: none;
}

.v2-login-card {
    background: var(--v2-bg-surface);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.v2-login-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.v2-login-logos img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.v2-login-title {
    text-align: center;
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--v2-text-primary);
}

.v2-login-divider {
    width: 48px;
    height: 3px;
    background: var(--v2-accent);
    border-radius: 2px;
    margin: 12px auto 8px;
    border: none;
}

.v2-login-subtitle {
    text-align: center;
    color: var(--v2-text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.v2-login-form .form-label {
    font-weight: 500;
    color: var(--v2-text-secondary);
}

.v2-login-form .form-control {
    height: 48px;
    padding: 12px 16px;
    font-size: 15px;
}

.v2-login-btn {
    width: 100%;
    height: 48px;
    background: var(--v2-accent);
    border: none;
    border-radius: var(--v2-border-radius-sm);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

.v2-login-btn:hover {
    background: var(--v2-accent-dark);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
    transform: translateY(-1px);
}

.v2-login-btn:active {
    transform: translateY(0);
}

.v2-login-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    z-index: 1;
}

/* --- Progress Bars --- */
.progress {
    border-radius: 6px;
    height: 6px;
    background: var(--v2-border);
}

.progress-bar {
    border-radius: 6px;
}

.progress-bar.bg-success {
    background-color: var(--v2-success) !important;
}

.progress-bar.bg-warning {
    background-color: var(--v2-warning) !important;
}

.progress-bar.bg-danger {
    background-color: var(--v2-danger) !important;
}

/* --- Status Indicators --- */
.v2-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.v2-status-dot.online {
    background: var(--v2-success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    animation: v2-pulse 2s infinite;
}

.v2-status-dot.warning {
    background: var(--v2-warning);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.v2-status-dot.offline {
    background: var(--v2-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.v2-status-dot.inactive {
    background: var(--v2-text-tertiary);
}

@keyframes v2-pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.3); }
    70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* --- Alerts --- */
.alert {
    border-radius: var(--v2-border-radius-sm);
    border: none;
    font-size: 14px;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

/* --- Modals --- */
.modal-content {
    border: none;
    border-radius: var(--v2-border-radius);
    box-shadow: var(--v2-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--v2-border);
    padding: 16px 20px;
}

.modal-footer {
    border-top: 1px solid var(--v2-border);
    padding: 12px 20px;
}

/* --- Footer --- */
.v2-footer {
    padding: 16px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--v2-text-tertiary);
    border-top: 1px solid var(--v2-border);
    margin-top: 32px;
}

/* Remove old footer styles */
.app-footer {
    position: relative !important;
    width: auto !important;
    background-color: transparent !important;
    border-top: 1px solid var(--v2-border) !important;
    font-size: 12px !important;
    color: var(--v2-text-tertiary) !important;
    padding: 16px 24px !important;
    margin-top: 32px !important;
}

/* --- Worker Node Cards (Dashboard) --- */
.v2-node-card {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-border-radius);
    background: var(--v2-bg-surface);
    padding: 16px;
    box-shadow: var(--v2-shadow);
    transition: all 0.15s ease;
    border-top: 3px solid var(--v2-primary);
}

.v2-node-card:hover {
    box-shadow: var(--v2-shadow-md);
    transform: translateY(-2px);
}

/* --- Pagination --- */
.page-link {
    color: var(--v2-primary);
    border-color: var(--v2-border);
    font-size: 13px;
    padding: 6px 12px;
}

.page-link:hover {
    background: var(--v2-primary-light);
    border-color: var(--v2-primary);
    color: var(--v2-primary);
}

.page-item.active .page-link {
    background-color: var(--v2-primary);
    border-color: var(--v2-primary);
}

/* --- Utility: Monospace --- */
.v2-mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    font-size: 12px;
}

/* --- Responsive --- */
@media (max-width: 1199px) {
    .v2-topbar-toggle {
        display: flex;
    }

    .v2-sidebar {
        transform: translateX(-100%);
    }

    .v2-sidebar.show {
        transform: translateX(0);
        box-shadow: var(--v2-shadow-lg);
    }

    .v2-main-content {
        margin-left: 0;
    }

    .v2-topbar-brand h5 {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .v2-login-card {
        padding: 32px 24px;
        margin: 16px;
    }

    .v2-page-content {
        padding: 16px;
    }

    .v2-topbar-brand h5 {
        display: none;
    }
}

/* --- Sidebar overlay for mobile --- */
.v2-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.v2-sidebar-backdrop.show {
    display: block;
}

/* --- Dashboard-specific overrides --- */
.card-icon {
    font-size: 24px;
    line-height: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Legacy compatibility: map old styles to new */
.info-card {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-border-radius);
    box-shadow: var(--v2-shadow);
    background: var(--v2-bg-surface);
    padding: 20px;
}

.wrapper {
    background: var(--v2-bg-surface);
    border-radius: var(--v2-border-radius);
    box-shadow: var(--v2-shadow);
    padding: 20px;
    margin-bottom: 24px;
}

/* Override old header/nav styles */
.header.header-nav {
    display: none !important;
}

/* Page-header override */
.page-header {
    background: none;
    border-bottom: none;
    padding: 0;
    margin-bottom: 24px;
}

/* Border-start cards in dashboard */
.border-start {
    border-left-width: 3px !important;
}
