/* Veegaland Developers Limited - Visitor Management App Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #0b0f19;
  --bg-secondary: #131c31;
  --bg-card: rgba(26, 37, 65, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #0f763e;
  
  --primary: #0f763e;       /* Emerald Green */
  --primary-glow: rgba(15, 118, 62, 0.4);
  --primary-hover: #13914d;
  
  --secondary: #e5a93b;     /* Gold/Amber */
  --secondary-glow: rgba(229, 169, 59, 0.3);
  --secondary-hover: #f3b84c;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --sidebar-width: 260px;
  --header-height: 70px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  /* Shadows & Blurs */
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-inset: inset 0 2px 4px 0 rgba(255, 255, 255, 0.06);
  --glass-blur: blur(12px);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(15, 118, 62, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(229, 169, 59, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(15, 118, 62, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px var(--primary-glow); }
  50% { box-shadow: 0 0 25px rgba(15, 118, 62, 0.7); }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.slide-in {
  animation: slideIn 0.3s ease forwards;
}

/* App Container */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Login View */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-main), var(--shadow-inset);
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 8px;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
  font-weight: 300;
}

/* SVG Logo Styling */
.logo-svg {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  gap: 8px;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #15a457 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 118, 62, 0.6);
}

.btn-primary:active {
  transform: translateY(1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
  width: 100%;
}

.login-presets {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.presets-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.preset-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-preset:hover {
  background: rgba(15, 118, 62, 0.1);
  border-color: var(--primary);
  color: var(--text-main);
}

/* Main Dashboard Layout */
.app-header {
  height: var(--header-height);
  background: rgba(19, 28, 49, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-svg {
  width: 42px;
  height: auto;
}

.header-title-container {
  display: flex;
  flex-direction: column;
}

.header-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.header-brand-tag {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.user-role {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-right: 12px;
}

.nav-tab {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
}

.nav-tab.active {
  background: var(--primary);
  color: white;
}

/* App Body / Views Container */
.app-content {
  flex: 1;
  padding: 24px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Grid & Cards system */
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main), var(--shadow-inset);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.card-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-icon {
  color: var(--primary);
}

.card-body {
  padding: 24px;
}

/* Form Styles */
.visitor-type-selector {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  padding: 6px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.type-option {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.type-option.active-normal {
  background: rgba(15, 118, 62, 0.15);
  color: #51cf85;
  border: 1px solid rgba(15, 118, 62, 0.3);
}

.type-option.active-vip {
  background: rgba(229, 169, 59, 0.15);
  color: var(--secondary-hover);
  border: 1px solid rgba(229, 169, 59, 0.3);
  animation: pulse-glow 2s infinite;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Dynamic field transitions */
.collapsible-field {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 120px;
  opacity: 1;
  overflow: hidden;
  margin-bottom: 20px;
}

.collapsible-field.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

/* Camera Section Styling */
.camera-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.camera-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #070a13;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror view for camera preview */
}

.camera-canvas {
  display: none;
}

.captured-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Camera tech overlays */
.camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-box.active .camera-overlay::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 70%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.camera-box.active .camera-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: scanline 2.5s linear infinite;
}

.camera-reticle {
  width: 30px;
  height: 30px;
  position: absolute;
  border: 2px solid var(--secondary);
}

.camera-reticle-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.camera-reticle-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.camera-reticle-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.camera-reticle-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.camera-status-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.75);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  border: 1px solid rgba(229, 169, 59, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 12;
}

.camera-status-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
}

.camera-box.active .camera-status-dot {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.camera-box.active .camera-status-tag {
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

.camera-placeholder {
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.camera-placeholder i {
  font-size: 40px;
  color: var(--primary);
  opacity: 0.8;
}

.camera-controls {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  width: 100%;
}

.camera-controls .btn {
  flex: 1;
}

.upload-fallback-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  width: 100%;
  transition: all 0.2s ease;
  margin-top: 12px;
}

.upload-fallback-label:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  color: var(--text-main);
}

/* Quick List / Log Styles */
.quick-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.quick-list-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.quick-list-item:last-child {
  border-bottom: none;
}

.visitor-info-compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.visitor-avatar-compact {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.visitor-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(15, 118, 62, 0.1);
  border: 1px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.visitor-details-compact {
  display: flex;
  flex-direction: column;
}

.visitor-name-compact {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.visitor-plate-compact {
  font-size: 12px;
  font-family: monospace;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 4px;
}

.visitor-meta-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.visitor-time {
  font-size: 12px;
  color: var(--text-muted);
}

.badge-vip {
  font-size: 10px;
  background: rgba(229, 169, 59, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(229, 169, 59, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-normal {
  font-size: 10px;
  background: rgba(15, 118, 62, 0.15);
  color: #51cf85;
  border: 1px solid rgba(15, 118, 62, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status-in {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.badge-status-out {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* Check-out button quick */
.btn-checkout-quick {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.btn-checkout-quick:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* Admin Dashboard CSS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-inset);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon-primary {
  background: rgba(15, 118, 62, 0.12);
  color: var(--primary-hover);
  border: 1px solid rgba(15, 118, 62, 0.2);
}

.stat-icon-secondary {
  background: rgba(229, 169, 59, 0.12);
  color: var(--secondary);
  border: 1px solid rgba(229, 169, 59, 0.2);
}

.stat-icon-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-icon-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}

/* Filter controls and Search Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.3);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.filter-input:focus {
  border-color: var(--primary);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-input-wrapper .filter-input {
  width: 100%;
  padding-left: 36px;
}

/* Data Table Styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background: rgba(19, 28, 49, 0.6);
  padding: 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  user-select: none;
  cursor: pointer;
}

.data-table th:hover {
  color: var(--text-main);
}

.data-table th.sort-asc::after {
  content: ' ▴';
}

.data-table th.sort-desc::after {
  content: ' ▾';
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

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

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

/* Pagination Control styling */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 4px;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-buttons {
  display: flex;
  gap: 8px;
}

.btn-page {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-page:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modal styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-main);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast message notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast {
  background: rgba(19, 28, 49, 0.95);
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  color: var(--text-main);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }

.toast-message {
  font-size: 14px;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}

/* Utility classes */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center !important; }
.w-full { width: 100% !important; }
.d-none { display: none !important; }
.flex { display: flex !important; }
.align-center { align-items: center !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.mt-3 { margin-top: 12px !important; }
.mb-3 { margin-bottom: 12px !important; }
.ml-auto { margin-left: auto !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
