/* ============================================
   BARBER.CSS
   Tela de login, cabeçalho do painel, abas,
   barra de configuração/data e o "chrome" do modal.
   ============================================ */

/* ---------- LOGIN ---------- */
.login-screen {
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 28px;
}

.brand { text-align: center; }
.brand-icon {
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}
.brand-icon .icon { width: 44px; height: 44px; }
.brand-logo {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(var(--accent-rgb), .35));
}
.brand-name {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: var(--tracking-brand);
  color: var(--accent);
  line-height: 1;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 4px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
}

/* ---------- HEADER DO PAINEL ---------- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: var(--tracking-heading);
  color: var(--accent);
}
.header-date-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.header-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}
.header-clock {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, color .2s;
}
.btn-logout .icon { width: 14px; height: 14px; }
.btn-logout:hover { border-color: var(--red); color: var(--red); }

/* ---------- BARRA DE CONFIGURAÇÃO / LOGADO COMO ---------- */
.config-bar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.config-val { color: var(--accent); font-weight: 600; }

/* ---------- BARRA DE DATA ---------- */
.date-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.date-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.date-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  appearance: none;
  flex: 1;
  max-width: 180px;
  transition: border-color .2s;
}
.date-input:focus { border-color: var(--accent); }
.btn-buscar {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-buscar:hover { opacity: .85; }

/* ---------- ABAS ---------- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 61px;
  z-index: 90;
}
.tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.tab .icon { width: 15px; height: 15px; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- MODAL (chrome/estrutura) ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  z-index: 200;
  align-items: flex-end;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-sub { font-size: 12px; color: var(--muted); }
.modal-close {
  margin-left: auto;
  background: var(--surface2);
  border: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-close .icon { width: 14px; height: 14px; }
