@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #f1f1f1;
  margin: 0;
  padding: 20px;
}

.popup {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4d4d;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

h1, h3 {
  color: #00bfa6;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  background-color: #252525;
  color: #ffffff;
}

td {
  color: #e0e0e0;
}

.filtros select, input, button, select {
  background-color: #2b2b2b;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 0;
  margin: 5px 0;
  border-radius: 6px;
}

button {
  cursor: pointer;
  background-color: #00bfa6;
  border: none;
  padding: 10px 15px;
  font-weight: bold;
  transition: background 0.3s;
}

button:hover {
  background-color: #009b86;
}

.resumo {
  margin-top: 20px;
  font-weight: bold;
  background-color: #1e1e1e;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.resumo div {
  margin: 5px 10px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.grid > div {
  flex: 1;
  min-width: 280px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #1f1f1f;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #333;
  width: 90%;
  max-width: 350px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 0 10px #000;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

input, select {
  width: 100%;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .grid {
    flex-direction: column;
  }

  .modal-content {
    margin: 20% auto;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .grid {
    flex-direction: column;
  }

  .modal-content {
    margin: 20% auto;
  }

  .filtros select,
  .filtros input,
  .filtros button {
    margin: 8px 0;
    font-size: 16px;
  }

  thead {
    display: none;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 12px;
    white-space: nowrap;
    font-weight: bold;
  }
}

td {
  word-break: break-word;
}

/* Melhorias para responsividade adicional */

@media (max-width: 768px) {
  h1, h3 {
    font-size: 1.5em;
    text-align: center;
  }

  .resumo {
    flex-direction: column;
    align-items: center;
  }

  .resumo div {
    width: 100%;
    text-align: center;
  }

  button {
    width: 100%;
    font-size: 16px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .filtros {
    display: flex;
  }

  .filtros select,
  .filtros input,
  .filtros button {
    width: 100%;
    margin: 6px 0;
  }
}

.red-button{
  background-color: red;
  width: fit-content;
}

@media (max-width: 600px) {
  .resumo {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .resumo div {
    flex: 1 1 45%;
    text-align: left;
  }
}

/* Destaque visual para transações concluídas */
tr:has(input[type="checkbox"][disabled]) td {
  color: #999;
  text-decoration: line-through;
  background-color: #1b1b1b;
}
