body {
  background-color: #f3f4f6;
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  background: linear-gradient(90deg, #1e2a38, #27374d);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  gap: 10px;
}

.navbar h1 {
  font-size: 1.5rem;
  color: #cfa670;
  margin: 0;
}

.navbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.navbar a {
  color: #f3f4f6;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.navbar a:hover {
  color: #cfa670;
  background-color: rgba(255,255,255,0.05);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 40px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 40px;
  overflow-x: auto; /* apenas tabelas scrolláveis */
}

/* Títulos */
h2 {
  color: #1e2a38;
  margin-bottom: 20px;
  border-bottom: 2px solid #cfa670;
  padding-bottom: 8px;
}

/* Inputs e Botões */
input[type="text"], input[type="password"], input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 1rem;
}

button, .btn {
  background-color: #cfa670;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

button:hover, .btn:hover {
  background-color: #b78c52;
}

/* Alertas */
.alert-success {
  background-color: #e7f8ed;
  border-left: 4px solid #2ecc71;
  padding: 10px 15px;
  margin-bottom: 10px;
}

.alert-error {
  background-color: #fdecea;
  border-left: 4px solid #e74c3c;
  padding: 10px 15px;
  margin-bottom: 10px;
}

/* Tabelas */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th {
  background-color: #1e2a38;
  color: white;
  padding: 10px;
  text-align: left;
}

table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #666;
  margin-top: 40px;
  font-size: 14px;
}

/* Media Queries para mobile */
@media (max-width: 768px) {
  .navbar h1 {
    font-size: 1.3rem;
    flex-basis: 100%;
  }

  .navbar div {
    justify-content: flex-start;
    gap: 8px;
  }

  input[type="text"], input[type="password"], input[type="file"], button, .btn {
    font-size: 1rem;
    padding: 10px;
  }

  table th, table td {
    font-size: 0.85rem;
    padding: 8px;
  }

  .container {
    padding: 20px;
  }
}
