/* IBI Music — estilo inspirado no site batistaivoti.com.br
   Fonte: coloque os arquivos da ABCDiatype em assets/fonts/ (veja LEIAME.txt).
   Sem eles, o sistema usa Inter Tight automaticamente. */

@font-face {
  font-family: 'ABCDiatype';
  src: url('../fonts/ABCDiatype-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url('../fonts/ABCDiatype-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url('../fonts/ABCDiatype-Bold.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinta: #0b0b0b;
  --mudo: #5c5c5c;
  --texto2: #3d3d3d;
  --linha: #e4e4e1;
  --linha-forte: #cfcfcb;
  --fundo-suave: #f4f4f2;
  --botao-claro: #ececea;
  --nav: #1c1c1c;
  --ok-bg: #dcefe4;
  --ok-fg: #14573a;
  --alerta-bg: #fbe9c8;
  --alerta-fg: #6b3d00;
  --erro-bg: #f6d9d6;
  --erro-fg: #8c1d18;
  --fonte: 'ABCDiatype', 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serifa: 'Instrument Serif', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
a { color: var(--tinta); }
a:hover { color: #555; }
h1, h2, h3 { margin: 0; letter-spacing: -0.04em; }
.serifa { font-family: var(--serifa); font-weight: 400; letter-spacing: -0.02em; }
.mudo { color: var(--mudo); }
.pequeno { font-size: 13px; }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* topo e menu */
.topo {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; padding: 20px 40px;
}
.logo { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; text-decoration: none; }
.menu {
  background: var(--nav); border-radius: 12px; padding: 5px; display: flex; gap: 2px;
}
.menu a {
  color: #d9d9d5; text-decoration: none; font-size: 15px; letter-spacing: -0.02em;
  padding: 9px 14px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center;
}
.menu a:hover { color: #fff; }
.menu a.ativo { color: #fff; background: #3a3a3a; }
.usuario { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 20px; background: var(--botao-claro);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.sair { color: var(--mudo); }

.pagina { padding: 8px 40px 64px; max-width: 1440px; margin: 0 auto; }
.pagina-estreita { max-width: 880px; }

/* títulos de página */
.sobretitulo { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mudo); }
.titulo-pagina { font-size: 64px; line-height: 0.95; font-weight: 600; letter-spacing: -0.05em; margin: 6px 0 0; }
.cabeca-pagina {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin: 16px 0 28px;
}
h2.secao { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 12px; }

/* avisos */
.aviso { border-radius: 10px; padding: 12px 14px; margin: 8px 0 16px; font-size: 15px; }
.aviso-ok { background: var(--ok-bg); color: var(--ok-fg); }
.aviso-alerta { background: var(--alerta-bg); color: var(--alerta-fg); }
.aviso-erro { background: var(--erro-bg); color: var(--erro-fg); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--botao-claro); color: var(--tinta);
  font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.02em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--tinta); filter: brightness(0.96); }
.btn-escuro { background: var(--tinta); color: #fff; }
.btn-escuro:hover { color: #fff; filter: brightness(1.2); }
.btn-perigo { background: var(--erro-bg); color: var(--erro-fg); }
.btn-pequeno { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-bloco { width: 100%; justify-content: space-between; }
.btn-ativo { background: var(--tinta); color: #fff; }
.grupo-botoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* formulários */
label { display: block; font-size: 14px; color: var(--texto2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--linha-forte); border-radius: 10px;
  background: #fff; padding: 0 14px; font-family: inherit; font-size: 16px; color: var(--tinta);
}
textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
textarea.mono { font-family: var(--mono); font-size: 14px; line-height: 1.45; }
select { padding-right: 8px; }
.campo { margin-bottom: 16px; }
.linha-campos { display: flex; flex-wrap: wrap; gap: 16px; }
.linha-campos > * { flex: 1 1 180px; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linha-forte);
  border-radius: 10px; padding: 8px 12px; min-height: 44px; margin: 0; color: var(--tinta); cursor: pointer;
}
.check input { width: 18px; height: 18px; }

/* cartões e grade */
.cartao { border: 1px solid var(--linha); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.cartao-suave { background: var(--fundo-suave); border-color: transparent; border-radius: 16px; padding: 18px; }
.cartao-escuro { background: var(--tinta); color: #fff; border-radius: 16px; padding: 20px; }
.cartao-escuro .mudo { color: #c9c9c5; }
.colunas { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-principal { flex: 1 1 560px; min-width: 300px; }
.col-lateral { flex: 0 1 340px; min-width: 280px; }
.pilha > * + * { margin-top: 12px; }

/* chips */
.chip { display: inline-block; font-size: 12px; font-weight: 500; border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-alerta { background: var(--alerta-bg); color: var(--alerta-fg); }
.chip-erro { background: var(--erro-bg); color: var(--erro-fg); }
.chip-neutro { background: var(--botao-claro); color: var(--texto2); }
.chip-escuro { background: var(--tinta); color: #fff; }
.pilula { display: inline-flex; gap: 6px; align-items: center; background: var(--botao-claro); border-radius: 8px; padding: 6px 10px; font-size: 14px; }

/* listas e tabelas */
.lista { border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; }
.lista-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px;
  border-top: 1px solid #efefec; min-height: 52px;
}
.lista-item:first-child { border-top: 0; }
a.lista-item { text-decoration: none; }
a.lista-item:hover { background: #fafaf8; }
.cresce { flex: 1 1 180px; min-width: 0; }
table.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 13px; font-weight: 400; color: var(--texto2); background: var(--fundo-suave); padding: 12px 16px; }
.tabela td { padding: 12px 16px; border-top: 1px solid #efefec; vertical-align: middle; }
.tabela-caixa { border: 1px solid var(--linha); border-radius: 14px; overflow-x: auto; }

/* dias da série */
.dias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dia {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 72px;
  border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px; text-decoration: none; background: #fff;
}
.dia .num { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; }
.dia .est { font-size: 12px; }
.dia.sel { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.dia.sel:hover { color: #fff; }

.barra { height: 8px; border-radius: 4px; background: var(--botao-claro); overflow: hidden; }
.barra > div { height: 8px; border-radius: 4px; background: var(--tinta); }
.barra.cheia > div { background: #a05a00; }

/* etapas do repertório */
.etapas { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.etapas li { font-size: 14px; border-radius: 8px; padding: 8px 12px; background: var(--botao-claro); color: var(--texto2); }
.etapas li.atual { background: var(--tinta); color: #fff; font-weight: 500; }
.etapas li.futura { background: #fff; border: 1px solid var(--linha-forte); }

/* itens do repertório */
.musica-item { border: 1px solid var(--linha); border-radius: 14px; padding: 16px; margin-bottom: 12px; background: #fff; }
.musica-item.atencao { border-color: #e0b565; background: #fffaf0; }
.musica-item .num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--botao-claro);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.tom-grande { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; text-align: right; }
.alerta-linha { border-radius: 10px; background: var(--alerta-bg); color: var(--alerta-fg); padding: 10px 12px; font-size: 14px; margin-top: 10px; }

/* cifra */
.cifra { border: 1px solid var(--linha); border-radius: 16px; padding: 24px; overflow-x: auto; }
.cifra-secao { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mudo); margin: 18px 0 6px; }
.cifra-secao:first-child { margin-top: 0; }
.cifra-linha { margin: 0; }
.cifra-acordes, .cifra-letra { font-family: var(--mono); font-size: 16px; white-space: pre; }
.cifra-acordes { font-weight: 700; min-height: 22px; }
.cifra-letra { color: var(--texto2); }
.cifra-vazio { height: 10px; }
.painel-tons { display: flex; flex-wrap: wrap; gap: 24px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg a, .seg button {
  min-width: 48px; min-height: 44px; border: 0; border-radius: 10px; background: #fff;
  color: var(--tinta); font-family: inherit; font-size: 16px; font-weight: 600; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
}
.seg a.ativo, .seg button.ativo { background: var(--tinta); color: #fff; }
.video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1c1c1c; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* login */
.login-pagina { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-esq { flex: 1 1 520px; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; }
.login-dir { flex: 1 1 440px; background: #f2f2f0; display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-dir form { width: 100%; max-width: 380px; }
.login-titulo { font-size: clamp(56px, 8vw, 104px); line-height: 0.92; font-weight: 600; letter-spacing: -0.05em; margin: 0; }

/* celular */
@media (max-width: 720px) {
  .topo { padding: 16px 20px; }
  .pagina { padding: 8px 20px 110px; }
  .titulo-pagina { font-size: 40px; }
  .usuario-nome { display: none; }
  .menu {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; justify-content: space-around;
    border-radius: 14px; padding: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  }
  .menu a { flex: 1 1 0; justify-content: center; padding: 8px 4px; font-size: 13px; min-height: 48px; }
  .login-esq, .login-dir { padding: 28px 20px; }
  .tabela th:nth-child(n+4), .tabela td:nth-child(n+4) { display: none; }
}

@media print {
  .topo, .menu, .seg, .btn, .painel-tons { display: none !important; }
  .pagina { padding: 0; }
}
