/* Camada visual estilo loja. Só vale na tela, para não alterar impressões. Para desfazer, remova este arquivo do index.html. */
@media screen {
  body, .min-h-screen { background-color: #eaeded !important; }

  /* Barra superior */
  .sticky.top-0.z-50 { background: #131921 !important; border: 0 !important; box-shadow: none !important; font-family: Arial, Helvetica, sans-serif; }
  .sticky.top-0.z-50 > .container { max-width: none; }
  .sticky.top-0.z-50 > .container, .sticky.top-0.z-50 > .container * { color: #fff; }
  .sticky.top-0.z-50 > .container .text-muted-foreground { color: #ccc !important; }
  .sticky.top-0.z-50 > .container > button { background: transparent; border: 1px solid transparent; border-radius: 2px; }
  .sticky.top-0.z-50 > .container > button:hover { background: transparent !important; border-color: #fff; color: #fff !important; }

  /* Busca */
  #estilo-busca, #estilo-busca-topo { display: flex; flex: 1 1 auto; max-width: 760px; height: 40px; border-radius: 6px; overflow: hidden; }
  #estilo-busca:focus-within, #estilo-busca-topo:focus-within { box-shadow: 0 0 0 3px #ff9900; }
  #estilo-busca input, #estilo-busca-topo input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font-size: 15px; background: #fff; color: #0f1111 !important; }
  #estilo-busca button, #estilo-busca-topo button { width: 46px; border: 0; background: #febd69; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  #estilo-busca button:hover, #estilo-busca-topo button:hover { background: #f3a847; }
  #estilo-busca svg, #estilo-busca-topo svg { stroke: #0f1111; }

  a.estilo-contrato { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; background: #ffd814; border: 1px solid #fcd200; border-radius: 100px; color: #0f1111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 500; text-decoration: none; }
  a.estilo-contrato:hover { background: #f7ca00; }

  /* Seletor do ano letivo */
  .estilo-ano { display: flex; flex: none; align-items: center; gap: 6px; color: #fff; font-size: 12px; }
  .estilo-ano select { height: 34px; padding: 0 6px; background: #232f3e; border: 1px solid #ff9900; border-radius: 4px; color: #fff !important; font-size: 14px; font-weight: 700; cursor: pointer; }
  .estilo-ano option { color: #fff; background: #232f3e; }
  a.estilo-acao-link { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }

  /* Faixa de atalhos */
  #estilo-atalhos, #estilo-atalhos-topo { display: flex; gap: 2px; padding: 4px 16px; background: #232f3e; overflow-x: auto; scrollbar-width: none; }
  #estilo-atalhos a, #estilo-atalhos-topo a { flex: none; padding: 5px 9px; border: 1px solid transparent; border-radius: 2px; color: #fff; font-size: 14px; text-decoration: none; cursor: pointer; }
  #estilo-atalhos a:hover, #estilo-atalhos-topo a:hover { border-color: #fff; }

  /* Barra das telas internas */
  #estilo-topo { position: sticky; top: 0; z-index: 40; font-family: Arial, Helvetica, sans-serif; }
  #estilo-topo[hidden] { display: none; }
  #estilo-topo .estilo-linha { display: flex; align-items: center; gap: 16px; padding: 8px 16px; background: #131921; }
  #estilo-topo .estilo-marca { display: flex; flex: none; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; }
  #estilo-topo .estilo-marca img { width: 36px; height: 36px; object-fit: contain; }

  /* Cartões da tela inicial */
  main.estilo-principal { display: flex; flex-direction: column; max-width: none !important; padding: 0 !important; font-family: Arial, Helvetica, sans-serif; }
  main.estilo-principal > h2, main.estilo-principal > .estilo-grade-original { display: none !important; }

  /* Banner */
  #estilo-banner { order: 1; position: relative; padding: 36px 32px 112px; background: linear-gradient(100deg, #131921 0%, #232f3e 55%, #37475a 100%); color: #fff; }
  #estilo-banner::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(to bottom, rgba(234, 237, 237, 0), #eaeded); pointer-events: none; }
  #estilo-banner > * { position: relative; z-index: 1; }
  #estilo-banner h1 { margin: 0; font-size: 32px; line-height: 38px; font-weight: 700; }
  #estilo-banner p { margin: 4px 0 18px; font-size: 15px; color: #d5dbdb; }
  .estilo-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
  .estilo-acao-principal, .estilo-acao { height: 38px; padding: 0 20px; border-radius: 100px; font-size: 14px; cursor: pointer; }
  .estilo-acao-principal { background: #ffd814; border: 1px solid #fcd200; color: #0f1111; }
  .estilo-acao-principal:hover { background: #f7ca00; }
  .estilo-acao { background: transparent; border: 1px solid #fff; color: #fff; }
  .estilo-acao:hover { background: rgba(255, 255, 255, .12); }

  /* Indicadores sobre o banner */
  main.estilo-principal > .grid:not(.estilo-grade-original) { order: 2; position: relative; z-index: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: -76px 24px 0; }
  main.estilo-principal > .grid:not(.estilo-grade-original) > .rounded-lg { background: #fff !important; border: 0 !important; border-radius: 4px; box-shadow: 0 1px 3px rgba(15, 17, 17, .18) !important; }
  main.estilo-principal > .grid:not(.estilo-grade-original) > .rounded-lg > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 18px 20px; text-align: left; }
  main.estilo-principal > .grid:not(.estilo-grade-original) svg { grid-row: span 2; width: 52px; height: 52px; margin: 0; padding: 13px; box-sizing: border-box; border-radius: 50%; background: #232f3e; color: #ff9900; }
  main.estilo-principal > .grid:not(.estilo-grade-original) > :nth-child(2) svg { background: #ff9900; color: #131921; }
  main.estilo-principal > .grid:not(.estilo-grade-original) p:first-of-type { align-self: end; font-size: 30px; line-height: 34px; color: #0f1111 !important; }
  main.estilo-principal > .grid:not(.estilo-grade-original) p:last-of-type { align-self: start; font-size: 14px; color: #565959 !important; }

  /* Vitrine de departamentos */
  #estilo-vitrine { order: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; padding: 20px 24px 40px; }
  .estilo-depto { --cor: #ff9900; --icone: #131921; --linha: var(--cor); padding-bottom: 8px; overflow: hidden; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(15, 17, 17, .18); transition: transform .25s ease, box-shadow .25s ease; animation: estilo-subir .55s cubic-bezier(.2, .7, .3, 1) backwards; }
  .estilo-depto:nth-child(2) { --cor: #ffd814; animation-delay: .08s; }
  .estilo-depto:nth-child(3) { --cor: #008296; --icone: #fff; animation-delay: .16s; }
  .estilo-depto:nth-child(4) { --cor: #c7511f; --icone: #fff; animation-delay: .24s; }
  .estilo-depto:nth-child(5) { --cor: #febd69; animation-delay: .32s; }
  .estilo-depto:nth-child(6) { --cor: #37475a; --icone: #ff9900; --linha: #ff9900; animation-delay: .4s; }
  .estilo-depto:hover { transform: translateY(-5px); box-shadow: 0 10px 22px rgba(15, 17, 17, .24); }
  .estilo-depto h2 { position: relative; margin: 0 0 6px; padding: 13px 20px 14px; background: linear-gradient(90deg, #131921, #232f3e); font-size: 18px; line-height: 24px; font-weight: 700; color: #fff; }
  .estilo-depto h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--linha); transition: width .35s ease; }
  .estilo-depto:hover h2::after { width: 100%; }
  .estilo-item { display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 0 12px; padding: 9px 8px; background: none; border: 0; border-radius: 6px; text-align: left; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
  .estilo-icone { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--cor); color: var(--icone); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s ease; }
  .estilo-icone svg { width: 20px; height: 20px; margin: 0; color: inherit; }
  .estilo-textos { display: flex; flex-direction: column; min-width: 0; }
  .estilo-textos strong { font-size: 14px; line-height: 18px; font-weight: 700; color: #0f1111; transition: color .2s ease; }
  .estilo-textos small { font-size: 12.5px; line-height: 16px; color: #565959; }
  .estilo-item:hover, .estilo-item:focus-visible { transform: translateX(5px); background: color-mix(in srgb, var(--cor) 13%, #fff); }
  .estilo-item:hover .estilo-icone, .estilo-item:focus-visible .estilo-icone { transform: scale(1.12) rotate(-6deg); box-shadow: 0 4px 10px color-mix(in srgb, var(--cor) 45%, transparent); }
  .estilo-item:hover strong, .estilo-item:focus-visible strong { color: #c7511f; }
  .estilo-item:active { transform: translateX(5px) scale(.98); }
  .estilo-oculto { display: none !important; }
  .estilo-sem-animacao .estilo-depto { animation: none; }

  /* Tela de login */
  .min-h-screen:has(#password) { padding-top: 110px; padding-bottom: 64px; background: #232f3e !important; font-family: Arial, Helvetica, sans-serif; }
  .min-h-screen:has(#password) > .rounded-lg { position: relative; max-width: 350px; background: #fff; border: 1px solid #d5d9d9; border-radius: 8px; box-shadow: none; animation: estilo-subir .45s cubic-bezier(.2, .7, .3, 1) backwards; }
  .min-h-screen:has(#password) > .rounded-lg::after { content: "Escola Lírio dos Vales · Educando para o Futuro"; position: absolute; left: 0; right: 0; bottom: -40px; color: #d5dbdb; font-size: 12px; text-align: center; }
  .min-h-screen:has(#password) > .rounded-lg > div:first-child { padding: 20px 26px 0; text-align: left; }
  .min-h-screen:has(#password) img { position: absolute; top: -98px; left: 50%; width: 80px; height: 80px; margin-left: -40px; }
  .min-h-screen:has(#password) .text-2xl { font-size: 28px; line-height: 36px; font-weight: 400; color: #0f1111; }
  .min-h-screen:has(#password) p.text-sm { margin-top: 2px; color: #565959; font-size: 13px; }
  .min-h-screen:has(#password) form { margin-top: -6px; }
  .min-h-screen:has(#password) > .rounded-lg > div:last-child { padding: 16px 26px 26px; }
  .min-h-screen:has(#password) label { font-size: 13px; font-weight: 700; color: #0f1111; }
  .min-h-screen:has(#password) input { height: 34px; background: #fff; border-color: #888c8c; border-radius: 4px; box-shadow: 0 1px 2px rgba(15, 17, 17, .15) inset; }
  .min-h-screen:has(#password) button[type="submit"] { height: 34px; font-size: 13px; }
  .min-h-screen:has(#password) button[type="button"]:hover { background: transparent !important; color: #c7511f !important; }

  /* Movimento do banner e dos indicadores */
  #estilo-banner { background-size: 220% 100%; animation: estilo-banner 14s ease-in-out infinite alternate; }
  main.estilo-principal > .grid:not(.estilo-grade-original) > .rounded-lg { transition: transform .25s ease, box-shadow .25s ease; animation: estilo-subir .5s cubic-bezier(.2, .7, .3, 1) backwards; }
  main.estilo-principal > .grid:not(.estilo-grade-original) > :nth-child(2) { animation-delay: .08s; }
  main.estilo-principal > .grid:not(.estilo-grade-original) > .rounded-lg:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(15, 17, 17, .24) !important; }
  main.estilo-principal > .grid:not(.estilo-grade-original) svg { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  main.estilo-principal > .grid:not(.estilo-grade-original) > .rounded-lg:hover svg { transform: scale(1.1) rotate(-6deg); }

  @keyframes estilo-subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes estilo-banner { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

  @media (prefers-reduced-motion: reduce) {
    #estilo-banner, .estilo-depto, main.estilo-principal > .grid > .rounded-lg, .min-h-screen:has(#password) > .rounded-lg { animation: none !important; }
    .estilo-depto, .estilo-item, .estilo-icone, main.estilo-principal svg { transition: none !important; }
  }

  @media (max-width: 1000px) {
    #estilo-vitrine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 640px) {
    #estilo-banner { padding: 24px 16px 104px; }
    #estilo-banner h1 { font-size: 26px; line-height: 32px; }
    main.estilo-principal > .grid:not(.estilo-grade-original) { gap: 10px; margin: -76px 16px 0; }
    main.estilo-principal > .grid:not(.estilo-grade-original) > .rounded-lg > div { grid-template-columns: 1fr; padding: 14px; }
    main.estilo-principal > .grid:not(.estilo-grade-original) svg { grid-row: auto; width: 40px; height: 40px; padding: 10px; margin-bottom: 6px; }
    #estilo-vitrine { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 16px 28px; }
  }

  /* Botões, links e campos */
  button.bg-primary { background: #ffd814 !important; color: #0f1111 !important; border: 1px solid #fcd200; border-radius: 100px; font-family: Arial, Helvetica, sans-serif; }
  button.bg-primary:hover { background: #f7ca00 !important; }
  button.border-input { background: #fff; color: #0f1111; border-color: #d5d9d9; border-radius: 100px; box-shadow: 0 2px 5px rgba(213, 217, 217, .5); }
  button.border-input:hover { background: #f7fafa !important; color: #0f1111 !important; }
  button.text-primary, a.text-primary { color: #007185 !important; }
  button.text-primary:hover, a.text-primary:hover { color: #c7511f !important; }
  input:focus-visible, textarea:focus-visible, button[role="combobox"]:focus { border-color: #e77600 !important; box-shadow: 0 0 3px 2px rgba(228, 121, 17, .5) !important; --tw-ring-color: transparent; }
  .rounded-lg.border.bg-card { border-color: #d5d9d9; }

  @media (max-width: 640px) {
    .sticky.top-0.z-50 > .container { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }
    #estilo-busca { order: 3; flex-basis: 100%; max-width: none; }
    #estilo-topo .estilo-linha { flex-wrap: wrap; }
    #estilo-busca-topo { flex-basis: 100%; max-width: none; }
  }
}

@media print {
  #estilo-topo, #estilo-atalhos, #estilo-busca, a.estilo-contrato { display: none !important; }
}
