/* ==========================================================================
   MAAYON EV - MASTER CUSTOM DESIGN SYSTEM (100% PURE VANILLA CSS)
   Aesthetic: Premium Cyberpunk Electric Dark Mode / Glassmorphism
   No Bootstrap, No Tailwind, No Framework Dependencies
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-void: #050811;
  --bg-surface: #0a0f1d;
  --bg-card: #0f172a;
  --bg-card-hover: #152238;
  --bg-input: #080d1a;
  
  /* Electric Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.28);
  --neon-emerald: #00f5a0;
  --neon-emerald-glow: rgba(0, 245, 160, 0.28);
  --neon-amber: #ffb800;
  --neon-coral: #ff3b69;
  --neon-purple: #8b5cf6;
  
  /* Glassmorphism */
  --glass-bg: rgba(15, 23, 42, 0.72);
  --glass-bg-subtle: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(0, 240, 255, 0.55);
  --glass-blur: blur(16px);
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Shadows & Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 20px var(--neon-cyan-glow);
  --shadow-emerald: 0 0 20px var(--neon-emerald-glow);

  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Anek Tamil', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-void);
  background-image: 
    radial-gradient(at 10% 15%, rgba(0, 240, 255, 0.07) 0px, transparent 50%),
    radial-gradient(at 90% 85%, rgba(139, 92, 246, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #38bdf8;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-emerald {
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--neon-cyan) !important; }
.text-emerald { color: var(--neon-emerald) !important; }
.text-amber { color: var(--neon-amber) !important; }
.text-coral { color: var(--neon-coral) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dim { color: var(--text-dim) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }
.small { font-size: 0.85rem; }

/* Layout & Containers */
.ev-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ev-container-fluid {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Responsive Grid System */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9  { grid-column: span 9; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.col-2  { grid-column: span 2; }
.col-1  { grid-column: span 1; }

@media (max-width: 992px) {
  .col-lg-3, .col-lg-4 { grid-column: span 6; }
  .col-lg-6, .col-lg-8, .col-lg-9 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9 { grid-column: span 12; }
  .ev-grid { gap: 1rem; }
}

/* Flexbox Utilities */
.ev-flex { display: flex; }
.ev-inline-flex { display: inline-flex; }
.ev-flex-col { flex-direction: column; }
.ev-items-center { align-items: center; }
.ev-items-start { align-items: flex-start; }
.ev-items-end { align-items: flex-end; }
.ev-justify-between { justify-content: space-between; }
.ev-justify-center { justify-content: center; }
.ev-justify-end { justify-content: flex-end; }
.ev-flex-wrap { flex-wrap: wrap; }
.ev-gap-1 { gap: 0.5rem; }
.ev-gap-2 { gap: 1rem; }
.ev-gap-3 { gap: 1.5rem; }
.ev-gap-4 { gap: 2rem; }
.ev-flex-1 { flex: 1 1 0%; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }
.py-2 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-3 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.px-3 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

/* Glass Cards & Panels */
.ev-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.ev-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.4;
  transition: opacity var(--transition-normal);
}

.ev-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 240, 255, 0.08);
}
.ev-card:hover::before {
  opacity: 1;
}

.ev-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--glass-border);
}

.ev-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stat Metric Card */
.ev-stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.ev-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.3);
}

.ev-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}
.ev-stat-icon.emerald {
  background: rgba(0, 245, 160, 0.1);
  color: var(--neon-emerald);
  border-color: rgba(0, 245, 160, 0.2);
}
.ev-stat-icon.amber {
  background: rgba(255, 184, 0, 0.1);
  color: var(--neon-amber);
  border-color: rgba(255, 184, 0, 0.2);
}
.ev-stat-icon.coral {
  background: rgba(255, 59, 105, 0.1);
  color: var(--neon-coral);
  border-color: rgba(255, 59, 105, 0.2);
}

.ev-stat-info .ev-stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.ev-stat-info .ev-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Custom Buttons */
.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}

