body {
  background: #f7f7f7;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  color: #222;
}

.app-container {
  max-width: 900px;
  width: 95vw;
  margin: 32px auto;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.12);
  background: #fff;
  overflow: hidden;
}

/* Barra de título estilo janela */
header {
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
  color: white;
  text-align: left;
  padding: 1.2rem 2rem 1rem 2rem;
  font-size: 1.7rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  letter-spacing: 1px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Ícones estilo janela */
header::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f87171;
  margin-right: 8px;
  box-shadow: 20px 0 #fbbf24, 40px 0 #34d399;
}

/* Navegação */
nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f3f4f6;
  border-bottom: 2px solid #e0e7ff;
  padding: 0.5rem 0;
}

.nav-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

nav button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(37,99,235,0.04);
}

nav button span {
  font-size: 1.3em;
}

nav button.active,
nav button:hover {
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.12);
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.main-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(37,99,235,0.09);
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.main-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.main-card-content {
  padding: 2rem;
}

.main-card-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2563eb;
}

.main-card-content p {
  font-size: 1.1rem;
  color: #222;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

input, textarea, button[type="submit"] {
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  transition: border 0.2s;
}

input:focus, textarea:focus {
  border: 2px solid #2563eb;
  outline: none;
}

button[type="submit"] {
  background: #2563eb;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #1e40af;
}

.success-msg {
  color: #16a34a;
  font-weight: bold;
  margin-bottom: 0.7rem;
  background: #dcfce7;
  padding: 0.5rem;
  border-radius: 16px;
}

footer {
  background: #fff;
  text-align: center;
  font-size: 1rem;
  padding: 1.2rem;
  color: #2563eb;
  border-top: 2px solid #e0e7ff;
  margin-top: 2rem;
  border-radius: 0 0 24px 24px;
}

iframe {
  width: 100%;
  height: 150px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  margin-bottom: 0.7rem;
}

.tab-content {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
  animation: fadeIn 0.4s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Capa de entrada do site */
.site-cover {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, #2563eb 60%, #60a5fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.cover-content {
  background: rgba(255,255,255,0.95);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.18);
  padding: 3rem 2rem;
  text-align: center;
  min-width: 320px;
}

.cover-content h2 {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.cover-content p {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 2rem;
}

.drag-arrow {
  width: 120px;
  height: 48px;
  font-size: 2rem;
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,99,235,0.22);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.drag-arrow.clicked {
  background: linear-gradient(90deg, #60a5fa 60%, #2563eb 100%);
  animation: arrow-pull 0.5s;
  transform: scaleX(1.18);
  box-shadow: 0 8px 32px rgba(37,99,235,0.28);
}

.drag-arrow.slide {
  animation: arrow-slide 0.5s forwards;
}

@keyframes arrow-pull {
  0%   { background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%); }
  50%  { background: linear-gradient(90deg, #60a5fa 60%, #2563eb 100%); }
  100% { background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%); }
}

@keyframes arrow-slide {
  0%   { transform: translateX(0) scaleX(1.18); }
  80%  { transform: translateX(100px) scaleX(1.18); }
  100% { transform: translateX(120px) scaleX(1.18); opacity: 0; }
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #2563eb;
  padding: 0.5rem 1rem;
  font-size: 1.7em;
  border-radius: 50%;
  transition: background 0.2s;
}

.menu-btn:hover {
  background: #e0e7ff;
}

/* Menu lateral responsivo */
.side-menu {
  width: 320px;
  max-width: 90vw;
  padding: 2rem 1rem;
  right: -320px; /* menu fora da tela */
  display: flex;
}

.menu-item {
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  opacity: 0;
  transform: translateX(40px);
  transition: 
    background 0.2s, 
    color 0.2s, 
    opacity 0.4s cubic-bezier(.4,0,.2,1), 
    transform 0.4s cubic-bezier(.4,0,.2,1);
}

.side-menu.open .menu-item {
  opacity: 1;
  transform: translateX(0);
}

.menu-item:hover,
.menu-item.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 12px rgba(37,99,235,0.12);
}

/* Responsividade geral */
body, html {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Container principal responsivo */
.app-container {
  max-width: 900px;
  width: 95vw;
  margin: 32px auto;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.12);
  background: #fff;
  overflow: hidden;
}

/* Topbar responsiva */
.topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
}

/* Menu lateral responsivo */
.side-menu {
  width: 320px;
  max-width: 90vw;
  padding: 2rem 1rem;
  right: -320px; /* menu fora da tela */
  display: flex;
}

.menu-item {
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  opacity: 0;
  transform: translateX(40px);
  transition: 
    background 0.2s, 
    color 0.2s, 
    opacity 0.4s cubic-bezier(.4,0,.2,1), 
    transform 0.4s cubic-bezier(.4,0,.2,1);
}

/* Cards responsivos */
.card, .main-card {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.main-card img, .card-img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

/* Navegação responsiva */
nav, .main-nav {
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.nav-row {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

nav button, .tab-btn, .menu-item {
  min-width: 40px;
  min-height: 40px;
  font-size: 1.1rem;
}

/* Formulário responsivo */
input, textarea, button[type="submit"] {
  font-size: 1rem;
  padding: 0.7rem;
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Footer responsivo */
footer {
  font-size: 1rem;
  padding: 1rem;
}

/* Capa responsiva */
.site-cover .cover-content {
  min-width: 220px;
  max-width: 95vw;
  padding: 2rem 1rem;
}

/* Drag arrow responsivo */
.drag-arrow {
  width: 120px;
  height: 48px;
  font-size: 2rem;
}

/* Nova top-nav */
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  background: #fff;
  border-bottom: 2px solid #e0e7ff;
  padding: 0.7rem 0.5rem;
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  position: sticky;
  top: 0;
  z-index: 99;
}

.top-nav .tab-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #2563eb;
  padding: 0.7rem 1.2rem;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.top-nav .tab-btn.active,
.top-nav .tab-btn:hover {
  background: #2563eb;
  color: #fff;
}

/* Media queries para telas menores */
@media (max-width: 600px) {
  .app-container {
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .topbar {
    padding: 1rem 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  .side-menu {
    width: 100vw;
    max-width: 100vw;
    padding: 1.2rem 0.5rem;
  }
  .main-card img, .card-img {
    max-height: 160px;
  }
  .main-card-content, .card {
    padding: 1rem 0.5rem;
  }
  nav button, .tab-btn, .menu-item {
    min-width: 36px;
    min-height: 36px;
    font-size: 1rem;
    padding: 0.5rem;
  }
  .drag-arrow {
    width: 90px;
    height: 38px;
    font-size: 1.5rem;
  }
}