/* Volting Payment Gateway - Design System */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties - Color System */
:root {
  /* Primary Colors - Electric Blue */
  --volt-primary-50: #eff6ff;
  --volt-primary-100: #dbeafe;
  --volt-primary-200: #bfdbfe;
  --volt-primary-300: #93c5fd;
  --volt-primary-400: #60a5fa;
  --volt-primary-500: #0066ff;
  --volt-primary-600: #0052cc;
  --volt-primary-700: #0043a3;
  --volt-primary-800: #003580;
  --volt-primary-900: #002966;

  /* Secondary Colors - Lightning Yellow */
  --volt-secondary-50: #fffbeb;
  --volt-secondary-100: #fef3c7;
  --volt-secondary-200: #fde68a;
  --volt-secondary-300: #fcd34d;
  --volt-secondary-400: #fbbf24;
  --volt-secondary-500: #ffd700;
  --volt-secondary-600: #d97706;
  --volt-secondary-700: #b45309;
  --volt-secondary-800: #92400e;
  --volt-secondary-900: #78350f;

  /* Success Colors */
  --volt-success-50: #ecfdf5;
  --volt-success-100: #d1fae5;
  --volt-success-200: #a7f3d0;
  --volt-success-300: #6ee7b7;
  --volt-success-400: #34d399;
  --volt-success-500: #10b981;
  --volt-success-600: #059669;
  --volt-success-700: #047857;
  --volt-success-800: #065f46;
  --volt-success-900: #064e3b;

  /* Warning Colors */
  --volt-warning-50: #fffbeb;
  --volt-warning-100: #fef3c7;
  --volt-warning-200: #fde68a;
  --volt-warning-300: #fcd34d;
  --volt-warning-400: #fbbf24;
  --volt-warning-500: #f59e0b;
  --volt-warning-600: #d97706;
  --volt-warning-700: #b45309;
  --volt-warning-800: #92400e;
  --volt-warning-900: #78350f;

  /* Error Colors */
  --volt-error-50: #fef2f2;
  --volt-error-100: #fee2e2;
  --volt-error-200: #fecaca;
  --volt-error-300: #fca5a5;
  --volt-error-400: #f87171;
  --volt-error-500: #ef4444;
  --volt-error-600: #dc2626;
  --volt-error-700: #b91c1c;
  --volt-error-800: #991b1b;
  --volt-error-900: #7f1d1d;

  /* Neutral Colors */
  --volt-neutral-50: #f8fafc;
  --volt-neutral-100: #f1f5f9;
  --volt-neutral-200: #e2e8f0;
  --volt-neutral-300: #cbd5e1;
  --volt-neutral-400: #94a3b8;
  --volt-neutral-500: #64748b;
  --volt-neutral-600: #475569;
  --volt-neutral-700: #334155;
  --volt-neutral-800: #1e293b;
  --volt-neutral-900: #0f172a;

  /* Typography */
  --volt-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --volt-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes */
  --volt-text-xs: 0.75rem;
  --volt-text-sm: 0.875rem;
  --volt-text-base: 1rem;
  --volt-text-lg: 1.125rem;
  --volt-text-xl: 1.25rem;
  --volt-text-2xl: 1.5rem;
  --volt-text-3xl: 1.875rem;
  --volt-text-4xl: 2.25rem;
  --volt-text-5xl: 3rem;

  /* Spacing */
  --volt-space-1: 0.25rem;
  --volt-space-2: 0.5rem;
  --volt-space-3: 0.75rem;
  --volt-space-4: 1rem;
  --volt-space-5: 1.25rem;
  --volt-space-6: 1.5rem;
  --volt-space-8: 2rem;
  --volt-space-10: 2.5rem;
  --volt-space-12: 3rem;

  /* Border Radius */
  --volt-radius-sm: 0.25rem;
  --volt-radius-md: 0.375rem;
  --volt-radius-lg: 0.5rem;
  --volt-radius-xl: 0.75rem;
  --volt-radius-2xl: 1rem;
  --volt-radius-full: 9999px;

  /* Shadows */
  --volt-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --volt-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --volt-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --volt-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Status Colors */
  --volt-status-online: var(--volt-success-500);
  --volt-status-offline: var(--volt-neutral-400);
  --volt-status-busy: var(--volt-warning-500);
  --volt-status-away: var(--volt-secondary-500);
  --volt-status-error: var(--volt-error-500);

  /* Gradients */
  --volt-gradient-primary: linear-gradient(135deg, var(--volt-primary-500) 0%, var(--volt-primary-700) 100%);
  --volt-gradient-secondary: linear-gradient(135deg, var(--volt-secondary-400) 0%, var(--volt-secondary-600) 100%);
  --volt-gradient-electric: linear-gradient(135deg, var(--volt-primary-500) 0%, var(--volt-secondary-500) 100%);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--volt-font-sans);
  font-size: var(--volt-text-base);
  line-height: 1.5;
  color: var(--volt-neutral-900);
  background-color: var(--volt-neutral-50);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--volt-space-4) 0;
}

