* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fafafa;
  color: #1a1a1a;
  overflow-x: hidden;
  min-height: 100%;
}

/* ===== LOGIN SCREEN ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 48px 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-main {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.logo-main:hover {
  transform: scale(1.05);
}

.login-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.login-header p {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(90deg, #1a1a1a 15%, #666666 50%, #1a1a1a 85%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  animation: loginTextShine 2.9s linear infinite;
}

@keyframes loginTextShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.login-atalhos {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.btn-atalho {
  flex: 1;
  padding: 12px 24px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-atalho:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.btn-atalho:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-atalho-admin {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.btn-atalho-admin:hover:not(:disabled) {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.btn-atalho-participante {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #e0e0e0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.form-group input::placeholder {
  color: #9e9e9e;
}

.login-button {
  padding: 14px 24px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.login-button:hover:not(:disabled) {
  background: #333333;
}

.login-button:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.btn-link,
.btn-cadastro {
  padding: 0;
  background: transparent;
  color: #1a1a1a;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  width: auto;
  text-align: center;
  text-decoration: underline;
  display: inline-block;
}

.btn-link:hover,
.btn-cadastro:hover {
  color: #333333;
}

.btn-link:active,
.btn-cadastro:active {
  color: #1a1a1a;
}

/* ===== DASHBOARD ===== */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

.dashboard-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-header {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
}

.logo-header:hover {
  transform: scale(1.05);
}

.header-content h1 {
  font-size: 30px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions span {
  font-size: 14px;
  color: #4a4a4a;
}

.btn-logout {
  padding: 8px 16px;
  background: transparent;
  color: #4a4a4a;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: #f5f5f5;
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.dashboard-tabs {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 4px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
}

.tab-btn {
  padding: 16px 28px;
  background: transparent;
  color: #666666;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: #1a1a1a;
  background: #f8f8f8;
}

.tab-btn.active {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
  background: #fafafa;
}

.badge {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  min-width: 22px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

/* ===== PRODUTOS GRID ===== */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.produto-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.produto-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.produto-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
}

.produto-image-placeholder {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
  font-size: 14px;
}

.produto-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.produto-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.4;
  min-height: 50px;
  display: flex;
  align-items: flex-start;
}

.produto-descricao {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.produto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  min-height: 24px;
  margin-bottom: 0;
}

.produto-valor {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 18px;
}

.produto-estoque {
  color: #666;
  font-size: 12px;
}

.produto-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  justify-content: center;
  align-items: center;
}

.btn-edit,
.btn-delete,
.btn-add-cart,
.btn-view {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit {
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #1a1a1a;
}

.btn-edit:hover {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.btn-delete {
  background: #ffffff;
  color: #c62828;
  border: 1px solid #e0e0e0;
}

.btn-delete:hover {
  background: #ffebee;
  border-color: #c62828;
}

.btn-add-cart {
  background: #1a1a1a;
  color: #ffffff;
  flex: 0 0 auto;
  width: auto;
  min-width: 120px;
  margin: 0 auto;
}

.btn-add-cart:hover:not(:disabled) {
  background: #333333;
}

.btn-add-cart:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
}

.btn-view {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-view:hover {
  background: #333333;
}

/* ===== FORMULÁRIOS ===== */
.criar-produto-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 48px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.form-section h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group small {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.campo-erro {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1) !important;
}

.erro-validacao {
  display: block;
  color: #c62828;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.upload-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-preview-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  margin-top: 0;
}

.image-preview {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

.btn-remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: #c62828;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-remove-image:hover {
  background: #b71c1c;
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-upload {
  padding: 12px 24px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  align-self: flex-start;
}

.btn-upload:hover {
  background: #333333;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  min-width: 60px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 32px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #1a1a1a;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #333;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 12px 24px;
  background: transparent;
  color: #4a4a4a;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #1a1a1a;
  color: #1a1a1a;
}

/* ===== PEDIDOS ===== */
.pedidos-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pedido-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 24px;
  border: 1px solid #e8e8e8;
}

.pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.pedido-id {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: monospace;
  letter-spacing: 1px;
  padding: 8px 0 8px 0;
  border-radius: 6px;
  display: inline-block;
}

.pedido-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.pedido-status.pendente {
  background: #fff3cd;
  color: #856404;
}

.pedido-status.confirmado {
  background: #d1ecf1;
  color: #0c5460;
}

.pedido-status.entregue {
  background: #d4edda;
  color: #155724;
}

.pedido-status.cancelado {
  background: #f8d7da;
  color: #721c24;
}

.pedido-status.em-andamento {
  background: #d1ecf1;
  color: #0c5460;
}

.pedido-status.finalizado {
  background: #d4edda;
  color: #155724;
}

.pedido-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.pedido-info-item {
  font-size: 14px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  transition: all 0.2s ease;
}

.pedido-info-item:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.pedido-info-item strong {
  color: #1a1a1a;
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.pedido-info-item span {
  color: #4a4a4a;
  line-height: 1.6;
}

.pedido-itens {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

.pedido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pedido-item:last-child {
  border-bottom: none;
}

.pedido-item-info {
  flex: 1;
}

.pedido-item-nome {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.pedido-item-detalhes {
  font-size: 12px;
  color: #666;
}

.pedido-item-valor {
  font-weight: 600;
  color: #1a1a1a;
}

.pedido-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pedido-total-label {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.pedido-total-valor {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ===== CARRINHO ===== */
.carrinho-itens {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.carrinho-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  border: 1px solid #e8e8e8;
  display: flex;
  gap: 16px;
}

.carrinho-item-image {
  width: 100px;
  height: 100px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
  border-radius: 8px;
  flex-shrink: 0;
}

.carrinho-item-content {
  flex: 1;
}

.carrinho-item-nome {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.carrinho-item-valor {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.carrinho-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 4px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: #e8e8e8;
}

.quantity-input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
}

.btn-remove-item {
  height: 40px;
  padding: 0 16px;
  background: transparent;
  color: #c62828;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-remove-item:hover {
  background: #ffebee;
  border-color: #c62828;
}

.carrinho-resumo {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 24px;
  border: 1px solid #e8e8e8;
  position: sticky;
  top: 100px;
}

.carrinho-resumo h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.carrinho-resumo-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.carrinho-resumo-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.btn-finalizar {
  width: auto;
  min-width: 240px;
  padding: 12px 28px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 24px auto 0;
  display: block;
}

.btn-finalizar:hover:not(:disabled) {
  background: #333333;
}

.btn-finalizar:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #999;
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 28px;
  font-weight: 300;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #1a1a1a;
}

/* ===== SEARCH ===== */
.search-input-wrapper {
  position: relative;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dashboard-content {
    padding: 24px 16px;
  }

  .criar-produto-form {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .produtos-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-logo-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .logo-header {
    height: 40px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .carrinho-item {
    flex-direction: column;
  }

  .carrinho-item-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }

  .logo-main {
    max-width: 150px;
    margin-bottom: 16px;
  }

  .login-header h1 {
    font-size: 22px;
  }

  .login-header p {
    font-size: 20px;
  }

  .login-atalhos {
    flex-direction: column;
  }

  .dashboard-tabs {
    padding: 0 16px;
    gap: 2px;
  }

  .tab-btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  .badge {
    padding: 3px 8px;
    font-size: 10px;
    margin-left: 6px;
  }
}

