/* Estilos Gerais */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: #f3f3f3;
  color: #333;
}

* {
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

/* Container Principal */
.container {
  width: 85%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Formulários */
form {
  display: grid;
  gap: 15px;
}

input, select, button {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  max-width: 100%;
  min-height: 44px;
  width: 100%;
}

input:focus, select:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
  outline: none;
}

button {
  background: #28a745;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  min-width: 44px;
}

button:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

th {
  background: #f8f9fa;
}

tr:hover {
  background: #f1f1f1;
  transition: background 0.3s ease;
}

/* Detalhes */
details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  color: #007bff;
  font-weight: bold;
  margin-top: 30px;
}

details[open] summary {
  margin-bottom: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    width: 95%;
    margin: 15px auto;
    padding: 15px;
  }

  input, select, button {
    font-size: 14px;
    padding: 10px;
    width: 100%;
  }

  th, td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 10px;
  }

  .modal-content {
    width: 90%;
    padding: 20px;
  }

  .upload-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.5s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  animation: slideUp 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-top: 10px;
}

.modal-content button {
  margin-top: 20px;
  background: #28a745;
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button:hover {
  background: #218838;
}

/* Cartões */
.card2 {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}

.card2:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Upload */
.upload-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  height: 100%;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12);
}

.upload-btn input[type="file"] {
  position: absolute;
  opacity: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Animações */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideUp {
  from {transform: translateY(50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}


