/* ==============================================================================
   MICASA360 CRM - DISEÑO PREMIUM & SISTEMA DE ESTILOS
   Tema: Dark Obsidian Luxury & High-Tech 360°
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Paleta Base */
  --bg-primary: #070B12;
  --bg-secondary: #0D131F;
  --bg-surface: rgba(18, 26, 43, 0.75);
  --bg-surface-hover: rgba(26, 37, 60, 0.9);
  --bg-card: #111A2C;
  --bg-input: rgba(10, 16, 28, 0.85);

  /* Bordes & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #00D2FF;
  --glass-blur: blur(20px);
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --glass-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);

  /* Colores de Acento & Estado */
  --brand-cyan: #00D2FF;
  --brand-blue: #3A7BD5;
  --brand-gradient: linear-gradient(135deg, #00D2FF 0%, #3A7BD5 100%);
  --brand-gradient-glow: linear-gradient(135deg, rgba(0, 210, 255, 0.25) 0%, rgba(58, 123, 213, 0.25) 100%);
  
  --status-green: #10B981;
  --status-green-bg: rgba(16, 185, 129, 0.12);
  --status-green-border: rgba(16, 185, 129, 0.35);

  --status-amber: #F59E0B;
  --status-amber-bg: rgba(245, 158, 11, 0.12);
  --status-amber-border: rgba(245, 158, 11, 0.35);

  --status-red: #EF4444;
  --status-red-bg: rgba(239, 68, 68, 0.12);
  --status-red-border: rgba(239, 68, 68, 0.35);

  --status-purple: #8B5CF6;
  --status-purple-bg: rgba(139, 92, 246, 0.12);
  --status-purple-border: rgba(139, 92, 246, 0.35);

  /* Tipografía & Textos */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-white: #FFFFFF;

  /* Transiciones */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 210, 255, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(58, 123, 213, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #070B12 0%, #090F1A 100%);
  background-attachment: fixed;
}

/* Botones & Controles */
button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

a {
  color: var(--brand-cyan);
  text-decoration: none;
}

/* ==============================================================================
   1. PANTALLA DE LOGIN BLINDADA
   ============================================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(58, 123, 213, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(-20px, -20px); opacity: 0.6; }
  100% { transform: scale(1.1) translate(20px, 20px); opacity: 0.9; }
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 2;
  animation: cardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.brand-badge svg {
  color: var(--brand-cyan);
}

.brand-badge span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand-cyan);
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-white);
  margin-bottom: 6px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.security-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--status-green);
  font-family: var(--font-mono);
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.security-indicator .dot {
  width: 6px;
  height: 6px;
  background-color: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-green);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input.no-icon, .form-select.no-icon {
  padding-left: 14px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
  background: rgba(13, 20, 35, 0.95);
}

.toggle-password {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--text-primary);
}

/* Botones Principales */
.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--brand-gradient);
  color: #030712;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
  letter-spacing: 0.2px;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.5);
  transform: translateY(-1px);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid var(--status-red-border);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Mensajes de Alerta */
.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  display: none;
}

.alert-error {
  background: var(--status-red-bg);
  border: 1px solid var(--status-red-border);
  color: #FCA5A5;
}

.alert-success {
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  color: #6EE7B7;
}

/* ==============================================================================
   2. INTERFAZ PRINCIPAL DEL CRM TRAS EL LOGIN
   ============================================================================== */
.app-container {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

/* Barra Superior */
.top-navbar {
  height: 70px;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

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

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030712;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-white);
  line-height: 1.2;
}

.brand-text span {
  font-size: 11px;
  color: var(--brand-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.shield-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #34D399;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.user-avatar {
  width: 26px;
  height: 26px;
  background: #1E293B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-cyan);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Menú de Navegación de Pestañas */
.nav-tabs-wrapper {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
}

.nav-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--brand-cyan);
  border-bottom-color: var(--brand-cyan);
  background: rgba(0, 210, 255, 0.04);
}

