* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Roboto', sans-serif;
}

body {
  background-color: rgb(10.04, 10.04, 10.04);
  color: white;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

header {
  background-color: rgb(23.08, 23.08, 23.08);
  color: #30c780c0;
  padding: 24px;
  text-align: left;
  width: 100%;
}

header h1 {
  font-size: 32px;
}

header p {
  color: #A0A0A0;
  font-size: 18px;
  margin-left: 55px;
}

.statistics {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  width: 80%;
}

.stat-card {
  background-color: #1A1A1A;
  color: white;
  border-radius: 8px;
  padding: 16px;
  min-width: 150px;
  width: 350px; 
  max-width: 100%; 
  transition: border-color 0.3s ease; 
  border-top: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card:hover {
  border: 3px solid #29a169c0; 
}

.stat-card .icon {
  font-size: 32px; 
  margin-bottom: 0;
  min-width: 40px; 
  text-align: center;
  border-radius: 10px;
  background-color: #0ad67357;
}

.stat-card .icon-red {
  font-size: 32px; 
  margin-bottom: 0;
  min-width: 40px; 
  text-align: center;
  border-radius: 10px;
  background-color: #d60a0a34;
}

.stat-card .text-container {
  display: flex;
  flex-direction: column; 
  gap: 4px; /
}

.stat-card .number {
  margin: 0; 
  font-size: 20px;
  font-weight: bold;
}

.stat-card .text-container p:last-child {
  margin: 0; 
  font-size: 14px; 
  color: #cccccc; 
}

.add-document {
  width: 80%;
  background-color: #1A1A1A;
  border-radius: 8px;
  border: 2px solid #007940;
  padding: 24px;
  margin-bottom: 24px;
}

.add-document h2 {
  color: #30c780c0;
  margin-bottom: 16px;
}

.add-document .inputs-container {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

.add-document input, .add-document button {
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
}

.add-document input {
  width: 100%;
  margin-right: 0; 
  margin-bottom: 0; 
  background-color: rgb(10.04, 10.04, 10.04);  
  color: white;
}

.add-document button {
  background-color: #30c780c0;
  color: #1A1A1A;
  cursor: pointer;
  width: 100%; 
  color: whitesmoke;
}

.add-document button:hover {
  background-color: #0b693c;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  width: 80%;
}

.filter-btn {
  background-color: #1A1A1A;
  color: #00FF88;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 150px;
}

.filter-btn.active {
  background-color: #00FF88;
  color: #1A1A1A;
}

.filter-btn:hover {
  background-color: #095f35;
  border: 1px solid #08a35b;
  color: #FFF;
}

.documents-list {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.document-card {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #262626;
  position: relative;
}

.document-card .icon {
  font-size: 24px;
  color: #00FF88;
}

.document-card .info {
  text-align: center;
}

.document-card .status {
  margin: 8px 0;
  width: 10%;
  text-align: center;
  border-radius: 10px;
}

.document-card .status.green {
  background-color: #00FF88;
}

.document-card .status.red {
  background-color: #FF4C4C;
}

.document-card .status.yellow {
  background-color: #FFC107;
}

.document-card.overdue {
  border-color: #FF4C4C;
}

.document-card.to-expire {
  border-color: #FFC107;
}

/* --- NOVO: Esconde a div de ações por padrão --- */
.document-card .actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.document-card:hover .actions {
  opacity: 1;
  pointer-events: auto;
}

.document-card .actions .edit{
  background-color: transparent;
  color: white;
}

.document-card .actions .delete{
  background-color: transparent;
  color: white;
}

footer {
  margin-top: 24px;
  padding: 16px;
  background-color: #141414;
  color: #A0A0A0;
  text-align: center;
  width: 100%;
}

/* ------------ RESPONSIVIDADE PARA TABLET E MOBILE -------------- */
@media (max-width: 1000px) {
  .statistics {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 95%;
  }

  .add-document, .documents-list, .filter-bar {
    width: 95%;
  }

  .stat-card {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 20px;
  }
  header p {
    font-size: 13px;
    margin-left: 18px;
  }

  .statistics, .filter-bar, .add-document, .documents-list {
    width: 99%;
  }

  .statistics {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .stat-card {
    flex-direction: row;
    font-size: 12px;
    width: 100%;
    padding: 12px;
  }

  .add-document .inputs-container {
    flex-direction: column;
    gap: 12px;
  }

  .add-document button {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }

  .document-card {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
  }

  .document-card .icon {
    margin-bottom: 7px;
    font-size: 20px;
  }
  .document-card .info {
    text-align: left;
  }

  .filter-bar {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }

  .filter-btn {
    width: 100%;
    font-size: 15px;
    padding: 8px 0;
  }
}