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

:root {
  --bg-main: #f0f7ff; /* Arctic Ice background */
  --bg-card: #ffffff;
  --bg-border: #d4e4f7; /* Ice Blue border */
  --accent-tec: #4A6FA5; /* Steel Blue core */
  --accent-tec-hover: #3A5A8A;
  --accent-action: #6366F1; /* Indigo variant for contrast */
  --text-main: #1E293B; 
  --text-muted: #64748B;
  --font-serif: 'Inter', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --glass-blur: blur(15px);
  --shadow-premium: 0 10px 15px -3px rgba(74, 111, 165, 0.07), 0 4px 6px -2px rgba(74, 111, 165, 0.05);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

.noise-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.6" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/* Ambient liquid glow */
.ambient-glow {
  position: fixed;
  top: -10vh;
  right: -10vw;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(74, 111, 165, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.title-tec {
  color: var(--accent-tec) !important;
  font-family: var(--font-serif);
}

.luxury-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  position: relative;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
  box-shadow: 0 15px 30px -10px rgba(74, 111, 165, 0.15);
  border-color: var(--accent-tec);
}

.luxury-input {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--bg-border);
  color: var(--text-main);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.luxury-input:focus {
  background: #ffffff;
  border-color: var(--accent-tec);
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.1);
  outline: none;
}

/* --- BUTTON SYSTEM STANDARDIZATION --- */
.btn-tec, .btn-primary-tec, .btn-action, .btn-vincular, .btn-confirm-nexus {
  background: var(--accent-tec);
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--accent-tec);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
}

.btn-tec:hover, .btn-primary-tec:hover, .btn-action:hover, .btn-vincular:hover, .btn-confirm-nexus:hover {
  background: var(--accent-tec-hover);
  border-color: var(--accent-tec-hover);
  transform: translateY(-1px);
}

.btn-secondary-tec, .btn-outline-tec {
  background: transparent;
  border: 2px solid var(--text-main);
  color: var(--text-main) !important;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  min-height: 40px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-secondary-tec:hover, .btn-outline-tec:hover {
  background: #f8fafc;
  border-color: var(--accent-tec);
  color: var(--accent-tec) !important;
}

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.7rem !important;
  min-height: 32px !important;
}


/* Modal specific button overrides */
.modal-footer .btn-primary { background: var(--accent-tec) !important; border:none; border-radius: 8px; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; padding: 0.65rem 1.75rem; }
.modal-footer .btn-secondary { background: white !important; border: 2px solid var(--accent-tec) !important; color: var(--accent-tec) !important; border-radius: 8px; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; padding: 0.65rem 1.75rem; }

/* Dashboard Sidebar Hierarchy */
.dash-sidebar {
  background: #ffffff;
  border-right: 1px solid #edf2f7;
  font-family: var(--font-sans);
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a0aec0;
  padding: 1.5rem 1.25rem 0.5rem;
}

.dash-link {
  color: #4a5568;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0.125rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-link:hover {
  background: #f7fafc;
  color: var(--accent-tec);
}

.dash-link.active {
  background: rgba(74, 111, 165, 0.08);
  color: var(--accent-tec);
  font-weight: 600;
}

.sub-link {
  font-size: 0.85rem;
  padding: 0.6rem 1rem 0.6rem 2.75rem;
  margin: 0.125rem 0.75rem;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Accordion triggers as parent items */
.dash-sidebar .accordion-button {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  padding: 0.75rem 1.25rem;
  border-radius: 8px !important;
  margin: 0.125rem 0.75rem;
  width: auto;
}

.dash-sidebar .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
}

.dash-sidebar .accordion-button::after {
  background-size: 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
}


