/**
 * Document Filter Styles
 */

/* Main container */
.bd-document-filter {
  margin-bottom: 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

.document-archive-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

.document-archive-description {
  margin-bottom: 30px;
  color: #666;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Search and Filter Section */
.document-search-section {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.document-search-container {
  display: flex;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex-grow: 1;
  margin-right: 10px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.search-box input {
  width: 100%;
  padding: 10px 10px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.document-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.filter-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: #fff;
}

/* Buttons */
.button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-primary {
  background-color: #0066cc;
  color: #fff;
}

.button-primary:hover {
  background-color: #004c99;
}

.button-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.button-secondary:hover {
  background-color: #d0d0d0;
}

/* Document Categories */
.document-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.document-category {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.document-category:hover {
  background-color: #e0e0e0;
}

.document-category.active {
  background-color: #0066cc;
  color: #fff;
}

/* Document List */
.document-list {
  margin-bottom: 30px;
  position: relative;
  min-height: 100px;
}

/* Updated Document Item Styles */
.document-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.document-icon {
  margin-right: 20px;
  color: #0066cc;
  flex-shrink: 0;
}

.document-content {
  flex-grow: 1;
  margin-right: 20px;
}

.document-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.document-tag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #f0f0f0;
  color: #666;
}

.document-title {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: #333;
  font-weight: 600;
}

.document-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

.document-type-label {
  font-size: 13px;
  color: #777;
  margin-top: 5px;
}

.document-file-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 20px;
  min-width: 100px;
}

.document-file-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.document-filename {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.document-actions {
  flex-shrink: 0;
}

.document-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background-color: #0066cc;
  color: #fff !important;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.document-download:hover {
  background-color: #004c99;
  color: #fff !important;
  text-decoration: none;
}

.document-download svg {
  margin-right: 5px;
}

/* No Results Message */
.no-results-message {
  padding: 30px;
  text-align: center;
  background-color: #f8f8f8;
  border-radius: 8px;
  color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .document-search-container {
    flex-direction: column;
  }

  .search-box {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .document-filters {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
    margin-bottom: 10px;
  }

  .document-item {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .document-icon {
    margin-right: 0;
    margin-bottom: 15px;
    order: 1;
  }

  .document-actions {
    margin-left: 0;
    margin-top: 15px;
    align-items: flex-start;
    width: 100%;
    order: 4;
  }

  .document-download {
    width: 100%;
    justify-content: center;
  }

  .document-content {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
    order: 2;
  }

  .document-file-info {
    width: 100%;
    align-items: flex-start;
    margin-right: 0;
    margin-bottom: 15px;
    order: 3;
  }
}