h1 { font-size: var(--volt-text-4xl); }
h2 { font-size: var(--volt-text-3xl); }
h3 { font-size: var(--volt-text-2xl); }
h4 { font-size: var(--volt-text-xl); }
h5 { font-size: var(--volt-text-lg); }
h6 { font-size: var(--volt-text-base); }

p {
  margin: 0 0 var(--volt-space-4) 0;
  line-height: 1.6;
}

/* Utility Classes */
.volt-text-primary { color: var(--volt-primary-500); }
.volt-text-secondary { color: var(--volt-secondary-500); }
.volt-text-success { color: var(--volt-success-500); }
.volt-text-warning { color: var(--volt-warning-500); }
.volt-text-error { color: var(--volt-error-500); }
.volt-text-muted { color: var(--volt-neutral-500); }

.volt-bg-primary { background-color: var(--volt-primary-500); }
.volt-bg-secondary { background-color: var(--volt-secondary-500); }
.volt-bg-success { background-color: var(--volt-success-500); }
.volt-bg-warning { background-color: var(--volt-warning-500); }
.volt-bg-error { background-color: var(--volt-error-500); }

.volt-border-primary { border-color: var(--volt-primary-500); }
.volt-border-secondary { border-color: var(--volt-secondary-500); }

/* Layout */
.volt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--volt-space-4);
}

.volt-grid {
  display: grid;
  gap: var(--volt-space-6);
}

.volt-grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.volt-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.volt-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.volt-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.volt-flex {
  display: flex;
}

.volt-flex-col {
  flex-direction: column;
}

.volt-items-center {
  align-items: center;
}

.volt-justify-between {
  justify-content: space-between;
}

.volt-justify-center {
  justify-content: center;
}

.volt-gap-2 { gap: var(--volt-space-2); }
.volt-gap-3 { gap: var(--volt-space-3); }
.volt-gap-4 { gap: var(--volt-space-4); }
.volt-gap-6 { gap: var(--volt-space-6); }

/* Spacing */
.volt-p-2 { padding: var(--volt-space-2); }
.volt-p-3 { padding: var(--volt-space-3); }
.volt-p-4 { padding: var(--volt-space-4); }
.volt-p-6 { padding: var(--volt-space-6); }
.volt-p-8 { padding: var(--volt-space-8); }

.volt-m-2 { margin: var(--volt-space-2); }
.volt-m-3 { margin: var(--volt-space-3); }
.volt-m-4 { margin: var(--volt-space-4); }
.volt-m-6 { margin: var(--volt-space-6); }

.volt-mb-2 { margin-bottom: var(--volt-space-2); }
.volt-mb-3 { margin-bottom: var(--volt-space-3); }
.volt-mb-4 { margin-bottom: var(--volt-space-4); }
.volt-mb-6 { margin-bottom: var(--volt-space-6); }

/* Border Radius */
.volt-rounded { border-radius: var(--volt-radius-md); }
.volt-rounded-lg { border-radius: var(--volt-radius-lg); }
.volt-rounded-xl { border-radius: var(--volt-radius-xl); }
.volt-rounded-2xl { border-radius: var(--volt-radius-2xl); }
.volt-rounded-full { border-radius: var(--volt-radius-full); }