/* Tab nav for salon view */
.salon-tab-nav {
  border-bottom: 2px solid var(--bg-border);
  display: flex;
  gap: 0;
}
.salon-tab-btn {
  padding: 0.85rem 1.5rem;
  
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.salon-tab-btn:hover { color: var(--accent-tec); }
.salon-tab-btn.active {
  color: var(--accent-tec);
  border-bottom-color: var(--accent-tec);
}
.salon-tab-pane { display: none; }
.salon-tab-pane.active { display: block; }

/* Feather Icon Standard Fix */
[data-feather] {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5px; /* Thicker for better visibility */
  display: inline-block;
  vertical-align: middle;
}
.btn-sm [data-feather] {
  width: 16px;
  height: 16px;
}
/* Ensure colors are prominent */
.text-muted [data-feather], [data-feather].text-muted {
  stroke: #64748B !important;
}
.text-primary [data-feather], [data-feather].text-primary {
  stroke: var(--accent-tec) !important;
}

/* --- BUTTON LOADING SYSTEM --- */
.btn-loading {
  position: relative !important;
  color: rgba(255,255,255,0.2) !important; /* Semi-transparent to let spinner shine but keep context */
  pointer-events: none !important;
  min-width: 140px;
}

.btn-loading::after {
  content: "" !important;
  position: absolute !important;
  width: 16px !important;
  height: 16px !important;
  top: 50% !important;
  right: 15px !important; /* Move to the right side of the text */
  margin-top: -8px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  border-top-color: #ffffff !important;
  animation: spinNexus 0.6s linear infinite !important;
}

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

/* Animations */
.fade-up {
  animation: fadeUp 0.3s ease;
}

/* Breadcrumb */
.breadcrumb-nexus {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb-nexus a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-nexus a:hover { color: var(--accent-tec); }
.breadcrumb-nexus .current { color: var(--text-main); font-weight: 700; }

/* Stat pill */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}
.stat-pill-blue { background: rgba(74, 111, 165,0.08); color: var(--accent-tec); }
.stat-pill-green { background: rgba(16,185,129,0.1); color: #059669; }
.stat-pill-orange { background: rgba(249,115,22,0.1); color: var(--accent-action); }
.stat-pill-gray { background: #F1F5F9; color: var(--text-muted); }

.table-luxury {
  color: var(--text-main);
  border-collapse: separate;
  border-spacing: 0 6px;
  width: 100%;
}
.table-luxury th {
  border: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 1rem;
}
.table-luxury td {
  background: #FFFFFF;
  border: 1px solid var(--bg-border);
  border-style: solid none;
  padding: 1rem;
  vertical-align: middle;
}
.table-luxury td:first-child {
  border-left: 1px solid var(--bg-border);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.table-luxury td:last-child {
  border-right: 1px solid var(--bg-border);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.table-luxury tbody tr {
  transition: all 0.3s;
}
.table-luxury tbody tr:hover td {
  background: var(--bg-card);
  border-color: rgba(74, 111, 165,0.2);
}

.badge-tec {
  background: rgba(74, 111, 165,0.08);
  color: var(--accent-tec);
  border: 1px solid rgba(74, 111, 165,0.15);
  font-weight: 500;
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
}

/* Custom form section styling for academic look */
.form-section { 
  border-left: 3px solid var(--bg-border); 
  padding-left: 2.5rem; 
  margin-bottom: 3.5rem; 
  position: relative; 
}
.form-section::before { 
  content: ''; 
  position: absolute; 
  left: -8px; 
  top: 6px; 
  width: 13px; 
  height: 13px; 
  background: var(--accent-tec); 
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 111, 165,0.2);
}
.form-label { 
  text-transform: uppercase; 
  font-size: 0.7rem; 
  letter-spacing: 0.1em; 
  color: var(--text-muted); 
  font-weight: 600; 
  margin-bottom: 0.5rem;
}

/* ============================================
   SALON VIEW — Frontend Design Skill
   Direction: Editorial / Institutional
   ============================================ */

/* --- Sidebar refinements --- */
.dash-sidebar {
  background: #FAFAFA;
  border-right: 1px solid #EAEAEA;
}
.sidebar-section-label {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: #C0CAD4;
  padding: 1rem 1.2rem 0.3rem;
  font-weight: 700;
}
.accordion-button::after { display: none; } /* Remove Bootstrap chevron */

/* --- Stat pills — prominent & weighted --- */
.stat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.stat-pill-blue  { background: #EEF2FF; color: #1D4ED8; border: 1px solid #C7D2FE; }
.stat-pill-green { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.stat-pill-orange{ background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }
.stat-pill-gray  { background: #F8FAFC; color: #64748B; border: 1px solid #E2E8F0; }

/* --- Progress bar — hero KPI --- */
.kpi-progress-wrap {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.kpi-progress-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-tec), #60A5FA);
}
.kpi-bar-track {
  height: 10px;
  background: #F1F5F9;
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.kpi-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-tec) 0%, #3B82F6 100%);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Salon Tab Nav — editorial underline style --- */
.salon-tab-nav {
  border-bottom: 1.5px solid #E2E8F0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.salon-tab-nav::-webkit-scrollbar { display: none; }
.salon-tab-btn {
  
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94A3B8;
  padding: 0.9rem 1.4rem;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.salon-tab-btn:hover { color: var(--text-main); }
.salon-tab-btn.active {
  color: var(--accent-tec);
  border-bottom-color: var(--accent-tec);
}
.salon-tab-btn[onclick*="nexus"].active,
.salon-tab-btn[onclick*="nexus"]:hover {
  color: var(--accent-action);
  border-bottom-color: var(--accent-action);
}

/* Tab pane entrance animation */
.salon-tab-pane { display: none; }
.salon-tab-pane.active {
  display: block;
  animation: tabIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Data table — editorial refinement --- */
.table-luxury {
  border-spacing: 0;
  border-collapse: collapse;
}
.table-luxury thead tr {
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
}
.table-luxury th {
  
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
  padding: 0.9rem 1rem;
  border: none;
}
.table-luxury td {
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid #F1F5F9;
  background: white;
}
.table-luxury tbody tr {
  transition: background 0.15s ease;
}
.table-luxury tbody tr:hover td {
  background: #F8FBFF;
}
.table-luxury tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-tec);
}

/* --- Nexus match cards --- */
.nexus-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.nexus-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}
.nexus-card-high::after  { background: #10B981; }
.nexus-card-mid::after   { background: var(--accent-action); }
.nexus-card-low::after   { background: #E2E8F0; }
.nexus-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* --- Professor cards --- */
.prof-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease;
}
.prof-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent-tec);
}
.load-bar {
  height: 4px;
  background: #F1F5F9;
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.load-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-tec), #60A5FA);
  border-radius: 100px;
}

/* --- Breadcrumb --- */
.breadcrumb-nexus {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #94A3B8;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}
.breadcrumb-nexus a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb-nexus a:hover { color: var(--accent-tec); }
.breadcrumb-nexus .current {
  color: var(--text-main);
  font-weight: 700;
}

/* --- Salon header stat bar --- */
.salon-stat-bar {
  display: flex;
  gap: 0;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.salon-stat-item {
  flex: 1;
  padding: 1rem 1.25rem;
  border-right: 1px solid #F1F5F9;
  position: relative;
}
.salon-stat-item:last-child { border-right: none; }
.salon-stat-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 0.3rem;
}
.salon-stat-value {
  
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
}
.salon-stat-sub {
  font-size: 0.68rem;
  color: #94A3B8;
  margin-top: 0.2rem;
}

/* --- Empty state --- */
.empty-state {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 3.5rem 2rem;
  text-align: center;
}
.empty-state-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  background: #F8FAFC;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #CBD5E1;
}

/* --- Sede cards --- */
.sede-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: box-shadow 0.2s ease;
}
.sede-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.sede-icon {
  width: 40px; height: 40px;
  background: #F8FAFC;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #CBD5E1;
  flex-shrink: 0;
}

/* --- Button Overrides Removed - Using Global System --- */


/* Remove Bootstrap Modal Zoom */
.modal.fade .modal-dialog {
  transform: none !important;
  transition: opacity 0.2s linear !important;
}