.ev-btn-primary {
  background: linear-gradient(135deg, #00d2ff, #0088ff);
  color: #040814;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3);
}
.ev-btn-primary:hover {
  background: linear-gradient(135deg, #38e1ff, #1a96ff);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
  color: #040814;
  transform: translateY(-1px);
}

.ev-btn-success {
  background: linear-gradient(135deg, #00f5a0, #00c878);
  color: #03140b;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 245, 160, 0.3);
}
.ev-btn-success:hover {
  background: linear-gradient(135deg, #26ffb0, #00dc84);
  box-shadow: 0 6px 20px rgba(0, 245, 160, 0.5);
  color: #03140b;
  transform: translateY(-1px);
}

.ev-btn-danger {
  background: linear-gradient(135deg, #ff3b69, #e02450);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 59, 105, 0.3);
}
.ev-btn-danger:hover {
  background: linear-gradient(135deg, #ff5c82, #f0305c);
  transform: translateY(-1px);
}

.ev-btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}
.ev-btn-outline:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.ev-btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}
.ev-btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Custom Form Elements */
.ev-form-group {
  margin-bottom: 1.15rem;
}
.ev-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.ev-input,
.ev-select,
.ev-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.ev-input:focus,
.ev-select:focus,
.ev-textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px var(--neon-cyan-glow);
}

.ev-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.ev-select option {
  background-color: var(--bg-surface);
  color: #fff;
}

.ev-input-group {
  display: flex;
}
.ev-input-group .ev-input,
.ev-input-group .ev-select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.ev-input-group .ev-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}

/* Badges */
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.ev-badge-success {
  background: rgba(0, 245, 160, 0.12);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 245, 160, 0.25);
}
.ev-badge-warning {
  background: rgba(255, 184, 0, 0.12);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 184, 0, 0.25);
}
.ev-badge-danger {
  background: rgba(255, 59, 105, 0.12);
  color: var(--neon-coral);
  border: 1px solid rgba(255, 59, 105, 0.25);
}
.ev-badge-cyan {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

/* Custom Navigation Bar */
.ev-navbar {
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

.ev-navbar .ev-container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ev-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}
.ev-brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--neon-cyan), #0077ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050811;
  font-size: 1.2rem;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.ev-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.ev-nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.ev-nav-link:hover,
.ev-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.ev-nav-link.active {
  color: var(--neon-cyan);
  border-bottom: 2px solid var(--neon-cyan);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.ev-nav-toggler {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .ev-nav-toggler { display: block; }
  .ev-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.4rem;
  }
  .ev-nav-menu.show { display: flex; }
}

/* Custom Data Table Component Styles */
.ev-datatable-container {
  width: 100%;
}

.ev-datatable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ev-datatable-search {
  position: relative;
  min-width: 260px;
}
.ev-datatable-search input {
  padding-left: 2.2rem;
}
.ev-datatable-search::before {
  content: '🔍';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.6;
  pointer-events: none;
}

.ev-datatable-entries {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.ev-datatable-entries select {
  width: auto;
  padding: 0.35rem 1.8rem 0.35rem 0.65rem;
}

.ev-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ev-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.ev-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--neon-cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  user-select: none;
  white-space: nowrap;
}

.ev-table th.sortable {
  cursor: pointer;
  transition: background var(--transition-fast);
}
.ev-table th.sortable:hover {
  background: rgba(0, 240, 255, 0.08);
}
.ev-table th .sort-icon {
  margin-left: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.4;
}
.ev-table th.sort-asc .sort-icon,
.ev-table th.sort-desc .sort-icon {
  opacity: 1;
  color: var(--neon-cyan);
}

.ev-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.ev-table tbody tr {
  transition: background var(--transition-fast);
}
.ev-table tbody tr:hover {
  background: rgba(0, 240, 255, 0.035);
}

.ev-datatable-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ev-pagination {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}
.ev-page-item button {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.ev-page-item button:hover:not(:disabled) {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
.ev-page-item.active button {
  background: var(--neon-cyan);
  color: #050811;
  border-color: var(--neon-cyan);
  font-weight: 700;
}
.ev-page-item button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Custom Notifications & Toasts (Replaces SweetAlert2) */
.ev-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  pointer-events: none;
}

.ev-toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s;
  position: relative;
  overflow: hidden;
}

.ev-toast.show {
  transform: translateX(0);
}

.ev-toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--neon-cyan);
  width: 100%;
  animation: ev-toast-progress 3.5s linear forwards;
}

.ev-toast.success::after { background: var(--neon-emerald); }
.ev-toast.error::after { background: var(--neon-coral); }
.ev-toast.warning::after { background: var(--neon-amber); }

@keyframes ev-toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

.ev-toast-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.ev-toast.success .ev-toast-icon { color: var(--neon-emerald); }
.ev-toast.error .ev-toast-icon { color: var(--neon-coral); }
.ev-toast.warning .ev-toast-icon { color: var(--neon-amber); }

