/* Página de Cadastro/Admin */
.admin-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 120px 50px 50px;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header {
  text-align: center;
  margin-bottom: 50px;
}

.admin-header h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #08e0ef;
  text-shadow: 0 0 20px rgba(8, 224, 239, 0.5);
  margin-bottom: 15px;
}

.admin-header .subtitle {
  font-size: 1.2rem;
  color: #a0a0a0;
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Seção do Formulário */
.form-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(8, 224, 239, 0.2);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.form-section h2 {
  font-size: 1.8rem;
  color: #08e0ef;
  margin-bottom: 25px;
  font-weight: 700;
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(8, 224, 239, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #08e0ef;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(8, 224, 239, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  flex: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #08e0ef 0%, #0a9fb8 100%);
  color: #0f0f1e;
  box-shadow: 0 4px 15px rgba(8, 224, 239, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 224, 239, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(8, 224, 239, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(8, 224, 239, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.btn-edit {
  background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 165, 2, 0.3);
}

.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 2, 0.5);
}

/* Seção de Lista de Produtos */
.products-list-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(8, 224, 239, 0.2);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.products-list-section h2 {
  font-size: 1.8rem;
  color: #08e0ef;
  margin-bottom: 25px;
  font-weight: 700;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.products-list::-webkit-scrollbar {
  width: 8px;
}

.products-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.products-list::-webkit-scrollbar-thumb {
  background: rgba(8, 224, 239, 0.3);
  border-radius: 10px;
}

.products-list::-webkit-scrollbar-thumb:hover {
  background: rgba(8, 224, 239, 0.5);
}

.product-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(8, 224, 239, 0.2);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.product-item:hover {
  border-color: rgba(8, 224, 239, 0.4);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-info-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.product-category-badge {
  padding: 4px 12px;
  background: rgba(8, 224, 239, 0.2);
  border: 1px solid rgba(8, 224, 239, 0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #08e0ef;
  text-transform: uppercase;
  font-weight: 600;
}

.product-description {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: #08e0ef;
  font-family: "Orbitron", sans-serif;
  margin-top: 5px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions button {
  padding: 8px 20px;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #a0a0a0;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

/* Mensagens de Sucesso/Erro */
.message {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  display: none;
}

.message.success {
  background: rgba(46, 213, 115, 0.2);
  border: 1px solid rgba(46, 213, 115, 0.5);
  color: #2ed573;
  display: block;
}

.message.error {
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid rgba(255, 71, 87, 0.5);
  color: #ff4757;
  display: block;
}

/* Responsividade */
@media (max-width: 1024px) {
  .admin-content {
    grid-template-columns: 1fr;
  }

  .products-list {
    max-height: 50vh;
  }
}

@media (max-width: 768px) {
  .admin-container {
    padding: 100px 20px 30px;
  }

  .admin-header h1 {
    font-size: 2rem;
  }

  .form-section,
  .products-list-section {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-actions {
    width: 100%;
  }

  .product-actions button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .admin-container {
    padding: 80px 15px 20px;
  }

  .admin-header h1 {
    font-size: 1.5rem;
  }

  .admin-header .subtitle {
    font-size: 0.9rem;
  }

  .form-section,
  .products-list-section {
    padding: 15px;
  }

  .form-section h2,
  .products-list-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .product-item {
    padding: 15px;
  }

  .product-name {
    font-size: 1.1rem;
  }

  .product-description {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .product-actions {
    flex-direction: column;
    gap: 10px;
  }

  .product-actions button {
    width: 100%;
    padding: 10px;
  }
}
