/* ============================================================================
   VAULTRIX LABS — DESIGN TOKENS & GLOBAL STYLES
   Palette: near-black navy base, glass-panel surfaces, teal→indigo accent.
   ============================================================================ */

:root {
    --vx-bg: #050816;
    --vx-surface: #0B1020;
    --vx-card: rgba(255, 255, 255, 0.04);
    --vx-card-hover: rgba(255, 255, 255, 0.07);
    --vx-border: rgba(255, 255, 255, 0.08);
    --vx-border-strong: rgba(255, 255, 255, 0.14);
    --vx-text: #E7EAF2;
    --vx-muted: #8B93A7;
    --vx-accent-teal: #2F8FF5;
    --vx-accent-indigo: #1D4ED8;
    --vx-success: #34D399;
    --vx-pending: #FBBF24;
    --vx-danger: #F87171;
    --vx-info: #60A5FA;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--vx-bg);
    color: var(--vx-text);
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Grid + glow ambient background used behind hero and section breaks */
.vx-grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.vx-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
}

/* Glass surface used for cards throughout the app */
.vx-card {
    background: var(--vx-card);
    border: 1px solid var(--vx-border);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.vx-card:hover.vx-card--hoverable {
    background: var(--vx-card-hover);
    border-color: var(--vx-border-strong);
}

.vx-gradient-text {
    background: linear-gradient(90deg, var(--vx-accent-teal), var(--vx-accent-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vx-btn-primary {
    background: linear-gradient(90deg, var(--vx-accent-teal), var(--vx-accent-indigo));
    color: #04121A;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.vx-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(47, 143, 245, 0.3); }
.vx-btn-primary:active { transform: translateY(0); }
.vx-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.vx-btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--vx-border-strong);
    color: var(--vx-text);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: background 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.vx-btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); }

.vx-btn-danger {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #FCA5A5;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.6rem 1.25rem;
}
.vx-btn-danger:hover { background: rgba(248, 113, 113, 0.2); }

.vx-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--vx-border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    color: var(--vx-text);
    font-size: 0.925rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.vx-input::placeholder { color: #5B6478; }
.vx-input:focus {
    outline: none;
    border-color: var(--vx-accent-teal);
    background: rgba(47, 143, 245, 0.06);
}
.vx-label { font-size: 0.8rem; font-weight: 600; color: var(--vx-muted); margin-bottom: 0.35rem; display: block; }

/* Status badges — semantic color system, used consistently everywhere */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-success { background: rgba(52, 211, 153, 0.12); color: var(--vx-success); }
.badge-pending { background: rgba(251, 191, 36, 0.12); color: var(--vx-pending); }
.badge-danger  { background: rgba(248, 113, 113, 0.12); color: var(--vx-danger); }
.badge-neutral { background: rgba(139, 147, 167, 0.14); color: var(--vx-muted); }
.badge-info    { background: rgba(96, 165, 250, 0.12); color: var(--vx-info); }

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--vx-accent-teal);
    outline-offset: 2px;
}

/* Skeleton loader */
.vx-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 37%, rgba(255,255,255,0.03) 63%);
    background-size: 400% 100%;
    animation: vx-shimmer 1.4s ease infinite;
    border-radius: 8px;
}
@keyframes vx-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Scroll reveal (paired with small JS IntersectionObserver) */
.vx-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.vx-reveal.vx-visible { opacity: 1; transform: translateY(0); }

/* Floating ambient card animation used sparingly in the hero */
@keyframes vx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.vx-float { animation: vx-float 6s ease-in-out infinite; }

/* Number counter uses this class as a hook for JS */
.vx-counter { font-variant-numeric: tabular-nums; }

/* Custom scrollbar for tables/sidebars */
.vx-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.vx-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }

/* Table styling */
.vx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; }
.vx-table th { text-align: left; color: var(--vx-muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.75rem 1rem; border-bottom: 1px solid var(--vx-border); }
.vx-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.vx-table tr:hover td { background: rgba(255,255,255,0.015); }

/* Toast notifications */
.vx-toast { animation: vx-toast-in 0.3s ease; }
@keyframes vx-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Respect reduced motion preference everywhere */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .vx-float { animation: none; }
}

/* Mobile bottom nav (customer app) */
.vx-bottom-nav { display: none; }
@media (max-width: 768px) {
    .vx-bottom-nav { display: flex; }
}
