* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f0f2f5, #dfe6e9);
  padding: 20px;
}

.container {
  max-width: 1048px;
  margin: 0 auto;
  background-color: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow-x: auto;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2d3436;
}

a.logout {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  background-color: #0984e3;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

a.logout:hover {
  background-color: #74b9ff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="date"],
input[type="password"],
input[type="submit"],
input[type="button"] {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #dcdde1;
  font-size: 16px;
}

input[type="submit"],
input[type="button"],
button {
  background-color: #0984e3;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  background-color: #74b9ff;
}

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

th {
  background-color: #0984e3;
  color: white;
  padding: 12px;
  text-align: left;
}

td {
  padding: 12px;
  border-bottom: 1px solid #dcdde1;
  color: #2d3436;
}

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

.vencido {
  color: #e74c3c;
  font-weight: bold;
}

.actions a {
  text-decoration: none;
  color: #0984e3;
  margin-right: 10px;
  font-weight: bold;
}

.actions a:hover {
  text-decoration: underline;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  td {
    padding: 10px;
    text-align: left;
    position: relative;
    padding-left: 50%;
    border-bottom: none;
    border-top: 1px solid #eee;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 10px;
    width: 45%;
    font-weight: bold;
    color: #636e72;
    white-space: nowrap;
  }

  td:last-child {
    border-bottom: none;
  }
}