.tab-btn svg {
  transition: transform var(--transition-fast);
}

.tab-btn.active svg {
  transform: scale(1.1);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 11px;
}

.tab-btn.active .tab-badge {
  background: rgba(0, 210, 255, 0.2);
  color: var(--brand-cyan);
}

/* Área de Contenido */
.main-content {
  flex: 1;
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane {
  display: none;
  animation: paneFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

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

/* Encabezados de Sección */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-group h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.4px;
}

.section-title-group p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Barra de Filtros y Búsqueda */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box input {
  padding-left: 38px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Tarjetas de Métricas (KPIs) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color, var(--brand-cyan));
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.metric-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-color, var(--brand-cyan));
}

.metric-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-white);
  line-height: 1;
  font-family: var(--font-mono);
}

.metric-footer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==============================================================================
   3. TABLAS DE DATOS MODERNAS Y RESPONSIVAS
   ============================================================================== */
.table-container {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow-sm);
}

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

.data-table th {
  background: rgba(13, 19, 31, 0.9);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.7px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

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

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

/* Badges y Etiquetas */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-approved, .badge-al-dia, .badge-finalizado {
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  color: #34D399;
}

.badge-pending, .badge-por-vencer, .badge-en-terreno {
  background: var(--status-amber-bg);
  border: 1px solid var(--status-amber-border);
  color: #FBBF24;
}

.badge-rejected, .badge-atrasado {
  background: var(--status-red-bg);
  border: 1px solid var(--status-red-border);
  color: #F87171;
}

.badge-service {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--brand-cyan);
}

.badge-tech {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #C084FC;
}

/* Semáforo Visual del Dashboard */
.semaphore-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.semaphore-dot.al-dia {
  background: var(--status-green);
  box-shadow: 0 0 10px var(--status-green);
}

.semaphore-dot.por-vencer {
  background: var(--status-amber);
  box-shadow: 0 0 10px var(--status-amber);
}

.semaphore-dot.atrasado {
  background: var(--status-red);
  box-shadow: 0 0 10px var(--status-red);
  animation: blink 1.5s infinite;
}

.semaphore-dot.finalizado {
  background: #60A5FA;
  box-shadow: 0 0 10px #60A5FA;
}

.timeline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.timeline-al-dia {
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  color: #34D399;
}

.timeline-por-vencer {
  background: var(--status-amber-bg);
  border: 1px solid var(--status-amber-border);
  color: #FBBF24;
}

.timeline-atrasado {
  background: var(--status-red-bg);
  border: 1px solid var(--status-red-border);
  color: #F87171;
}

.timeline-finalizado {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93C5FD;
}

/* Filas vacías o estados de carga */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

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

/* ==============================================================================
   4. MODALES DINÁMICOS & FORMULARIOS
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.modal-close {
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
}

.modal-close:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

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

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

/* ==============================================================================
   5. TOAST NOTIFICACIONES
   ============================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
  min-width: 260px;
}

.toast-success {
  border-color: var(--status-green-border);
  color: #34D399;
}

.toast-error {
  border-color: var(--status-red-border);
  color: #F87171;
}

.toast-info {
  border-color: rgba(0, 210, 255, 0.35);
  color: var(--brand-cyan);
}

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

/* Acciones en Tabla */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.btn-icon:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.btn-icon.delete:hover {
  color: var(--status-red);
  border-color: var(--status-red-border);
  background: var(--status-red-bg);
}

.btn-icon.convert:hover {
  color: var(--brand-cyan);
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(0, 210, 255, 0.1);
}

/* ==============================================================================
   6. RESPONSIVE
   ============================================================================== */
@media (max-width: 900px) {
  .top-navbar {
    padding: 0 16px;
  }
  .nav-tabs-wrapper {
    padding: 0 16px;
  }
  .main-content {
    padding: 20px 16px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .table-container {
    overflow-x: auto;
  }
}
