* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #fff;
  color: #0f0741;
  min-height: 100vh;
}

#app-content {
  padding: 40px 20px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header h1 span {
  background: #ffbd59;
  border-radius: 6px;
  padding: 0 6px;
}

.page-header p {
  font-size: .95rem;
  color: #0f0741;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* ── BUSCA ── */
.search-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 12px;
}

.search-bar input {
  border: 2px solid #0f0741;
  border-radius: 10px;
  padding: 9px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  outline: none;
  flex: 1;
  min-width: 0;
}

.search-bar input:focus {
  box-shadow: 3px 3px 0 #ffbd59;
}

.search-bar button {
  padding: 9px 18px;
  border: 2px solid #0f0741;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .1s, box-shadow .1s;
}

#btn-buscar {
  background: #ffbd59;
  box-shadow: 3px 3px 0 #0f0741;
}

#btn-buscar:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0f0741;
}

#btn-buscar:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #0f0741;
}

#btn-limpar {
  background: #fff;
  display: none;
}

#btn-limpar:hover {
  background: #f5f5f5;
}

#btn-limpar.vis {
  display: block;
}

@media (max-width: 520px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }

  .search-bar input,
  .search-bar button {
    width: 100%;
  }
}

.resultado-label {
  text-align: center;
  font-size: .85rem;
  color: #888;
  margin-bottom: 24px;
  min-height: 20px;
}

/* ── CARDS ── */
#cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.card {
  border: 2px solid #0f0741;
  border-radius: 16px;
  padding: 18px;
  width: calc(25% - 12px);
  box-shadow: 4px 4px 0 #ffbd59;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ffbd59;
}

@media (max-width: 1100px) {
  .card {
    width: calc(33.333% - 11px);
  }
}

@media (max-width: 760px) {
  .card {
    width: calc(50% - 8px);
  }
}

@media (max-width: 480px) {
  .card {
    width: 100%;
  }
}

.card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffbd59;
}

.card p {
  font-size: .85rem;
  color: #333;
  margin-bottom: 5px;
}

.card a {
  display: block;
  margin-top: 14px;
  background: #ffbd59;
  color: #0f0741;
  text-align: center;
  padding: 9px;
  border-radius: 10px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
  border: 2px solid #0f0741;
  box-shadow: 2px 2px 0 #0f0741;
  transition: transform .1s, box-shadow .1s;
}

.card a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #0f0741;
}

.card a:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #0f0741;
}

.vazio {
  text-align: center;
  color: #aaa;
  font-size: .95rem;
  padding: 40px 0;
  width: 100%;
}

/* ── BOTÃO + ── */
#btn-add {
  position: fixed;
  bottom: 64px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffbd59;
  border: 2px solid #0f0741;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 #0f0741;
  transition: transform .1s, box-shadow .1s;
}

#btn-add:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0f0741;
}

#btn-add:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #0f0741;
}

/* ── OVERLAY ── */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#overlay.open {
  display: flex;
}

/* ── MODAL ── */
#modal {
  background: #fff;
  border: 2px solid #0f0741;
  border-radius: 18px;
  padding: 26px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 6px 6px 0 #ffbd59;
}

#modal h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ffbd59;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.field label {
  font-size: .78rem;
  font-weight: 700;
  color: #0f0741;
}

.field input,
.field select {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 9px 11px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  outline: none;
  background: #fff;
  color: #0f0741;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: #0f0741;
}

.field input.erro,
.field select.erro {
  border-color: #ffbd59;
  background: #fffbe6;
}

.field .msg-erro {
  display: none;
  font-size: .72rem;
  font-weight: 700;
  color: #0f0741;
  background: #ffbd59;
  padding: 3px 9px;
  border-radius: 6px;
}

.field .msg-erro.vis {
  display: block;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

.modal-footer button {
  padding: 9px 20px;
  border: 2px solid #0f0741;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 800;
}

#btn-cancelar {
  background: #fff;
  color: #0f0741;
}

#btn-cancelar:hover {
  background: #f5f5f5;
}

#btn-publicar {
  background: #ffbd59;
  color: #0f0741;
  box-shadow: 3px 3px 0 #0f0741;
  transition: transform .1s, box-shadow .1s;
}

#btn-publicar:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0f0741;
}

#btn-publicar:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #0f0741;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .field {
  flex: 1;
}

@media (max-width: 400px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ── SENTIDO ── */
.sentido-group {
  display: flex;
  gap: 8px;
}

.sentido-group input[type="radio"] {
  display: none;
}

.sentido-group label {
  flex: 1;
  text-align: center;
  padding: 9px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  text-transform: none;
  letter-spacing: normal;
  color: #0f0741;
}

.sentido-group input[type="radio"]:checked+label {
  border-color: #0f0741;
  background: #ffbd59;
  color: #0f0741;
  box-shadow: 2px 2px 0 #0f0741;
}


/* Estilo comum para modais e overlays novos */
.overlay-admin {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.overlay-admin.open {
  display: flex;
}

.modal-estilo {
  background: #fff;
  border: 2px solid #0f0741;
  border-radius: 18px;
  padding: 26px;
  width: 100%;
  max-width: 320px;
  box-shadow: 6px 6px 0 #ffbd59;
}

/* Botão de Deletar (X) no Card */
.btn-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ff4d4d;
  border: 2px solid #0f0741;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #0f0741;
  transition: transform .1s;
}

.btn-delete:hover {
  transform: scale(1.1);
  background: #ff1a1a;
}

.btn-delete:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0 #0f0741;
}

#btn-entrar {
  background: #ffbd59;
  color: #0f0741;
  box-shadow: 3px 3px 0 #0f0741;
  padding: 9px 20px;
  border: 2px solid #0f0741;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}

/* ── LOGIN SCREEN ── */
#login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fff;
  font-family: 'Nunito', sans-serif;
  padding: 20px;
}

#login-screen h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

#login-screen h1 span {
  background: #ffbd59;
  border-radius: 6px;
  padding: 0 6px;
}

#login-screen p {
  font-size: .95rem;
  color: #0f0741;
  margin-bottom: 32px;
}

#btn-google-login {
  background: #ffbd59;
  color: #0f0741;
  border: 2px solid #0f0741;
  border-radius: 10px;
  padding: 12px 28px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0 #0f0741;
  transition: transform .1s, box-shadow .1s;
}

#btn-google-login:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0f0741;
}

#btn-google-login:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #0f0741;
}

#app-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app-content > *:not(#app-footer) {
  flex-shrink: 0;
}

#app-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 2px solid #f0f0f0;
  text-align: center;
}

#app-footer p {
  font-size: .82rem;
  color: #aaa;
}

#app-footer a {
  color: #888;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}

#app-footer a:hover {
  color: #0f0741;
}

.logoOrbi{
  height: 350px;
  margin-left: 15px;
}

.logoOrbiPrin{
  height: 280px;
  margin-left: 15px;
}