/* Shadows */
.volt-shadow { box-shadow: var(--volt-shadow-sm); }
.volt-shadow-md { box-shadow: var(--volt-shadow-md); }
.volt-shadow-lg { box-shadow: var(--volt-shadow-lg); }
.volt-shadow-xl { box-shadow: var(--volt-shadow-xl); }

/* Card Component */
.volt-card {
  background: white;
  border: 1px solid var(--volt-neutral-200);
  border-radius: var(--volt-radius-xl);
  padding: var(--volt-space-6);
  box-shadow: var(--volt-shadow-sm);
  transition: all 0.2s ease;
}

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

.volt-card-header {
  margin-bottom: var(--volt-space-4);
  padding-bottom: var(--volt-space-4);
  border-bottom: 1px solid var(--volt-neutral-200);
}

.volt-card-title {
  font-size: var(--volt-text-lg);
  font-weight: 600;
  margin: 0;
  color: var(--volt-neutral-900);
}

.volt-card-subtitle {
  font-size: var(--volt-text-sm);
  color: var(--volt-neutral-500);
  margin: var(--volt-space-1) 0 0 0;
}

/* Button Component */
.volt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--volt-space-3) var(--volt-space-6);
  font-size: var(--volt-text-sm);
  font-weight: 500;
  border-radius: var(--volt-radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: var(--volt-space-2);
  line-height: 1;
}

.volt-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.volt-btn-primary {
  background: var(--volt-gradient-primary);
  color: white;
}

.volt-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.volt-btn-secondary {
  background: white;
  color: var(--volt-primary-500);
  border: 1px solid var(--volt-primary-500);
}

.volt-btn-secondary:hover {
  background: var(--volt-primary-50);
}

.volt-btn-success {
  background: var(--volt-success-500);
  color: white;
}

.volt-btn-warning {
  background: var(--volt-warning-500);
  color: white;
}

.volt-btn-danger {
  background: var(--volt-error-500);
  color: white;
}

.volt-btn-sm {
  padding: var(--volt-space-2) var(--volt-space-4);
  font-size: var(--volt-text-xs);
}

.volt-btn-lg {
  padding: var(--volt-space-4) var(--volt-space-8);
  font-size: var(--volt-text-base);
}

/* Status Indicator */
.volt-status {
  display: inline-flex;
  align-items: center;
  gap: var(--volt-space-2);
  padding: var(--volt-space-1) var(--volt-space-3);
  border-radius: var(--volt-radius-full);
  font-size: var(--volt-text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.volt-status-online {
  background: var(--volt-success-100);
  color: var(--volt-success-700);
}

.volt-status-offline {
  background: var(--volt-neutral-100);
  color: var(--volt-neutral-700);
}

.volt-status-busy {
  background: var(--volt-warning-100);
  color: var(--volt-warning-700);
}

.volt-status-error {
  background: var(--volt-error-100);
  color: var(--volt-error-700);
}

.volt-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: volt-pulse 2s infinite;
}

@keyframes volt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Badge Component */
.volt-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--volt-space-1) var(--volt-space-2);
  font-size: var(--volt-text-xs);
  font-weight: 500;
  border-radius: var(--volt-radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: var(--volt-success-100);
  color: var(--volt-success-700);
}

.badge-warning {
  background: var(--volt-warning-100);
  color: var(--volt-warning-700);
}

.badge-danger {
  background: var(--volt-error-100);
  color: var(--volt-error-700);
}

.badge-info {
  background: var(--volt-primary-100);
  color: var(--volt-primary-700);
}

.badge-secondary {
  background: var(--volt-neutral-100);
  color: var(--volt-neutral-700);
}

/* Dashboard Specific Styles */
.volt-dashboard-header h1 {
  font-size: var(--volt-text-3xl);
  font-weight: 700;
  margin: 0 0 var(--volt-space-2) 0;
}

.volt-dashboard-header p {
  color: var(--volt-neutral-500);
  margin: 0;
}

