/* SmartBus - estilos globais */

/* Reset simples */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #0b3d91, #0d8ecf);
  color: #222;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-card {
  width: min(500px, 90vw);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  padding: 16px;
  text-align: center;
  animation: fadeInUp 0.7s ease-out;
}

.logo {
  margin-bottom: 1.5rem;
  max-width: 200px;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0b3d91;
}

form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

input, select {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath fill='none' stroke='%230b3d91' stroke-width='1.5' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.9rem;
  padding-right: 2rem;
}

button {
  padding: 0.85rem;
  border: none;
  border-radius: 0.6rem;
  background: #0b3d91;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 150ms ease;
  touch-action: manipulation;
}

button:hover {
  background: #06407a;
}

/* Links de suporte */
.support-links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.support-links a {
  display: flex;
  align-items: center;
  background: #f1f8ff;
  border-radius: 6px;
  padding: 8px 16px;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.2s, color 0.2s;
}

.support-links a:hover {
  background: #e0ecfa;
  color: #0056b3;
}

.support-icon {
  margin-right: 8px;
  font-size: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-icon img {
  width: 1.2em;
  height: 1.2em;
  max-width: 1.2em;
  max-height: 1.2em;
  object-fit: contain;
  display: block;
  transform: scale(1.5) translateY(0.08em);
  transform-origin: center;
}

.support-links a .support-icon {
  color: var(--primary-color);
}

.support-links a.support-whatsapp .support-icon {
  color: var(--primary-color);
}

.menu {
  margin-top: 1.5rem;
  text-align: center;
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

.menu h2 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #0b3d91;
}

.menu ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 320px;
}

.menu a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #0b3d91;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.menu a:hover {
  background: #06407a;
  transform: translateY(-1px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.data-table th {
  background: rgba(11, 61, 145, 0.08);
  color: #0b3d91;
  font-weight: 700;
}

.data-table tr:hover {
  background: rgba(11, 61, 145, 0.06);
}

.error {
  margin-top: 1rem;
  color: #b72f2f;
  font-weight: 600;
}

.success {
  margin-top: 1rem;
  color: #1a7f00;
  font-weight: 600;
}
