.mod_edocman_document-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Default to 2 columns */
  gap: 20px;
}

.mod_edocman_document-list .document {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background: #efefef; /* Flat gray background */
  border-radius: 6px;
  border: 1px solid #ccc; /* Border for flat design */
  transition: background-color 0.2s ease;
}

.mod_edocman_document-list .document:hover {
  background-color: #dcdcdc; /* Slightly darker on hover */
}

.mod_edocman_document-list .document .document-icon {
  width: 25px;
  height: 25px;
  margin-right: 5px;
  padding-top:5px;
}

.mod_edocman_document-list .document .document-details {
  flex: 1;
}

.mod_edocman_document-list .document .document-details .title-container {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between title and labels */
}

.mod_edocman_document-list .document .document-details .title {
  font-size: 16px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.mod_edocman_document-list .document .document-details .title:hover {
  color: #0056b3;
}

/* Labels (Indicators) */
.mod_edocman_document-list .document .label {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  border-radius: 12px;
  white-space: nowrap; /* Prevent labels from breaking into multiple lines */
}

.mod_edocman_document-list .document .label.hot {
  background-color: #ff4d4d; /* Red for "Hot" */
}

.mod_edocman_document-list .document .label.featured {
  background-color: #ff9800; /* Orange for "Featured" */
}

.label.new {
  background-color: #4caf50; /* Green for "New" */
}

.mod_edocman_document-list .document .document-details p {
  margin: 10px 0 0;
  font-size: 14px;
  color: #666;
}

/* Responsive styles */
@media (max-width: 768px) {
  .mod_edocman_document-list {
    grid-template-columns: repeat(1, 1fr); /* 1 column on small screens */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .mod_edocman_document-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }
}

@media (min-width: 1025px) {
  .mod_edocman_document-list {
    grid-template-columns: repeat(var(--columns), 1fr); /* Dynamically adjust columns */
  }
}
