/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Cabeçalho */
header {
  background-color: #003366;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* Layout Principal */
.container {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #02457a;
  color: #fff;
  padding: 20px;
}
.sidebar nav ul {
  list-style: none;
}
.sidebar nav ul li {
  margin-bottom: 15px;
}
.sidebar nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

/* Conteúdo Principal */
.main-content {
  flex: 1;
  padding: 20px;
}
.dashboard-title {
  margin-bottom: 20px;
}

/* Botão */
.btn-add {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 15px;
  background-color: #02457a;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 250px;
}
.card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #02457a;
}
.card p {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
.chart, .table {
  background-color: #eaeaea;
  height: 250px;
  border-radius: 5px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 14px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  width: 90%;
  max-width: 500px;
  position: relative;
}
.modal-content h2 {
  margin-bottom: 15px;
  color: #02457a;
}
.modal-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.modal-content button {
  padding: 10px 15px;
  background-color: #02457a;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  cursor: pointer;
}

/* Login */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}
.login-container form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.login-container form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.login-container form button {
  width: 100%;
  padding: 10px;
  background-color: #02457a;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .card {
    flex: 1 1 100%;
  }
}
