body {
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 20px;
}
.container {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
canvas {
  margin-top: 10px;
}

/* --- MOBILE RESPONSIVO --- */
@media (max-width: 768px) {
  body, html {
    padding: 0;
    margin: 0;
    width: 100vw;
    overflow-x: hidden;
  }
  #main-header {
    flex-direction: column;
    padding: 0.5rem 0;
  }
  .max-w-7xl {
    max-width: 100vw !important;
    padding: 0 !important;
  }
  .grid-cols-2, .md\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  .flex, .flex-row, .flex-col, .md\:flex-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .card, .bg-gray-800, .bg-gray-700 {
    margin-bottom: 1rem;
    border-radius: 1rem;
    width: 100% !important;
    min-width: 0;
  }
  .admin-tab, .admin-content {
    width: 100% !important;
    min-width: 0;
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
  }
  .admin-tab {
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
  }
  .admin-content {
    border-radius: 0 0 0.5rem 0.5rem;
  }
  .pagination {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.9rem;
  }
  .nav-button, .nav-button-admin {
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    padding: 10px 0;
  }
  .space-x-4, .space-x-6, .mb-6, .mb-8 {
    margin-bottom: 0.5rem !important;
    margin-right: 0 !important;
  }
  .rounded-2xl, .rounded-lg {
    border-radius: 1rem !important;
  }
  .p-8, .p-6, .p-4 {
    padding: 1rem !important;
  }
  .w-40, .w-32 {
    width: 120px !important;
  }
  .text-3xl, .text-2xl, .text-lg {
    font-size: 1.2rem !important;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 0.8rem 0.5rem;
  }
  .input-focus, input, select, textarea {
    font-size: 1rem !important;
    padding: 0.7rem !important;
  }
  .overflow-y-auto {
    max-height: 80vh;
  }
  /* Esconde menu tradicional e mostra hambúrguer */
  #main-header nav {
    display: none;
  }
  #mobile-menu-btn {
    display: block !important;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
  }
  #mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    height: 100vh;
    background: #1a202c;
    z-index: 1002;
    flex-direction: column;
    padding: 2rem 1rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  }
  #mobile-menu.active {
    display: flex;
  }
  #mobile-menu button {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    background: none;
    color: #fff;
    border: none;
    text-align: left;
    padding: 0.7rem 0;
    border-bottom: 1px solid #2d3748;
  }
}

/* Esconde botão hambúrguer no desktop */
#mobile-menu-btn {
  display: none;
}