/* Stats Card */
.volt-stat-card {
  display: flex;
  align-items: center;
  gap: var(--volt-space-4);
  padding: var(--volt-space-6);
}

.volt-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--volt-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--volt-text-xl);
}

.volt-stat-content {
  flex: 1;
}

.volt-stat-number {
  font-size: var(--volt-text-3xl);
  font-weight: 700;
  margin: 0 0 var(--volt-space-1) 0;
  color: var(--volt-neutral-900);
}

.volt-stat-label {
  font-size: var(--volt-text-sm);
  color: var(--volt-neutral-500);
  margin: 0 0 var(--volt-space-2) 0;
}

.volt-stat-change {
  display: flex;
  align-items: center;
  gap: var(--volt-space-1);
  font-size: var(--volt-text-xs);
  font-weight: 500;
}

.volt-stat-change.positive {
  color: var(--volt-success-600);
}

.volt-stat-change.negative {
  color: var(--volt-error-600);
}

/* Activity List */
.volt-activity-list {
  max-height: 400px;
  overflow-y: auto;
}

.volt-activity-item {
  display: flex;
  align-items: center;
  gap: var(--volt-space-4);
  padding: var(--volt-space-4) 0;
  border-bottom: 1px solid var(--volt-neutral-200);
}

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

.volt-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--volt-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--volt-text-sm);
}

.volt-activity-content {
  flex: 1;
}

.volt-activity-message {
  font-weight: 500;
  margin: 0 0 var(--volt-space-1) 0;
  color: var(--volt-neutral-900);
}

.volt-activity-time {
  font-size: var(--volt-text-xs);
  color: var(--volt-neutral-500);
}

.volt-activity-amount {
  font-weight: 600;
  color: var(--volt-success-600);
}

/* User Status Grid */
.volt-user-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--volt-space-4);
}

.volt-status-item {
  text-align: center;
  padding: var(--volt-space-4);
  border-radius: var(--volt-radius-lg);
  background: var(--volt-neutral-50);
}

.volt-status-count {
  font-size: var(--volt-text-2xl);
  font-weight: 700;
  margin-bottom: var(--volt-space-2);
  color: var(--volt-neutral-900);
}

/* Table Styles */
.volt-table-container {
  overflow-x: auto;
}

.volt-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.volt-table th,
.volt-table td {
  padding: var(--volt-space-4);
  text-align: left;
  border-bottom: 1px solid var(--volt-neutral-200);
}

.volt-table th {
  background: var(--volt-neutral-50);
  font-weight: 600;
  font-size: var(--volt-text-sm);
  color: var(--volt-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.volt-table-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.volt-table-row:hover {
  background: var(--volt-neutral-50);
}

.volt-user-cell {
  display: flex;
  align-items: center;
  gap: var(--volt-space-3);
}

.volt-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: var(--volt-radius-full);
  object-fit: cover;
}

.volt-btn-icon {
  background: none;
  border: none;
  padding: var(--volt-space-2);
  border-radius: var(--volt-radius-sm);
  cursor: pointer;
  color: var(--volt-neutral-500);
  transition: all 0.2s ease;
}

.volt-btn-icon:hover {
  background: var(--volt-neutral-100);
  color: var(--volt-primary-500);
}

.volt-empty-state {
  text-align: center;
  padding: var(--volt-space-12) var(--volt-space-6);
}

.volt-empty-content i {
  font-size: var(--volt-text-4xl);
  color: var(--volt-neutral-400);
  margin-bottom: var(--volt-space-4);
}

.volt-empty-content p {
  color: var(--volt-neutral-500);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .volt-grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .volt-grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .volt-grid-cols-4,
  .volt-grid-cols-3,
  .volt-grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .volt-admin-layout {
    flex-direction: column;
  }

  .volt-admin-sidebar {
    width: 100%;
    padding: var(--volt-space-4) 0;
  }

  .volt-sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 var(--volt-space-4);
  }

  .volt-sidebar-link {
    white-space: nowrap;
  }

  .volt-dashboard-header .volt-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--volt-space-4);
  }
}
