/* Importa fonte Poppins do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Reset e base */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fc;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Cabeçalhos */
h1, h2, h3, h4 {
  color: #2c3e50;
  font-weight: 600;
}

/* Container padrão */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background-color: #4e73df;
  color: #fff;
}

table th, table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

/* Botões */
.btn {
  padding: 10px 20px;
  border: none;
  background-color: #4e73df;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #2e59d9;
}

.btn-danger {
  background-color: #e74a3b;
}

.btn-danger:hover {
  background-color: #c0392b;
}

/* Formulários */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

/* Mensagens */
.alert {
  padding: 12px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}

.alert-error {
  background-color: #f8d7da;
  color: #842029;
}

/* Navegação lateral */
.sidebar {
  width: 240px;
  background-color: #343a40;
  min-height: 100vh;
  padding-top: 20px;
  position: fixed;
}

.sidebar a {
  display: block;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
}

.sidebar a:hover {
  background-color: #495057;
}

/* Responsivo básico */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  table thead {
    display: none;
  }

  table, table tbody, table tr, table td {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  table td {
    padding: 10px;
    text-align: right;
    position: relative;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 12px;
    top: 10px;
    text-align: left;
  }
}