.ev-toast-content {
  flex: 1;
}
.ev-toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}
.ev-toast-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ev-toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--transition-fast);
}
.ev-toast-close:hover { color: #fff; }

/* Custom Modal Dialog (Replaces Bootstrap Modal) */
.ev-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.78);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.ev-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ev-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.1);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(10px);
  transition: transform var(--transition-normal);
}
.ev-modal-overlay.active .ev-modal-box {
  transform: scale(1) translateY(0);
}

.ev-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.ev-modal-body {
  padding: 1.5rem;
}
.ev-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   4. Universal Component & Utility System (Vanilla Equivalents)
   Provides 100% native styling for standard portal classes (Zero Bootstrap)
   ========================================================================== */

.container,
.ev-container {
  width: 96% !important;
  max-width: 1750px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
.container-fluid,
.ev-container-fluid {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.row > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  max-width: 100%;
}

.col-12 { flex: 0 0 100%; width: 100%; }
.col-md-2 { flex: 0 0 16.666667%; width: 16.666667%; }
.col-md-3 { flex: 0 0 25%; width: 25%; }
.col-md-4 { flex: 0 0 33.333333%; width: 33.333333%; }
.col-md-5 { flex: 0 0 41.666667%; width: 41.666667%; }
.col-md-6 { flex: 0 0 50%; width: 50%; }
.col-md-7 { flex: 0 0 58.333333%; width: 58.333333%; }
.col-md-8 { flex: 0 0 66.666667%; width: 66.666667%; }
.col-md-9 { flex: 0 0 75%; width: 75%; }
.col-md-10 { flex: 0 0 83.333333%; width: 83.333333%; }
.col-lg-3 { flex: 0 0 25%; width: 25%; }
.col-lg-4 { flex: 0 0 33.333333%; width: 33.333333%; }
.col-lg-6 { flex: 0 0 50%; width: 50%; }

@media (max-width: 768px) {
  .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-lg-3, .col-lg-4, .col-lg-6 {
    flex: 0 0 100%;
    width: 100%;
  }
}

.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-white { color: #ffffff !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }

/* Custom Cards */
.card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.card:hover {
  border-color: rgba(0, 240, 255, 0.22) !important;
}
.card-header {
  background: rgba(15, 23, 42, 0.6) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 1.1rem 1.4rem !important;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-body {
  padding: 1.4rem !important;
}
.card-footer {
  background: rgba(15, 23, 42, 0.4) !important;
  border-top: 1px solid var(--glass-border) !important;
  padding: 1rem 1.4rem !important;
}

/* Custom Table Overrides */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  background: transparent !important;
}
.table th,
.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-main);
  vertical-align: middle;
}
.table thead th,
.table-dark thead th {
  background: rgba(15, 23, 42, 0.95) !important;
  color: var(--neon-cyan) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(0, 240, 255, 0.25) !important;
}
.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.02) !important;
}
.table-hover tbody tr:hover,
.table tbody tr:hover {
  background: rgba(0, 240, 255, 0.04) !important;
}
.table-bordered {
  border: none !important;
}
.table-bordered th,
.table-bordered td {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Searchable Combobox Component (EV-Combobox)
   ========================================================================== */
.ev-combobox {
  position: relative;
  width: 100%;
}
.ev-combobox-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.ev-combobox-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff !important;
  background-color: #070d1e !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  border-radius: 12px !important;
  padding: 0.78rem 2.8rem 0.78rem 2.6rem !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ev-combobox-input:focus,
.ev-combobox.open .ev-combobox-input {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px var(--neon-cyan-glow), 0 8px 24px rgba(0, 240, 255, 0.22) !important;
  background-color: #0c1630 !important;
}
.ev-combobox-search-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--neon-cyan);
  pointer-events: none;
  font-size: 0.9rem;
}
.ev-combobox-arrow {
  position: absolute;
  right: 1rem;
  color: var(--neon-cyan);
  pointer-events: none;
  transition: transform 0.25s ease;
  font-size: 0.85rem;
}
.ev-combobox.open .ev-combobox-arrow {
  transform: rotate(180deg);
}
.ev-combobox-clear {
  position: absolute;
  right: 2.2rem;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem;
  transition: color 0.2s ease;
}
.ev-combobox-clear:hover {
  color: var(--neon-coral);
}
.ev-combobox-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(8, 14, 28, 0.98) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.18) !important;
  display: none;
  overflow: hidden;
  animation: evEntranceSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ev-combobox.open .ev-combobox-menu {
  display: block;
}
.ev-combobox-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.4rem 0;
}
.ev-combobox-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.18s ease;
}
.ev-combobox-item:last-child {
  border-bottom: none;
}
.ev-combobox-item:hover,
.ev-combobox-item.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.16), rgba(0, 240, 255, 0.02)) !important;
  color: var(--neon-cyan) !important;
  transform: translateX(4px);
}
.ev-combobox-item-name {
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.92rem;
}
.ev-combobox-item-phone {
  font-size: 0.82rem;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 500;
}
.ev-combobox-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Custom Form Elements */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-control,
.form-select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff !important;
  background-color: var(--bg-input) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.65rem 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px var(--neon-cyan-glow) !important;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 1rem !important;
  padding-right: 2.5rem !important;
}
.form-select option {
  background-color: var(--bg-surface);
  color: #fff;
}
.input-group {
  display: flex;
  width: 100%;
}
.input-group .form-control,
.input-group .form-select {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.input-group .btn {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.62rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.25;
}
.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #0088ff) !important;
  color: #040814 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #38e1ff, #1a96ff) !important;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5) !important;
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #00f5a0, #00c878) !important;
  color: #03140b !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 245, 160, 0.3) !important;
}
.btn-success:hover {
  background: linear-gradient(135deg, #26ffb0, #00dc84) !important;
  box-shadow: 0 6px 20px rgba(0, 245, 160, 0.5) !important;
  transform: translateY(-1px);
}
.btn-danger {
  background: linear-gradient(135deg, #ff3b69, #e02450) !important;
  color: #fff !important;
  border: none !important;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #ff5c82, #f0305c) !important;
  transform: translateY(-1px);
}
.btn-warning {
  background: linear-gradient(135deg, #ffb800, #e09b00) !important;
  color: #0a0e1a !important;
  font-weight: 700 !important;
  border: none !important;
}
.btn-outline-primary {
  background: transparent !important;
  border: 1px solid var(--neon-cyan) !important;
  color: var(--neon-cyan) !important;
}
.btn-outline-primary:hover {
  background: rgba(0, 240, 255, 0.1) !important;
}
.btn-outline-light {
  background: transparent !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-main) !important;
}
.btn-outline-light:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.btn-outline-danger {
  background: transparent !important;
  border: 1px solid var(--neon-coral) !important;
  color: var(--neon-coral) !important;
}
.btn-outline-danger:hover {
  background: rgba(255, 59, 105, 0.1) !important;
}
.btn-sm {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.82rem !important;
}
.rounded-pill {
  border-radius: var(--radius-pill) !important;
}

/* Badges & Alerts */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  line-height: 1;
}
.bg-success {
  background: rgba(0, 245, 160, 0.15) !important;
  color: var(--neon-emerald) !important;
  border: 1px solid rgba(0, 245, 160, 0.3);
}
.bg-danger {
  background: rgba(255, 59, 105, 0.15) !important;
  color: var(--neon-coral) !important;
  border: 1px solid rgba(255, 59, 105, 0.3);
}
.bg-warning {
  background: rgba(255, 184, 0, 0.15) !important;
  color: var(--neon-amber) !important;
  border: 1px solid rgba(255, 184, 0, 0.3);
}
.bg-primary {
  background: rgba(0, 240, 255, 0.15) !important;
  color: var(--neon-cyan) !important;
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.bg-secondary {
  background: rgba(148, 163, 184, 0.15) !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.alert-danger {
  background: rgba(255, 59, 105, 0.12) !important;
  color: #ff85a1 !important;
  border-color: rgba(255, 59, 105, 0.3) !important;
}
.alert-success {
  background: rgba(0, 245, 160, 0.12) !important;
  color: #4df8b8 !important;
  border-color: rgba(0, 245, 160, 0.3) !important;
}
.alert-warning {
  background: rgba(255, 184, 0, 0.12) !important;
  color: #ffd066 !important;
  border-color: rgba(255, 184, 0, 0.3) !important;
}

/* Borders, Radius & Spacing Utilities */
.border { border: 1px solid var(--glass-border) !important; }
.border-top { border-top: 1px solid var(--glass-border) !important; }
.border-bottom { border-bottom: 1px solid var(--glass-border) !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1.15rem !important; }
.p-4 { padding: 1.6rem !important; }
.ps-3 { padding-left: 1.15rem !important; }
.pe-3 { padding-right: 1.15rem !important; }
.pt-3 { padding-top: 1.15rem !important; }
.pb-3 { padding-bottom: 1.15rem !important; }

/* Invoice Details Grid List */
.invoice-view-list {
  list-style: none !important;
  padding-left: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 0.45rem !important;
  margin-top: 0.6rem !important;
}
.invoice-view-list li {
  background: rgba(0, 240, 255, 0.04) !important;
  border: 1px solid rgba(0, 240, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}


/* ==========================================================================
   5. Enhanced Wide-Screen Layout & Portal Width Expansion
   ========================================================================== */
.ev-portal-container,
.container,
.ev-container {
  width: 96% !important;
  max-width: 1780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

@media (min-width: 1920px) {
  .ev-portal-container,
  .container,
  .ev-container {
    max-width: 2160px !important;
    width: 96% !important;
  }
}

/* Neutralize Nested Containers to Prevent Double Squeeze */
.ev-portal-container .container,
.container .container,
.ev-container .container,
.ev-portal-container .ev-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 768px) {
  .ev-portal-container,
  .container,
  .ev-container {
    width: 100% !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
}

.dashboard-container,
.card-sales,
.card-customer-form,
.card-product-form,
.card-user-form,
.card-form-custom {
  max-width: 100% !important;
  width: 100% !important;
}

/* Specific Column Proportions for Invoice Product & Unit Table (Billing) */
.invoice-product-unit-width {
  width: 52% !important;
}
.invoice-price-width {
  width: 16% !important;
}
.invoice-gst-width {
  width: 16% !important;
}
.invoice-total-width {
  width: 16% !important;
}

/* Column Proportions for Dealer Multiple-Product Invoice Table */
.invoice-product-width {
  width: 44% !important;
}
.invoice-qty-width {
  width: 11% !important;
}
.invoice-rate-width {
  width: 15% !important;
}
.invoice-gst-width {
  width: 11% !important;
}
.invoice-total-width {
  width: 13% !important;
}
.invoice-action-width {
  width: 6% !important;
}

/* ==========================================================================
   6. Ultra-Sleek Custom Dropdowns & Selects (Cyberpunk EV Neon Theme)
   ========================================================================== */
select,
.form-select,
.ev-select,
select.form-control,
select.form-select-sm,
select.form-control-sm {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: #ffffff !important;
  background-color: #070d1e !important;
  background-image: 
    linear-gradient(180deg, rgba(15, 25, 48, 0.8) 0%, rgba(7, 13, 30, 0.95) 100%),
    url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: left top, right 1.1rem center !important;
  background-size: 100% 100%, 1.25rem !important;
  padding: 0.82rem 3rem 0.82rem 1.1rem !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  outline: none !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Small Select Variant */
select.form-select-sm,
select.form-control-sm {
  padding: 0.55rem 2.4rem 0.55rem 0.85rem !important;
  font-size: 0.88rem !important;
  border-radius: 8px !important;
  background-position: left top, right 0.8rem center !important;
  background-size: 100% 100%, 1.05rem !important;
}

/* Hover State */
select:hover,
.form-select:hover,
.ev-select:hover,
select.form-control:hover {
  border-color: rgba(0, 240, 255, 0.72) !important;
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1.5px);
}

/* Focus State */
select:focus,
.form-select:focus,
.ev-select:focus,
select.form-control:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3.5px var(--neon-cyan-glow), 0 10px 30px rgba(0, 240, 255, 0.3) !important;
  background-color: #0b152d !important;
  transform: translateY(-2px);
}

/* Select Options (Native Dropdown Panel) */
select option,
.form-select option,
.ev-select option,
select.form-control option {
  background-color: #070c18 !important;
  color: #f8fafc !important;
  padding: 14px 16px !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

select option:checked,
.form-select option:checked,
.ev-select option:checked,
select.form-control option:checked {
  background: linear-gradient(90deg, #00d2ff, #0077ff) !important;
  color: #040814 !important;
  font-weight: 700 !important;
}

/* Dedicated Product Select */
.product_select,
.productSelect {
  border-color: rgba(0, 240, 255, 0.38) !important;
  font-weight: 600 !important;
}

/* Dedicated Unit Select (Emerald Glow Theme) */
.unit_select,
.unitSelect {
  border-color: rgba(0, 245, 160, 0.38) !important;
  font-weight: 600 !important;
  background-image: 
    linear-gradient(180deg, rgba(10, 30, 25, 0.8) 0%, rgba(5, 20, 16, 0.95) 100%),
    url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f5a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}
.unit_select:hover,
.unitSelect:hover {
  border-color: rgba(0, 245, 160, 0.75) !important;
  box-shadow: 0 6px 22px rgba(0, 245, 160, 0.22) !important;
}
.unit_select:focus,
.unitSelect:focus {
  border-color: var(--neon-emerald) !important;
  box-shadow: 0 0 0 3.5px var(--neon-emerald-glow), 0 10px 30px rgba(0, 245, 160, 0.3) !important;
}

/* Custom Dropdown Menus (Floating Contextual Menus) */
.dropdown-menu {
  background: rgba(9, 15, 30, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.15) !important;
  padding: 0.6rem !important;
  min-width: 200px;
  animation: evEntranceSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dropdown-item {
  color: var(--text-main) !important;
  padding: 0.65rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.03)) !important;
  color: var(--neon-cyan) !important;
  transform: translateX(5px);
}

/* Interactive Dropdown Flash Animation on Change */
@keyframes evSelectPing {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 240, 255, 0.35), 0 0 25px rgba(0, 240, 255, 0.45);
  }
  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  }
}
.ev-select-ping {
  animation: evSelectPing 0.55s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ==========================================================================
   7. Smooth Theme Transitions & Micro-Animations
   ========================================================================== */
@keyframes evEntranceSlide {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes evNeonBreath {
  0%, 100% {
    opacity: 0.9;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
  }
}

.ev-portal-container,
.container,
.ev-container,
.card,
.ev-card,
.ev-stat-card,
.table-responsive,
.ev-table-responsive {
  animation: evEntranceSlide 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered entrance for dashboard metrics */
.ev-stat-card:nth-child(1) { animation-delay: 0.04s; }
.ev-stat-card:nth-child(2) { animation-delay: 0.08s; }
.ev-stat-card:nth-child(3) { animation-delay: 0.12s; }
.ev-stat-card:nth-child(4) { animation-delay: 0.16s; }

/* Interactive Card Elevation */
.card:hover,
.ev-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(0, 240, 255, 0.32) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 22px rgba(0, 240, 255, 0.12) !important;
}

/* Smooth Table Row Transitions */
.table tbody tr {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.table tbody tr:hover {
  background: rgba(0, 240, 255, 0.065) !important;
  transform: translateX(4px);
  box-shadow: inset 4px 0 0 var(--neon-cyan), 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Smooth Form Controls Focus & Hover */
.form-control,
.ev-input,
.ev-textarea {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.form-control:focus,
.ev-input:focus,
.ev-textarea:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px var(--neon-cyan-glow), 0 8px 24px rgba(0, 240, 255, 0.2) !important;
  background-color: #0f1a34 !important;
  transform: translateY(-1.5px);
}

/* Buttons Smooth Interactive Elevation */
.btn,
.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn:hover,
.ev-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 24px var(--neon-cyan-glow) !important;
}
.btn:active,
.ev-btn:active {
  transform: scale(0.97) !important;
}

/* Subtle Breathing Animation for Badges */
.badge,
.ev-badge {
  transition: all 0.2s ease;
}
.badge:hover,
.ev-badge:hover {
  transform: scale(1.06);
}

/* Custom Sleek Cyberpunk Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #050811;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 999px;
  border: 2px solid #050811;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* ==========================================================================
   Cyberpunk EV Toast Notification System
   ========================================================================== */
.ev-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.ev-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 240, 255, 0.15);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  position: relative;
  overflow: hidden;
}

.ev-toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.ev-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.ev-toast.success {
  border-color: rgba(0, 245, 160, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 245, 160, 0.2);
}
.ev-toast.success::before {
  background: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald);
}

.ev-toast.error {
  border-color: rgba(255, 0, 85, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 0, 85, 0.2);
}
.ev-toast.error::before {
  background: var(--neon-crimson);
  box-shadow: 0 0 10px var(--neon-crimson);
}

.ev-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
}
.ev-toast.success .ev-toast-icon {
  background: rgba(0, 245, 160, 0.15);
  color: var(--neon-emerald);
}
.ev-toast.error .ev-toast-icon {
  background: rgba(255, 0, 85, 0.15);
  color: #ff6699;
}

.ev-toast-content {
  flex: 1;
}

.ev-toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.ev-toast-msg {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.4;
}

.ev-toast-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.ev-toast-close:hover {
  color: #fff;
}




