2276 lines
55 KiB
CSS

/* ================================================================
AMS — Asset Management System | Design System v2.0
Modern Minimalistic SaaS Dark Slate Theme
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
/* ── CSS Variables ─────────────────────────────────────────────── */
/* ----------------------------------------------------------------
Theme tokens. :root = LIGHT (default). [data-theme="dark"]
overrides with the original dark slate palette. Every component
reads these variables, so switching the data-theme attribute on
<html> re-skins the whole app with zero markup changes.
---------------------------------------------------------------- */
:root {
/* Surfaces — clean light SaaS */
--bg-root: #f1f5f9; /* page backdrop (slate 100) */
--bg-surface: #ffffff; /* topbar / inset surfaces */
--bg-card: #ffffff; /* cards */
--bg-card-hover: #f8fafc; /* card / row hover */
--bg-elevated: #ffffff; /* popovers / dropdowns */
--bg-sidebar: #ffffff; /* sidebar */
--bg-popover: #ffffff; /* menus / panels */
/* Tint used for subtle hover / zebra overlays */
--overlay-rgb: 15, 23, 42; /* slate 900 → darkens on light bg */
--border: rgba(15, 23, 42, 0.08);
--border-strong: rgba(15, 23, 42, 0.14);
--border-accent: rgba(99, 102, 241, 0.30);
--primary: #6366F1; /* Indigo (shared) */
--primary-light: #4F46E5; /* darker for contrast on light */
--primary-dark: #4338CA;
--primary-glow: rgba(99, 102, 241, 0.08);
--primary-glow2: rgba(99, 102, 241, 0.16);
--cyan: #0891B2;
--cyan-light: #06B6D4;
--cyan-glow: rgba(6, 182, 212, 0.10);
--success: #059669;
--success-bg: rgba(16, 185, 129, 0.12);
--warning: #D97706;
--warning-bg: rgba(245, 158, 11, 0.14);
--danger: #DC2626;
--danger-bg: rgba(239, 68, 68, 0.10);
--info: #2563EB;
--info-bg: rgba(59, 130, 246, 0.10);
--purple: #9333EA;
--purple-bg: rgba(168, 85, 247, 0.10);
/* Badge text — readable on light tinted chips */
--badge-red: #DC2626;
--badge-green: #059669;
--badge-amber: #B45309;
--badge-blue: #2563EB;
--badge-indigo: #4F46E5;
--badge-purple: #9333EA;
--badge-cyan: #0E7490;
--c-on-accent: #ffffff; /* text on solid accent buttons */
--glass-bg: rgba(255, 255, 255, 0.72); /* frosted login card */
--topbar-bg: rgba(255, 255, 255, 0.80); /* blurred sticky topbar */
--scrim: rgba(15, 23, 42, 0.40); /* modal backdrop */
--text-primary: #0f172a; /* slate 900 */
--text-secondary:#475569; /* slate 600 */
--text-muted: #64748b; /* slate 500 */
--sidebar-w: 260px;
--topbar-h: 68px;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 24px;
/* Soft ambient shadows (light) */
--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
--shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.16);
/* Fluid, professional transition curves */
--t: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
--t-fast: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
--t-slow: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ── DARK THEME (original slate palette, preserved) ──────────────── */
[data-theme="dark"] {
--bg-root: #030712;
--bg-surface: #090d16;
--bg-card: #0f172a;
--bg-card-hover: #1e293b;
--bg-elevated: #1e293b;
--bg-sidebar: #080c14;
--bg-popover: #0d121f;
--overlay-rgb: 255, 255, 255; /* lightens on dark bg */
--border: rgba(255, 255, 255, 0.04);
--border-strong: rgba(255, 255, 255, 0.08);
--border-accent: rgba(99, 102, 241, 0.20);
--primary-light: #818CF8;
--primary-dark: #4F46E5;
--primary-glow: rgba(99, 102, 241, 0.06);
--primary-glow2: rgba(99, 102, 241, 0.15);
--cyan: #06B6D4;
--cyan-light: #22D3EE;
--cyan-glow: rgba(6, 182, 212, 0.06);
--success: #10B981;
--success-bg: rgba(16, 185, 129, 0.06);
--warning: #F59E0B;
--warning-bg: rgba(245, 158, 11, 0.06);
--danger: #EF4444;
--danger-bg: rgba(239, 68, 68, 0.06);
--info: #3B82F6;
--info-bg: rgba(59, 130, 246, 0.06);
--purple: #A855F7;
--purple-bg: rgba(168, 85, 247, 0.06);
--badge-red: #f87171;
--badge-green: #34d399;
--badge-amber: #fbbf24;
--badge-blue: #60a5fa;
--badge-indigo: #a5b4fc;
--badge-purple: #c084fc;
--badge-cyan: #22d3ee;
--glass-bg: rgba(15, 23, 42, 0.65);
--topbar-bg: rgba(3, 7, 18, 0.75);
--scrim: rgba(3, 7, 18, 0.60);
--text-primary: #f8fafc;
--text-secondary:#94a3b8;
--text-muted: #64748b;
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.55);
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
}
/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.lucide {
width: 18px;
height: 18px;
stroke-width: 2px;
display: inline-flex;
align-items: center;
justify-content: center;
vertical-align: middle;
}
.nav-icon .lucide {
width: 16px;
height: 16px;
}
html {
font-size: 14px;
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-root);
color: var(--text-primary);
line-height: 1.5;
min-height: 100vh;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
color: var(--primary-light);
text-decoration: none;
transition: var(--t-fast);
}
a:hover {
color: var(--primary);
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(var(--overlay-rgb), 0.08);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(var(--overlay-rgb), 0.18);
}
/* ── App Layout ─────────────────────────────────────────────────── */
.app-layout {
display: flex;
min-height: 100vh;
}
/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: var(--sidebar-w);
background: var(--bg-sidebar); /* Darker Slate for visual containment */
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
z-index: 100;
overflow-y: auto;
overflow-x: hidden;
transition: var(--t-slow);
}
.sidebar-logo {
display: flex;
align-items: center;
gap: 12px;
padding: 22px 20px 20px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.logo-icon {
width: 36px;
height: 36px;
background: linear-gradient(135deg, var(--primary), var(--cyan));
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 17px;
flex-shrink: 0;
box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}
.logo-title {
font-size: 17px;
font-weight: 700;
letter-spacing: -0.5px;
color: var(--text-primary);
}
.logo-sub {
font-size: 9px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1.2px;
margin-top: 2px;
font-weight: 600;
}
.sidebar-nav {
flex: 1;
padding: 16px 0;
overflow-y: auto;
}
.nav-section-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--text-muted);
padding: 16px 20px 6px;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
margin: 2px 12px;
border-radius: 10px;
color: var(--text-secondary);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: var(--t-fast);
text-decoration: none;
white-space: nowrap;
overflow: hidden;
position: relative;
border: 1px solid transparent;
}
.nav-item:hover {
background: rgba(var(--overlay-rgb), 0.02);
color: var(--text-primary);
}
.nav-item.active {
background: var(--primary-glow);
color: var(--primary-light);
border: 1px solid var(--border-accent);
}
.nav-item.active::before {
content: '';
position: absolute;
left: 0;
top: 25%;
height: 50%;
width: 3px;
background: var(--primary);
border-radius: 0 4px 4px 0;
}
.nav-icon {
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
flex-shrink: 0;
filter: grayscale(0.2);
}
.nav-badge {
margin-left: auto;
background: rgba(239, 68, 68, 0.15);
color: var(--badge-red);
font-size: 10px;
font-weight: 700;
padding: 2px 8px;
border-radius: 10px;
min-width: 20px;
text-align: center;
border: 1px solid rgba(239, 68, 68, 0.2);
}
.sidebar-footer {
padding: 16px 12px;
border-top: 1px solid var(--border);
flex-shrink: 0;
}
.user-card {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
border-radius: var(--radius-md);
cursor: pointer;
transition: var(--t-fast);
}
.user-card:hover {
background: rgba(var(--overlay-rgb), 0.03);
}
.user-av {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary), var(--purple));
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 12px;
flex-shrink: 0;
border: 1px solid rgba(var(--overlay-rgb), 0.1);
}
.user-name {
font-size: 13px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--text-primary);
}
.user-role {
font-size: 11px;
color: var(--text-secondary);
}
/* ── Main ─────────────────────────────────────────────────────── */
.main-wrapper {
margin-left: var(--sidebar-w);
width: calc(100% - var(--sidebar-w));
display: flex;
flex-direction: column;
min-height: 100vh;
min-width: 0; /* allow children to shrink so wide tables scroll, not overflow */
}
/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
position: sticky;
top: 0;
z-index: 150;
height: var(--topbar-h);
background: var(--topbar-bg); /* Blurs page background elegantly */
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 16px;
padding: 0 24px;
}
.topbar-left {
flex: 1;
display: flex;
align-items: center;
gap: 12px;
}
.topbar-title {
font-size: 18px;
font-weight: 700;
letter-spacing: -0.4px;
color: var(--text-primary);
}
.topbar-sub {
font-size: 12px;
color: var(--text-secondary);
font-weight: 400;
margin-left: 8px;
}
.topbar-search {
display: flex;
align-items: center;
gap: 10px;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 8px 14px;
width: 280px;
transition: var(--t-fast);
}
.topbar-search:focus-within {
border-color: var(--primary-light);
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
background: var(--bg-card);
}
.topbar-search input {
background: none;
border: none;
outline: none;
color: var(--text-primary);
font-size: 13px;
width: 100%;
font-family: inherit;
}
.topbar-search input::placeholder {
color: var(--text-muted);
}
.topbar-actions {
display: flex;
align-items: center;
gap: 10px;
}
.icon-btn {
width: 36px;
height: 36px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
background: var(--bg-surface);
color: var(--text-secondary);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--t-fast);
font-size: 14px;
position: relative;
}
.icon-btn:hover {
background: var(--bg-card-hover);
color: var(--text-primary);
border-color: var(--border-strong);
transform: translateY(-1px);
}
.badge-dot {
position: absolute;
top: 8px;
right: 8px;
width: 6px;
height: 6px;
background: var(--danger);
border-radius: 50%;
box-shadow: 0 0 8px var(--danger);
}
/* ── Content ─────────────────────────────────────────────────────── */
.content {
flex: 1;
padding: 24px 28px;
min-width: 0; /* prevent wide tables from expanding the layout */
max-width: 100%;
}
.page-header-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
flex-wrap: wrap;
gap: 14px;
}
.page-title {
font-size: 22px;
font-weight: 700;
letter-spacing: -0.5px;
color: var(--text-primary);
}
.page-sub {
font-size: 13px;
color: var(--text-secondary);
margin-top: 4px;
}
.page-actions {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
/* ── Cards ─────────────────────────────────────────────────────── */
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
transition: var(--t);
}
.card:hover {
border-color: var(--border-strong);
box-shadow: var(--shadow-md);
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 22px 0;
}
.card-title {
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
color: var(--text-primary);
letter-spacing: -0.1px;
}
.card-body {
padding: 22px;
}
.card-footer {
padding: 14px 22px;
border-top: 1px solid var(--border);
}
/* ── Stat Cards ─────────────────────────────────────────────────── */
.stat-card {
background: linear-gradient(180deg, var(--bg-card) 0%, rgba(var(--overlay-rgb), 0.03) 100%);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 14px 16px;
position: relative;
overflow: hidden;
transition: var(--t-slow);
cursor: default;
/* Compact horizontal layout: icon on the left, text stacked on the right */
display: grid;
grid-template-columns: auto 1fr;
column-gap: 13px;
row-gap: 1px;
align-content: center;
}
.stat-card::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, var(--sc-color, var(--primary)), transparent);
opacity: 0;
transition: var(--t-fast);
}
.stat-card:hover::after {
opacity: 1;
}
.stat-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-md);
border-color: var(--border-strong);
}
.stat-icon {
width: 38px;
height: 38px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 17px;
border: 1px solid rgba(var(--overlay-rgb), 0.02);
grid-column: 1;
grid-row: 1 / span 2; /* sits beside the label + value */
align-self: center;
flex-shrink: 0;
}
.stat-label {
font-size: 10.5px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.6px;
font-weight: 600;
grid-column: 2;
grid-row: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stat-value {
font-size: 22px;
font-weight: 700;
letter-spacing: -0.6px;
line-height: 1.15;
color: var(--text-primary);
grid-column: 2;
grid-row: 2;
}
.stat-change {
font-size: 11.5px;
margin-top: 2px;
display: flex;
align-items: center;
gap: 4px;
font-weight: 500;
grid-column: 2;
grid-row: 3;
}
.stat-change.up {
color: var(--success);
}
.stat-change.down {
color: var(--danger);
}
/* ── Grids ─────────────────────────────────────────────────────── */
.grid-4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.grid-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.grid-charts {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 16px;
}
.col-span-2 {
grid-column: span 2;
}
.col-span-3 {
grid-column: span 3;
}
/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 18px;
border-radius: var(--radius-md);
border: 1px solid transparent;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: var(--t-fast);
font-family: inherit;
white-space: nowrap;
text-decoration: none;
line-height: 1.2;
}
.btn:active {
transform: scale(0.96);
}
.btn-primary {
background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
color: var(--c-on-accent);
border-color: rgba(0, 0, 0, 0.15);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 12px rgba(99, 102, 241, 0.15);
}
.btn-primary:hover {
background: linear-gradient(180deg, #7275f8 0%, #574ef2 100%);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 20px rgba(99, 102, 241, 0.3);
transform: translateY(-1px);
}
.btn-secondary {
background: rgba(var(--overlay-rgb), 0.02);
color: var(--text-primary);
border-color: var(--border);
}
.btn-secondary:hover {
background: rgba(var(--overlay-rgb), 0.05);
border-color: var(--border-strong);
transform: translateY(-1px);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border-color: transparent;
}
.btn-ghost:hover {
background: rgba(var(--overlay-rgb), 0.03);
color: var(--text-primary);
}
.btn-danger {
background: rgba(239, 68, 68, 0.08);
color: var(--badge-red);
border-color: rgba(239, 68, 68, 0.15);
}
.btn-danger:hover {
background: var(--danger);
color: var(--c-on-accent);
border-color: var(--danger);
transform: translateY(-1px);
}
.btn-success {
background: rgba(16, 185, 129, 0.08);
color: var(--badge-green);
border-color: rgba(16, 185, 129, 0.15);
}
.btn-success:hover {
background: var(--success);
color: var(--c-on-accent);
border-color: var(--success);
transform: translateY(-1px);
}
.btn-sm {
padding: 6px 12px;
font-size: 12px;
border-radius: var(--radius-sm);
}
.btn-lg {
padding: 12px 24px;
font-size: 14px;
}
.btn-icon {
width: 32px;
height: 32px;
padding: 0;
justify-content: center;
border-radius: var(--radius-sm);
flex-shrink: 0;
}
/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 100px;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.6px;
border: 1px solid transparent;
}
.badge-dot-ind {
width: 5px;
height: 5px;
border-radius: 50%;
flex-shrink: 0;
}
.badge-success {
background: rgba(16, 185, 129, 0.08);
color: var(--badge-green);
border-color: rgba(16, 185, 129, 0.15);
}
.badge-warning {
background: rgba(245, 158, 11, 0.08);
color: var(--badge-amber);
border-color: rgba(245, 158, 11, 0.15);
}
.badge-danger {
background: rgba(239, 68, 68, 0.08);
color: var(--badge-red);
border-color: rgba(239, 68, 68, 0.15);
}
.badge-info {
background: rgba(59, 130, 246, 0.08);
color: var(--badge-blue);
border-color: rgba(59, 130, 246, 0.15);
}
.badge-primary {
background: rgba(99, 102, 241, 0.08);
color: var(--badge-indigo);
border-color: var(--border-accent);
}
.badge-purple {
background: rgba(168, 85, 247, 0.08);
color: var(--badge-purple);
border-color: rgba(168, 85, 247, 0.15);
}
.badge-neutral {
background: rgba(var(--overlay-rgb), 0.03);
color: var(--text-secondary);
border-color: var(--border);
}
.badge-cyan {
background: rgba(6, 182, 212, 0.08);
color: var(--badge-cyan);
border-color: rgba(6, 182, 212, 0.15);
}
/* ── Tables ─────────────────────────────────────────────────────── */
.table-wrapper {
overflow-x: auto;
border-radius: var(--radius-md);
border: 1px solid var(--border);
background: var(--bg-card);
box-shadow: var(--shadow-sm);
}
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.data-table thead {
background: var(--bg-surface);
position: sticky;
top: 0;
z-index: 2;
}
.data-table th {
padding: 14px 16px;
font-size: 10.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--text-muted);
text-align: left;
border-bottom: 1px solid var(--border);
white-space: nowrap;
cursor: pointer;
user-select: none;
transition: var(--t-fast);
}
.data-table th:hover {
color: var(--text-secondary);
}
.data-table td {
padding: 14px 16px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
color: var(--text-secondary);
}
.data-table tr:last-child td {
border-bottom: none;
}
.data-table tbody tr {
transition: var(--t-fast);
cursor: pointer;
}
.data-table tbody tr:hover {
background: rgba(var(--overlay-rgb), 0.015);
}
.data-table tbody tr:hover td {
color: var(--text-primary);
}
.asset-cell {
display: flex;
align-items: center;
gap: 12px;
}
.asset-ic {
width: 32px;
height: 32px;
border-radius: var(--radius-sm);
background: var(--primary-glow);
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
flex-shrink: 0;
border: 1px solid var(--border-accent);
}
.asset-n {
font-weight: 600;
color: var(--text-primary);
font-size: 13.5px;
}
.asset-id {
font-size: 11px;
color: var(--text-muted);
margin-top: 1px;
}
/* ── Filters ─────────────────────────────────────────────────────── */
.filters-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 18px;
flex-wrap: wrap;
}
.search-wrap {
display: flex;
align-items: center;
gap: 10px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 8px 14px;
flex: 1;
min-width: 180px;
max-width: 340px;
transition: var(--t-fast);
}
.search-wrap:focus-within {
border-color: var(--primary-light);
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.search-wrap input {
background: none;
border: none;
outline: none;
color: var(--text-primary);
font-size: 13px;
width: 100%;
font-family: inherit;
}
.search-wrap input::placeholder {
color: var(--text-muted);
}
.filter-sel {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 8px 14px;
color: var(--text-secondary);
font-size: 13px;
font-family: inherit;
outline: none;
cursor: pointer;
transition: var(--t-fast);
}
.filter-sel:focus {
border-color: var(--primary-light);
color: var(--text-primary);
}
.filter-sel option {
background: var(--bg-elevated);
color: var(--text-primary);
}
/* ── Forms ─────────────────────────────────────────────────────── */
.form-group {
margin-bottom: 18px;
}
.form-label {
display: block;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
letter-spacing: 0.2px;
}
.form-label .req {
color: var(--danger);
margin-left: 3px;
}
.form-input, .form-select, .form-textarea {
width: 100%;
background: var(--bg-root);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 11px 14px;
color: var(--text-primary);
font-size: 13.5px;
font-family: inherit;
outline: none;
transition: var(--t-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
border-color: var(--primary-light);
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
background: var(--bg-card);
}
.form-input::placeholder, .form-textarea::placeholder {
color: var(--text-muted);
}
.form-select option {
background: var(--bg-elevated);
}
.form-textarea {
resize: vertical;
min-height: 84px;
}
.form-hint {
font-size: 11px;
color: var(--text-muted);
margin-top: 6px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.form-row-3 {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 16px;
}
/* ── Tabs ─────────────────────────────────────────────────────── */
.tabs {
border-bottom: 1px solid var(--border);
display: flex;
gap: 8px;
margin-bottom: 20px;
overflow-x: auto;
}
.tab-btn {
padding: 12px 18px;
background: none;
border: none;
border-bottom: 2px solid transparent;
color: var(--text-muted);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: var(--t-fast);
font-family: inherit;
white-space: nowrap;
display: flex;
align-items: center;
gap: 8px;
margin-bottom: -1px;
}
.tab-btn:hover {
color: var(--text-primary);
}
.tab-btn.active {
color: var(--primary-light);
border-bottom-color: var(--primary);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* ── Modals ─────────────────────────────────────────────────────── */
.modal-overlay {
position: fixed;
inset: 0;
background: var(--scrim);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 200;
display: none;
align-items: center;
justify-content: center;
padding: 20px;
animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open {
display: flex;
}
.modal {
background: var(--bg-popover); /* Custom popover dark base */
border: 1px solid var(--border-strong);
border-radius: var(--radius-xl);
width: 100%;
max-width: 540px;
max-height: 90vh;
display: flex;
flex-direction: column;
animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
box-shadow: var(--shadow-lg), 0 0 80px rgba(0,0,0,0.4);
}
.modal-lg {
max-width: 780px;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.modal-title {
font-size: 16px;
font-weight: 700;
color: var(--text-primary);
}
.modal-close {
width: 32px;
height: 32px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--bg-surface);
color: var(--text-secondary);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 14px;
transition: var(--t-fast);
}
.modal-close:hover {
color: var(--danger);
border-color: rgba(239, 68, 68, 0.3);
background: rgba(239, 68, 68, 0.05);
}
.modal-body {
padding: 24px;
overflow-y: auto;
flex: 1;
}
.modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
border-top: 1px solid var(--border);
flex-shrink: 0;
}
/* ── Toasts ─────────────────────────────────────────────────────── */
.toast-container {
position: fixed;
top: 24px;
right: 24px;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 12px;
}
.toast {
background: var(--bg-popover);
border: 1px solid var(--border-strong);
border-radius: var(--radius-md);
padding: 14px 18px;
display: flex;
align-items: center;
gap: 14px;
font-size: 13px;
min-width: 290px;
max-width: 380px;
animation: slideInRight 0.32s cubic-bezier(0.16, 1, 0.3, 1);
box-shadow: var(--shadow-md);
}
.toast.success {
border-left: 4px solid var(--success);
}
.toast.error {
border-left: 4px solid var(--danger);
}
.toast.warning {
border-left: 4px solid var(--warning);
}
.toast.info {
border-left: 4px solid var(--info);
}
.toast-icon {
font-size: 18px;
flex-shrink: 0;
}
.toast-msg {
flex: 1;
}
.toast-title {
font-weight: 600;
margin-bottom: 2px;
color: var(--text-primary);
}
.toast-text {
color: var(--text-secondary);
font-size: 11.5px;
}
/* ── Kanban ─────────────────────────────────────────────────────── */
.kanban-board {
display: flex;
gap: 16px;
overflow-x: auto;
padding-bottom: 12px;
align-items: flex-start;
}
.kanban-col {
min-width: 270px;
max-width: 290px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
flex-shrink: 0;
}
.kanban-col-header {
padding: 14px 16px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
}
.kanban-col-title {
font-size: 13px;
font-weight: 700;
display: flex;
align-items: center;
gap: 8px;
color: var(--text-primary);
}
.kanban-count {
background: rgba(var(--overlay-rgb), 0.05);
color: var(--text-secondary);
font-size: 10px;
font-weight: 700;
padding: 2px 8px;
border-radius: 10px;
}
.kanban-cards {
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
min-height: 140px;
}
.kanban-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 14px;
transition: var(--t-fast);
cursor: pointer;
}
.kanban-card:hover {
border-color: var(--primary-light);
transform: translateY(-2px);
box-shadow: var(--shadow-sm);
}
.kanban-card-title {
font-size: 13px;
font-weight: 600;
margin-bottom: 8px;
color: var(--text-primary);
}
.kanban-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
}
/* ── Timeline ─────────────────────────────────────────────────────── */
.timeline {
display: flex;
flex-direction: column;
}
.timeline-item {
display: flex;
gap: 16px;
padding-bottom: 22px;
position: relative;
}
.timeline-item:last-child {
padding-bottom: 0;
}
.tl-icon-wrap {
display: flex;
flex-direction: column;
align-items: center;
flex-shrink: 0;
}
.tl-icon {
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
z-index: 1;
flex-shrink: 0;
border: 1px solid rgba(var(--overlay-rgb), 0.05);
}
.tl-line {
width: 2px;
flex: 1;
background: var(--border);
margin-top: 4px;
}
.timeline-item:last-child .tl-line {
display: none;
}
.tl-content {
flex: 1;
padding-top: 2px;
}
.tl-title {
font-size: 13px;
font-weight: 600;
margin-bottom: 4px;
color: var(--text-primary);
}
.tl-desc {
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 4px;
}
.tl-time {
font-size: 11px;
color: var(--text-muted);
}
/* ── Progress ─────────────────────────────────────────────────────── */
.progress-wrap {
background: rgba(var(--overlay-rgb), 0.05);
border-radius: 100px;
height: 6px;
overflow: hidden;
}
.progress-fill {
height: 100%;
border-radius: 100px;
transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
background: linear-gradient(90deg, var(--primary), var(--cyan));
}
/* ── Alerts ─────────────────────────────────────────────────────── */
.alert {
display: flex;
align-items: flex-start;
gap: 14px;
padding: 14px 18px;
border-radius: var(--radius-md);
font-size: 13px;
margin-bottom: 12px;
}
.alert-danger {
background: rgba(239, 68, 68, 0.07);
border: 1px solid rgba(239, 68, 68, 0.15);
color: var(--badge-red);
}
.alert-warning {
background: rgba(245, 158, 11, 0.07);
border: 1px solid rgba(245, 158, 11, 0.15);
color: var(--badge-amber);
}
.alert-info {
background: rgba(59, 130, 246, 0.07);
border: 1px solid rgba(59, 130, 246, 0.15);
color: var(--badge-blue);
}
.alert-success {
background: rgba(16, 185, 129, 0.07);
border: 1px solid rgba(16, 185, 129, 0.15);
color: var(--badge-green);
}
.alert-icon {
font-size: 17px;
flex-shrink: 0;
}
.alert-title {
font-weight: 600;
margin-bottom: 2px;
color: var(--text-primary);
}
.alert-text {
color: var(--text-secondary);
font-size: 12.5px;
}
/* ── Empty State ─────────────────────────────────────────────────── */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 48px 24px;
text-align: center;
}
.empty-icon {
font-size: 40px;
margin-bottom: 16px;
opacity: 0.35;
}
.empty-title {
font-size: 15px;
font-weight: 600;
margin-bottom: 6px;
color: var(--text-primary);
}
.empty-text {
font-size: 13px;
color: var(--text-muted);
max-width: 290px;
margin-bottom: 20px;
line-height: 1.4;
}
/* ── Info Grid ─────────────────────────────────────────────────── */
.info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.info-label {
font-size: 10px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.8px;
font-weight: 600;
margin-bottom: 4px;
}
.info-value {
font-size: 13.5px;
color: var(--text-primary);
font-weight: 500;
}
/* ── Depreciation Display ────────────────────────────────────────── */
.dep-bar-wrap {
background: var(--bg-surface);
border-radius: var(--radius-md);
padding: 18px;
margin-bottom: 16px;
border: 1px solid var(--border);
}
.dep-nums {
display: flex;
justify-content: space-between;
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 10px;
}
/* ── QR Placeholder ─────────────────────────────────────────────── */
.qr-box {
background: #fff;
padding: 16px;
border-radius: var(--radius-md);
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 10px;
box-shadow: var(--shadow-sm);
}
.qr-grid {
width: 100px;
height: 100px;
display: grid;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: repeat(7, 1fr);
gap: 1px;
}
.qr-c {
background: #000;
border-radius: 1px;
}
.qr-c.w {
background: #fff;
}
.qr-lbl {
font-size: 9px;
color: #111;
font-weight: 700;
font-family: monospace;
}
/* ── Pagination ─────────────────────────────────────────────────── */
.pagination {
display: flex;
align-items: center;
gap: 6px;
justify-content: center;
padding: 16px;
border-top: 1px solid var(--border);
}
.page-btn {
width: 32px;
height: 32px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--bg-card);
color: var(--text-secondary);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 13px;
transition: var(--t-fast);
font-family: inherit;
font-weight: 600;
}
.page-btn:hover:not(:disabled) {
border-color: var(--primary-light);
color: var(--primary-light);
background: rgba(var(--overlay-rgb), 0.02);
}
.page-btn:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.page-btn.active {
background: var(--primary);
border-color: var(--primary);
color: var(--c-on-accent);
}
/* ── Dropdown ─────────────────────────────────────────────────── */
.dropdown {
position: relative;
}
.dropdown-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
background: var(--bg-popover);
border: 1px solid var(--border-strong);
border-radius: var(--radius-md);
padding: 6px;
min-width: 185px;
z-index: 100;
box-shadow: var(--shadow-md);
display: none;
animation: fadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-menu.open {
display: block;
}
.dropdown-item {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 12px;
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 13px;
cursor: pointer;
transition: var(--t-fast);
}
.dropdown-item:hover {
background: rgba(var(--overlay-rgb), 0.03);
color: var(--text-primary);
}
.dropdown-item.danger {
color: var(--badge-red);
}
.dropdown-item.danger:hover {
background: rgba(239, 68, 68, 0.08);
}
.dropdown-divider {
height: 1px;
background: var(--border);
margin: 6px 0;
}
/* ── Activity ─────────────────────────────────────────────────── */
.activity-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 0;
border-bottom: 1px solid var(--border);
}
.activity-item:last-child {
border-bottom: none;
}
.act-av {
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 700;
flex-shrink: 0;
border: 1px solid rgba(var(--overlay-rgb), 0.03);
}
.act-text {
font-size: 13px;
color: var(--text-secondary);
line-height: 1.4;
}
.act-text strong {
color: var(--text-primary);
font-weight: 600;
}
.act-time {
font-size: 11px;
color: var(--text-muted);
margin-top: 4px;
}
/* ── Bulk Bar ─────────────────────────────────────────────────── */
.bulk-bar {
display: none;
align-items: center;
gap: 12px;
background: var(--primary-glow);
border: 1px solid var(--border-accent);
border-radius: var(--radius-md);
padding: 10px 18px;
margin-bottom: 12px;
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.bulk-count {
font-size: 13px;
font-weight: 600;
color: var(--primary-light);
flex: 1;
}
/* ── Workflow Steps ─────────────────────────────────────────────── */
.wf-steps {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.wf-step {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 9px 15px;
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
}
.wf-step.active {
border-color: var(--primary-light);
color: var(--primary-light);
background: var(--primary-glow);
}
.wf-step.done {
border-color: rgba(16, 185, 129, 0.3);
color: var(--success);
background: var(--success-bg);
}
.wf-arr {
color: var(--text-muted);
font-size: 12px;
}
/* ── Location Tree ─────────────────────────────────────────────── */
.tree-list {
padding: 0;
list-style: none;
}
.tree-node {
list-style: none;
}
.tree-label {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
border-radius: var(--radius-sm);
cursor: pointer;
transition: var(--t-fast);
font-size: 13px;
color: var(--text-secondary);
}
.tree-label:hover {
background: rgba(var(--overlay-rgb), 0.02);
color: var(--text-primary);
}
.tree-label.selected {
background: var(--primary-glow);
color: var(--primary-light);
font-weight: 600;
}
.tree-children {
padding-left: 20px;
border-left: 1px solid var(--border);
margin-left: 16px;
display: none;
}
.tree-children.open {
display: block;
}
.tree-arrow {
transition: transform 0.2s ease;
font-size: 10px;
color: var(--text-muted);
}
.tree-arrow.open {
transform: rotate(90deg);
}
/* ── Perm Matrix ─────────────────────────────────────────────────── */
.perm-matrix {
width: 100%;
border-collapse: collapse;
font-size: 12.5px;
}
.perm-matrix th, .perm-matrix td {
padding: 10px 14px;
border: 1px solid var(--border);
text-align: center;
}
.perm-matrix th {
background: var(--bg-surface);
font-size: 10.5px;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--text-muted);
font-weight: 600;
}
.perm-matrix td:first-child {
text-align: left;
font-weight: 600;
color: var(--text-secondary);
background: var(--bg-surface);
}
/* ── Report Cards ─────────────────────────────────────────────────── */
.report-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
transition: var(--t-slow);
cursor: pointer;
}
.report-card:hover {
border-color: var(--primary-light);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.report-icon {
width: 44px;
height: 44px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
margin-bottom: 14px;
border: 1px solid rgba(var(--overlay-rgb), 0.02);
}
.report-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 6px;
color: var(--text-primary);
}
.report-desc {
font-size: 12px;
color: var(--text-secondary);
line-height: 1.55;
}
/* ── Step Wizard ─────────────────────────────────────────────────── */
.step-nav-item {
display: flex;
align-items: center;
gap: 14px;
padding: 12px;
border-radius: var(--radius-md);
cursor: pointer;
transition: var(--t-fast);
margin-bottom: 6px;
}
.step-nav-item:hover {
background: rgba(var(--overlay-rgb), 0.02);
}
.step-nav-item.active {
background: var(--primary-glow);
}
.step-num {
width: 26px;
height: 26px;
border-radius: 50%;
border: 2px solid var(--border-strong);
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 700;
color: var(--text-muted);
flex-shrink: 0;
transition: var(--t-fast);
}
.step-nav-item.active .step-num {
border-color: var(--primary);
background: var(--primary);
color: var(--c-on-accent);
box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}
.step-nav-item.done .step-num {
border-color: var(--success);
background: var(--success);
color: var(--c-on-accent);
}
.step-nav-label {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
}
.step-nav-sub {
font-size: 11px;
color: var(--text-secondary);
margin-top: 2px;
}
/* ── Notif Panel ─────────────────────────────────────────────────── */
.notif-panel {
position: absolute;
top: calc(100% + 12px);
right: 0;
width: 330px;
background: var(--bg-popover);
border: 1px solid var(--border-strong);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
z-index: 200;
display: none;
animation: slideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-panel.open {
display: block;
}
.notif-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 18px;
border-bottom: 1px solid var(--border);
}
.notif-title {
font-size: 13.5px;
font-weight: 700;
color: var(--text-primary);
}
.notif-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 18px;
border-bottom: 1px solid var(--border);
cursor: pointer;
transition: var(--t-fast);
}
.notif-item:hover {
background: rgba(var(--overlay-rgb), 0.02);
}
.notif-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--primary);
flex-shrink: 0;
margin-top: 6px;
box-shadow: 0 0 8px var(--primary);
}
.notif-text {
font-size: 12.5px;
color: var(--text-secondary);
line-height: 1.45;
}
.notif-text strong {
color: var(--text-primary);
}
.notif-time {
font-size: 10.5px;
color: var(--text-muted);
margin-top: 4px;
}
/* ── Login ─────────────────────────────────────────────────────── */
.login-page {
min-height: 100vh;
display: flex;
background: var(--bg-root);
position: relative;
overflow: hidden;
}
.login-bg-glow {
position: absolute;
inset: 0;
background: radial-gradient(ellipse at 20% 25%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
radial-gradient(ellipse at 80% 75%, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
}
.login-grid-bg {
position: absolute;
inset: 0;
background-image: linear-gradient(rgba(var(--overlay-rgb), 0.012) 1px, transparent 1px),
linear-gradient(90deg, rgba(var(--overlay-rgb), 0.012) 1px, transparent 1px);
background-size: 48px 48px;
}
.login-panel {
width: 100%;
max-width: 430px;
margin: auto;
z-index: 1;
padding: 24px;
}
.login-logo-wrap {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 32px;
justify-content: center;
}
.login-logo-icon {
width: 48px;
height: 48px;
background: linear-gradient(135deg, var(--primary), var(--cyan));
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
box-shadow: 0 0 24px rgba(99, 102, 241, 0.3);
}
.login-logo-text {
font-size: 24px;
font-weight: 800;
letter-spacing: -0.8px;
color: var(--text-primary);
}
.login-logo-text span {
color: var(--primary-light);
}
.login-card {
background: var(--glass-bg);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid var(--border-strong);
border-radius: var(--radius-xl);
padding: 32px;
box-shadow: var(--shadow-lg);
}
.login-heading {
text-align: center;
margin-bottom: 28px;
}
.login-title {
font-size: 22px;
font-weight: 700;
margin-bottom: 6px;
color: var(--text-primary);
}
.login-subtitle {
font-size: 13px;
color: var(--text-secondary);
}
.login-divider {
display: flex;
align-items: center;
gap: 12px;
margin: 22px 0;
color: var(--text-muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
}
.login-divider::before, .login-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}
/* ── Section Header ─────────────────────────────────────────────── */
.section-hdr {
font-size: 11px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 14px;
display: flex;
align-items: center;
gap: 10px;
}
.section-hdr::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}
/* ── Utilities ─────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12.5px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary-c { color: var(--text-primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-cyan { color: var(--cyan-light); }
.text-accent { color: var(--primary-light); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded-full { border-radius: 100px; }
.shadow-primary { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2); }
/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px) scale(0.96);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse-dot 2s infinite; }
.animate-fadein { animation: fadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1); }
/* ── Settings Nav ────────────────────────────────────────────────── */
.settings-nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
border-radius: var(--radius-md);
cursor: pointer;
transition: var(--t-fast);
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 4px;
border: 1px solid transparent;
}
.settings-nav-item:hover {
background: rgba(var(--overlay-rgb), 0.02);
color: var(--text-primary);
}
.settings-nav-item.active {
background: var(--primary-glow);
color: var(--primary-light);
border-color: var(--border-accent);
}
/* ── Toggle / Switch ─────────────────────────────────────────────── */
.toggle {
display: inline-flex;
align-items: center;
cursor: pointer;
flex-shrink: 0;
}
.toggle input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.toggle-slider {
width: 42px;
height: 24px;
background: rgba(var(--overlay-rgb), 0.08);
border: 1px solid var(--border);
border-radius: 100px;
position: relative;
transition: var(--t-fast);
}
.toggle-slider::before {
content: '';
position: absolute;
width: 18px;
height: 18px;
background: #fff;
border-radius: 50%;
top: 2px;
left: 2px;
transition: var(--t-fast);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle input:checked + .toggle-slider {
background: var(--primary);
border-color: var(--primary);
}
.toggle input:checked + .toggle-slider::before {
transform: translateX(18px);
}
/* ── Theme Swatches ──────────────────────────────────────────────── */
.theme-opt {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 12px 16px;
border-radius: var(--radius-md);
border: 2px solid transparent;
transition: var(--t-fast);
font-size: 12px;
color: var(--text-secondary);
background: rgba(var(--overlay-rgb), 0.01);
}
.theme-opt:hover {
background: rgba(var(--overlay-rgb), 0.03);
}
.theme-opt.selected {
border-color: var(--primary);
background: var(--primary-glow);
color: var(--primary-light);
}
.theme-swatch {
width: 60px;
height: 38px;
border-radius: var(--radius-sm);
border: 1px solid var(--border-strong);
}
.theme-swatch.dark {
background: linear-gradient(135deg, #030712 60%, #1e293b);
}
.theme-swatch.light {
background: linear-gradient(135deg, #f8fafc 60%, #e2e8f0);
}
.theme-swatch.auto {
background: linear-gradient(135deg, #030712 50%, #f8fafc 50%);
}
/* ── Input Group ─────────────────────────────────────────────────── */
.input-group {
display: flex;
align-items: stretch;
}
.input-prefix {
background: rgba(var(--overlay-rgb), 0.03);
border: 1px solid var(--border);
border-right: none;
border-radius: var(--radius-md) 0 0 var(--radius-md);
padding: 11px 16px;
color: var(--text-muted);
font-size: 13.5px;
display: flex;
align-items: center;
flex-shrink: 0;
}
/* ── Row Selected ────────────────────────────────────────────────── */
.row-selected {
background: rgba(99, 102, 241, 0.04) !important;
}
.row-selected td {
color: var(--text-primary) !important;
}
/* ── bg-elevated utility ─────────────────────────────────────────── */
.bg-elevated {
background: var(--bg-elevated);
}
.border {
border: 1px solid var(--border);
}
.rounded-md {
border-radius: var(--radius-md);
}
/* ── Vendor / Integration Card Extras ───────────────────────────── */
.flex-shrink-0 {
flex-shrink: 0;
}
/* ── Responsive ─────────────────────────────────────────────────── */
@media(max-width:1280px) {
.grid-4 {
grid-template-columns: repeat(2, 1fr);
}
}
@media(max-width:960px) {
:root {
--sidebar-w: 0px;
}
.sidebar {
transform: translateX(-100%);
width: 260px;
}
.sidebar.open {
transform: translateX(0);
}
.main-wrapper {
margin-left: 0;
width: 100%;
}
.grid-charts {
grid-template-columns: 1fr;
}
.grid-2 {
grid-template-columns: 1fr;
}
.form-row {
grid-template-columns: 1fr;
}
}
@media(max-width:600px) {
.grid-4, .grid-3 {
grid-template-columns: 1fr;
}
.info-grid {
grid-template-columns: 1fr;
}
}