/* ========================================
   GENIUS AI ADMIN PANEL - ANIMATED THEME
   ======================================== */

:root {
  /* Base Colors */
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);
  
  /* Brand Colors */
  --accent-blue: #00d2ff;
  --accent-purple: #7b2ff7;
  --accent-green: #00e676;
  --accent-red: #ff5252;
  --accent-yellow: #ffc107;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #00d2ff, #7b2ff7);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0, 210, 255, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes slideBorder {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========================================
   BASE STYLES
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(123, 47, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 210, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hidden { display: none !important; }

/* ========================================
   LOGIN PAGE
   ======================================== */

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 420px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 44px 40px;
  backdrop-filter: blur(20px);
  animation: fadeIn 0.5s ease;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

.login-logo {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  animation: float 3s ease-in-out infinite;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.08);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.login-error {
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  font-size: 13px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(123, 47, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123, 47, 247, 0.45);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(255, 82, 82, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 82, 82, 0.2);
}

.btn-danger:hover {
  background: rgba(255, 82, 82, 0.18);
  border-color: rgba(255, 82, 82, 0.35);
}

.btn-success {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 5px; }
.btn-full { width: 100%; }

/* ========================================
   LAYOUT
   ======================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: rgba(12, 12, 28, 0.95);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 10;
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease;
}

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

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(123, 47, 247, 0.3);
  animation: pulseGlow 2s infinite;
}

.sidebar-logo-text {
  font-size: 16px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

.sidebar-section {
  padding: 16px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 20px;
}

.sidebar-nav {
  flex: 1;
  padding: 6px 10px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 1px;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(123, 47, 247, 0.08));
  color: var(--accent-blue);
  font-weight: 600;
}

.nav-item .nav-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.top-bar h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-badge .admin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulseGlow 2s infinite;
}

.content-area {
  flex: 1;
  padding: 24px 28px;
  animation: fadeIn 0.3s ease;
}

.loading {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
  font-size: 13px;
}

.loading::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  margin: 12px auto 0;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========================================
   STATS GRID
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  animation: fadeIn 0.4s ease backwards;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: slideBorder 2s infinite;
}

.stat-card:hover {
  border-color: rgba(123, 47, 247, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.stat-card:hover::before { opacity: 1; }

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }
.stat-card:nth-child(7) { animation-delay: 0.35s; }

.stat-card .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.stat-card .stat-icon.blue { background: rgba(0, 210, 255, 0.1); }
.stat-card .stat-icon.purple { background: rgba(123, 47, 247, 0.1); }
.stat-card .stat-icon.green { background: rgba(0, 230, 118, 0.1); }
.stat-card .stat-icon.yellow { background: rgba(255, 193, 7, 0.1); }
.stat-card .stat-icon.red { background: rgba(255, 82, 82, 0.1); }

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   TABLE
   ======================================== */

.table-wrapper {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.table-actions {
  display: flex;
  gap: 4px;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-active {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.15);
}

.badge-pending {
  background: rgba(255, 193, 7, 0.1);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 193, 7, 0.15);
}

.badge-failed {
  background: rgba(255, 82, 82, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 82, 82, 0.15);
}

.badge-completed {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 210, 255, 0.15);
}

.badge-admin {
  background: rgba(123, 47, 247, 0.1);
  color: #b388ff;
  border: 1px solid rgba(123, 47, 247, 0.15);
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ========================================
   TOAST
   ======================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  animation: slideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
}

.toast-success {
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-green);
  border-color: rgba(0, 230, 118, 0.25);
}

.toast-error {
  background: rgba(255, 82, 82, 0.12);
  color: var(--accent-red);
  border-color: rgba(255, 82, 82, 0.25);
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #1a1a32;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.5;
}

.modal h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 4px;
}

.empty-state small {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   CREDITS PAGE
   ======================================== */

.credits-overview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.credit-stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.credit-stat-card:hover {
  border-color: rgba(123, 47, 247, 0.15);
  transform: translateY(-3px);
}

.credit-stat-card .credit-stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

.credit-stat-card .credit-stat-value {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.credit-stat-card .credit-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ========================================
   FILTER BAR
   ======================================== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-input,
.filter-select {
  padding: 9px 13px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.filter-input { flex: 1; min-width: 200px; }

.filter-input:focus,
.filter-select:focus {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.08);
}

.filter-select {
  appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ========================================
   LICENSE KEY
   ======================================== */

.license-key {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.15);
  color: var(--accent-blue);
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.license-key:hover {
  background: rgba(0, 210, 255, 0.14);
}

.license-key.copied {
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.3);
  color: var(--accent-green);
}

/* ========================================
   FEATURE MATRIX
   ======================================== */

.feature-matrix th,
.feature-matrix td {
  vertical-align: middle;
}

.feature-matrix .cat-row td {
  background: rgba(123, 47, 247, 0.05);
  color: var(--accent-purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  text-transform: uppercase;
}

/* ========================================
   SWITCH TOGGLE
   ======================================== */

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  vertical-align: middle;
  cursor: pointer;
  transition: var(--transition);
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch .slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: var(--transition);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #00d2ff, #7b2ff7);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.switch input:checked + .slider::before {
  transform: translateX(16px);
  background: #fff;
}

.switch.switch-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-logo-text, .sidebar-section, .nav-item span:not(.nav-icon) { display: none; }
  .nav-item { justify-content: center; padding: 10px; }
  .main-content { margin-left: 60px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .credits-overview { grid-template-columns: 1fr; }
  .assign-form-grid, .form-grid-2 { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-input { min-width: 0; }
}

/* ========================================
   PARTICLES BACKGROUND
   ======================================== */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  animation: float-particle 15s infinite linear;
  will-change: transform;
}

@keyframes float-particle {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-20px) translateX(10px) rotate(90deg); }
  50% { transform: translateY(20px) translateX(-10px) rotate(180deg); }
  75% { transform: translateY(10px) translateX(20px) rotate(270deg); }
  100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

/* ========================================
   HEADER STATUS
   ======================================== */

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 82, 82, 0.5);
  animation: pulseGlow 2s infinite;
}

.status-indicator.online {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
}

.status-indicator.offline {
  background: var(--accent-red);
  box-shadow: 0 0 6px rgba(255, 82, 82, 0.5);
}