/* Material-inspired light surfaces, tonal controls and responsive navigation. */
:root {
  color-scheme: light;
  --md-sys-color-primary: #0b57d0;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d3e3fd;
  --md-sys-color-on-primary-container: #0842a0;
  --md-sys-color-secondary: #546178;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #e8edf5;
  --md-sys-color-on-secondary-container: #26364f;
  --md-sys-color-tertiary: #6750a4;
  --md-sys-color-tertiary-container: #eee6ff;
  --md-sys-color-on-tertiary-container: #34235b;
  --md-sys-color-error: #b3261e;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #f9dedc;
  --md-sys-color-on-error-container: #410e0b;
  --md-sys-color-success: #137333;
  --md-sys-color-on-success: #ffffff;
  --md-sys-color-success-container: #ceead6;
  --md-sys-color-on-success-container: #0d5225;
  --md-sys-color-warning: #8a5300;
  --md-sys-color-warning-container: #feefc3;
  --md-sys-color-on-warning-container: #653d00;
  --md-sys-color-surface: #f8fafd;
  --md-sys-color-surface-dim: #edf2fa;
  --md-sys-color-surface-bright: #ffffff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f1f5fb;
  --md-sys-color-surface-container: #ffffff;
  --md-sys-color-surface-container-high: #edf2fa;
  --md-sys-color-surface-container-highest: #e3eaf5;
  --md-sys-color-on-surface: #1f1f1f;
  --md-sys-color-on-surface-variant: #526071;
  --md-sys-color-outline: #747e8d;
  --md-sys-color-outline-variant: #dce3ee;
  --text-muted: #647184;
  --accent-info: #00639b;
  --md-sys-elevation-1: 0 1px 2px #22334a0d;
  --md-sys-elevation-2: 0 2px 8px #22334a12;
  --md-sys-elevation-3: 0 8px 32px #22334a1a;
  --md-sys-elevation-4: 0 16px 48px #22334a24;
}
body { background: var(--bg-app); line-height: 1.5; letter-spacing: 0; }
header { background: #f8fafd; backdrop-filter: none; box-shadow: none; padding: 16px 28px 0; border: 0; flex-wrap: wrap; gap: 16px; }
.logo-badge { background: white; border: 1px solid var(--border-subtle); box-shadow: none; border-radius: 14px; }
.logo-text h1 { font-size: 23px; font-weight: 500; letter-spacing: -.7px; }
.logo-text span { font-size: 12px; }
.header-right-actions { margin-left: auto; }
.header-user-pill { background: #edf2fa; border: 0; box-shadow: none; }
.user-avatar-circle { background: #d3e3fd; color: #0842a0; }
.header-role-tag.admin, .role-pill.admin { background: #eee6ff; color: #6750a4; }
.header-role-tag.asesor, .role-pill.asesor { background: #ceead6; color: #137333; }
nav.nav-tabs { order: 3; width: 100%; display: flex; gap: 6px; padding: 8px 0 14px; overflow-x: auto; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.nav-tab-btn { display: inline-flex; gap: 9px; align-items: center; border-radius: 24px; padding: 12px 20px; color: var(--text-secondary); white-space: nowrap; font-weight: 500; background: transparent; border: 0; }
.nav-tab-btn.active { background: #d3e3fd; color: #0842a0; box-shadow: none; }
.nav-tab-btn:hover { background: #e8edf5; }
.nav-tab-btn .material-symbols-outlined { font-size: 21px; }
.container { width: 100%; max-width: 1480px; padding: 24px 32px 48px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 6px 0 28px; }
.eyebrow { font-size: 11px; letter-spacing: 1.6px; font-weight: 600; color: var(--accent-primary); margin-bottom: 8px; }
.page-heading h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 400; letter-spacing: -1px; margin-bottom: 6px; }
.page-heading > div > p:last-child { color: var(--text-secondary); font-size: 14px; }
.workspace-chip { display: flex; gap: 8px; align-items: center; background: #e8f0fe; color: #0842a0; padding: 10px 16px; border-radius: 14px; font-size: 13px; white-space: nowrap; }
.call-mode-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; background: #edf2fa; padding: 16px 20px; border-radius: 20px; }
.call-mode-panel label { font-size: 13px; font-weight: 500; }
.call-mode-panel small { color: var(--text-secondary); font-size: 12px; }
.call-mode-panel .form-control { width: auto; flex: 1; min-width: 240px; background: white; }
.metrics-grid { gap: 16px; margin-bottom: 24px; }
.metric-card { padding: 22px 24px; border: 0; border-radius: 24px; box-shadow: none; background: #edf2fa; }
.metric-card.total { background: #d3e3fd; }
.metric-card.confirmed { background: #e4f2e8; }
.metric-card.thinking { background: #e4eff7; }
.metric-card.pending { background: #fff3d6; }
.metric-card::before { display: none; }
.metric-card:hover { transform: none; box-shadow: var(--md-sys-elevation-2); }
.metric-title { text-transform: none; letter-spacing: 0; font-size: 13px; color: #435166; font-weight: 500; }
.metric-value { font-size: 38px; font-weight: 400; letter-spacing: -1px; margin-top: 8px; }
.btn { min-height: 40px; border-radius: 24px; padding: 10px 20px; font-weight: 500; font-size: 14px; gap: 8px; box-shadow: none; transition: background .15s, box-shadow .15s; }
.btn .material-symbols-outlined { font-size: 20px; }
.btn:hover, .btn:active { transform: none; }
.btn-primary:hover { background: #0842a0; box-shadow: 0 2px 5px #0b57d025; }
.btn-success { background: #ceead6; color: #0d5225; }
.btn-success:hover { background: #bce1c7; }
.btn-danger { background: #f9dedc; color: #b3261e; }
.btn-danger:hover { background: #f4cbc8; }
.btn-outline { border-color: #c4cddc; color: var(--accent-primary); background: transparent; }
.btn-outline:hover { background: #e8f0fe; }
.btn-sm { min-height: 34px; padding: 7px 13px; font-size: 12px; }
.contacts-toolbar { background: transparent; padding: 0; border: 0; box-shadow: none; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar-search { min-width: 280px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { border-radius: 10px; color: var(--text-secondary); }
.filter-btn.btn-primary { background: #d3e3fd; color: #0842a0; border-color: transparent; }
.form-control, .login-form .form-control { background: #f8fafd; color: var(--text-main); border: 1px solid #c4cddc; border-radius: 12px; padding: 13px 16px; min-height: 48px; box-shadow: none; }
.form-control::placeholder { color: #6d7787; }
.form-control:focus, .login-form .form-control:focus { border-color: #0b57d0; box-shadow: 0 0 0 2px #0b57d025; outline: none; }
.form-group label, .login-form .form-label { color: var(--text-secondary); text-transform: none; letter-spacing: 0; font-weight: 500; }
.table-container { border-radius: 24px; background: white; border: 1px solid #e2e8f1; box-shadow: none; overflow-x: auto; }
table.data-table th { background: #f1f5fb; color: #526071; padding: 18px 20px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
table.data-table td { padding: 18px 20px; border-bottom-color: #edf1f7; font-size: 13px; }
table.data-table tr:hover td { background: #f8fafd; }
.badge { border: 0; font-weight: 500; padding: 6px 12px; }
.badge-pending { background: #feefc3; color: #775000; }
.badge-confirmed, .badge-scheduled { background: #ceead6; color: #137333; }
.badge-thinking { background: #d3e3fd; color: #0842a0; }
.badge-declined { background: #f9dedc; color: #b3261e; }
.settings-section, .calendar-view, .transcript-card { background: white; border: 1px solid #e2e8f1; border-radius: 24px; box-shadow: none; }
.settings-section { padding: 28px; }
.settings-section h3 { font-weight: 500; color: var(--text-main); }
.calendar-day-cell { background: white; border-color: #e2e8f1; }
.calendar-day-cell:hover { background: #edf2fa; }
.calendar-day-cell.other-month { background: #f8fafd; }
.calendar-event-tag.confirmed { background: #ceead6; color: #137333; border-color: #ceead6; }
.calendar-event-tag.thinking { background: #d3e3fd; color: #0842a0; border-color: #d3e3fd; }
.calendar-event-tag:hover { filter: none; transform: none; }
.modal-overlay { background: #16233a66; backdrop-filter: blur(3px); }
.modal-content { background: #f8fafd; border: 0; border-radius: 28px; box-shadow: var(--md-sys-elevation-4); }
.modal-title { font-weight: 500; }
.modal-close { background: #edf2fa; color: #526071; }
.call-transcript-box, .event-info-box, .excel-template-box, .campaign-preview-box { background: #edf2fa; border-color: #dce3ee; }
.campaign-bar, .selection-action-bar { background: #d3e3fd; border-color: transparent; color: #0842a0; box-shadow: none; border-radius: 20px; }
.login-overlay { background: #edf2fa; }
.login-card { background: #ffffff; border: 0; box-shadow: 0 8px 40px #22334a0d; border-radius: 28px; width: min(460px, calc(100vw - 32px)); padding: 40px; }
.login-logo-container { background: #edf2fa; border: 0; border-radius: 24px; box-shadow: none; width: 76px; height: 76px; }
.login-title { color: #1f1f1f; font-size: 30px; font-weight: 400; letter-spacing: -1px; }
.login-subtitle { color: #526071; font-size: 14px; }
.login-card-hint { background: #f1f5fb; color: #526071; border: 0; border-radius: 12px; font-size: 12px; }
.btn-login-submit { box-shadow: none; font-size: 15px; min-height: 48px; }
.btn-login-submit:hover:not(:disabled) { transform: none; box-shadow: var(--md-sys-elevation-2); }
.admin-header-banner { background: #edf2fa; border-color: #dce3ee; }
.status-indicator-dot.online { background: #137333; box-shadow: none; }
.transcript-card:hover { border-color: #b8cbea; box-shadow: var(--md-sys-elevation-1); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #0b57d0; outline-offset: 3px; }
@media (max-width: 800px) {
  header { padding: 14px 16px 0; gap: 12px; }
  .header-right-actions { gap: 8px; }
  .nav-tabs { gap: 4px; }
  .nav-tab-btn { padding: 10px 14px; font-size: 13px; }
  .container { padding: 20px 16px 32px; }
  .page-heading { margin-bottom: 20px; }
  .workspace-chip { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metric-card { padding: 18px; }
  .toolbar-search { width: 100%; min-width: 0; }
  .call-mode-panel .form-control { min-width: 0; width: 100%; flex-basis: 100%; }
  .login-card { padding: 28px; }
  .settings-section { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
