/* premium.css - Modern SaaS utilities */
:root {
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg, 12px);
}
.premium-card {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}
.premium-card:hover {
  box-shadow: var(--shadow-md);
}

/* Flex Utilities */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: center; justify-content: flex-start; }
.flex-end { display: flex; align-items: center; justify-content: flex-end; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { display: flex; flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }

/* Margins & Padding */
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; }
.ml-1 { margin-left: 4px; } .ml-2 { margin-left: 8px; } .ml-auto { margin-left: auto; }
.mr-1 { margin-right: 4px; } .mr-2 { margin-right: 8px; }
.p-0 { padding: 0 !important; } .p-2 { padding: 8px; } .p-3 { padding: 12px; } .p-4 { padding: 16px; } .p-5 { padding: 24px; }

/* Text Utilities */
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-danger { color: #dc2626; }
.text-success { color: #16a34a; }
.text-warning { color: #d97706; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; letter-spacing: 0.5px; }

/* Badges (Soft variants) */
.badge-soft-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; font-weight: 600; padding: 2px 8px; border-radius: 12px; font-size: 11px; display: inline-block; white-space: nowrap; }
.badge-soft-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; font-weight: 600; padding: 2px 8px; border-radius: 12px; font-size: 11px; display: inline-block; white-space: nowrap; }
.badge-soft-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; font-weight: 600; padding: 2px 8px; border-radius: 12px; font-size: 11px; display: inline-block; white-space: nowrap; }
.badge-soft-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; font-weight: 600; padding: 2px 8px; border-radius: 12px; font-size: 11px; display: inline-block; white-space: nowrap; }
.badge-soft-primary { background: rgba(18,130,63,0.1); color: var(--primary-light); border: 1px solid rgba(18,130,63,0.2); font-weight: 600; padding: 2px 8px; border-radius: 12px; font-size: 11px; display: inline-block; white-space: nowrap; }
.badge-soft-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; font-weight: 600; padding: 2px 8px; border-radius: 12px; font-size: 11px; display: inline-block; white-space: nowrap; }

/* Action Buttons */
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-ghost:hover { background: #f1f5f9; color: var(--text-primary); }

/* Width/Height Utilities */
.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.h-full { height: 100%; }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Code / Monospace */
.font-mono { font-family: monospace; }
.code-block { background: #f8fafc; padding: 10px; border-radius: 6px; border: 1px solid var(--border); font-family: monospace; white-space: pre-wrap; line-height: 1.4; color: #1e293b; font-size: 12px; }

/* Dashboard specifics */
.kpi-card { border: none !important; }
.agent-movement-item { border-left-width: 4px !important; border-left-style: solid; padding: 16px; display: flex; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; transition: all 0.2s ease; }
.agent-movement-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.agent-movement-item.item-urgent { border-left-color: #ef4444 !important; background: rgba(239, 68, 68, 0.015); }
.agent-movement-item.item-nocturnal { background: rgba(139, 92, 246, 0.01); }

/* ── Global Premium Upgrades (UI/UX Pro Max & Taste) ── */

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* Card Improvements */
.card {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
  padding: 24px !important;
  background: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.card:hover {
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding-bottom: 16px !important;
  margin-bottom: 20px !important;
}

/* Inputs & Form Controls */
.form-control {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  font-size: 13.5px !important;
  padding: 10px 14px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.form-control:focus {
  border-color: var(--primary-light, #12823F) !important;
  box-shadow: 0 0 0 3.5px rgba(18, 130, 63, 0.12) !important;
  background-color: #ffffff !important;
}

.form-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-muted, #64748B) !important;
  margin-bottom: 8px !important;
}

/* Connected Input Capsule Focus */
.input-group-connected {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.input-group-connected:focus-within {
  border-color: var(--primary-light, #12823F) !important;
  box-shadow: 0 0 0 3.5px rgba(18, 130, 63, 0.12) !important;
}

/* Buttons Polish */
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.btn-sm {
  padding: 8px 14px !important;
  font-size: 12px !important;
}
.btn-xs {
  padding: 4px 8px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}
.btn:hover {
  transform: translateY(-1.5px) scale(1.01);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--primary, #0C5528) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(12, 85, 40, 0.15) !important;
}
.btn-primary:hover {
  background: var(--primary-light, #12823F) !important;
  box-shadow: 0 6px 14px rgba(12, 85, 40, 0.22) !important;
}

.btn-success {
  background: #16a34a !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15) !important;
}
.btn-success:hover {
  background: #15803d !important;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.22) !important;
}

.btn-outline {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: transparent !important;
  color: var(--text-secondary, #475569) !important;
}
.btn-outline:hover {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: var(--text-primary, #1E293B) !important;
}

/* Tables Styling */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-muted, #64748B) !important;
  padding: 14px 16px !important;
  background: #f8fafc !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
}
.table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  font-size: 13px !important;
  color: var(--text-secondary, #475569) !important;
  vertical-align: middle !important;
}
.table tbody tr {
  transition: background-color 0.2s ease !important;
}
.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.015) !important;
}

/* Modals Modern Glass Style */
.modal {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-xl) !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  background: #ffffff !important;
  animation: modal-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.modal-body {
  overflow-y: auto !important;
  flex: 1 !important;
}
@keyframes modal-enter {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 20px 24px !important;
  background: #f8fafc !important;
}
.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 16px 24px !important;
  background: #f8fafc !important;
}

/* Badges soft override */
.badge {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 99px !important;
  border: 1px solid transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

