.pimdoc-category-title {
  margin-bottom: 16px;
}

.pimdoc-document-item {
  margin-bottom: 16px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.pimdoc-download-link {
  color: #0090e7;
  text-decoration: none;
}

.pimdoc-documents-list {
  margin-bottom: 24px;
}

.pimdoc-document-count {
  font-weight: normal;
  font-size: 0.85em;
  opacity: 0.7;
  margin-left: 8px;
}

.pimdoc-document-dates {
  font-size: 0.8em;
  color: #666;
  margin: 5px 0 10px 0;
  font-style: italic;
}

.pimdoc-created,
.pimdoc-modified {
  font-weight: normal;
}

/* Search functionality styles */
.pimdoc-search-wrapper {
  margin-bottom: 24px;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pimdoc-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pimdoc-search-input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.pimdoc-clear-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
  z-index: 1;
}

.pimdoc-clear-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.1);
}

.pimdoc-clear-icon {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  display: block;
}

.pimdoc-search-input:focus {
  outline: none;
  border-color: #0073aa;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.pimdoc-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.pimdoc-search-results-info {
  margin-top: 12px;
  font-size: 14px;
}

.pimdoc-search-count {
  color: #0073aa;
  font-weight: 500;
  margin: 0;
}

.pimdoc-no-results {
  color: #d63638;
  font-style: italic;
  margin: 0;
}

/* Layout with sidebar */
.pimdoc-layout {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.pimdoc-sidebar {
  flex: 0 0 250px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.pimdoc-sidebar-title {
  margin: 0 0 16px 0;
  font-size: 1.1em;
  font-weight: 600;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.pimdoc-category-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pimdoc-category-filter {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 10px 12px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pimdoc-category-filter:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(2px);
}

.pimdoc-category-filter.active {
  background-color: #0073aa;
  border-color: #0073aa;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.pimdoc-category-filter.active:hover {
  background-color: #005a87;
  transform: translateX(2px);
}

.pimdoc-filter-count {
  font-size: 0.85em;
  opacity: 0.8;
  font-weight: normal;
}

.pimdoc-main-content {
  flex: 1;
  min-width: 0; /* Allows flex item to shrink below content size */
}

/* Hidden/filtered state styles */
.pimdoc-document-category[style*="display: none"],
.pimdoc-document-item[style*="display: none"] {
  display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .pimdoc-layout {
    flex-direction: column;
    gap: 16px;
  }

  .pimdoc-sidebar {
    flex: none;
    position: static;
    padding: 16px;
  }

  .pimdoc-sidebar-title {
    font-size: 1em;
    margin-bottom: 12px;
  }

  .pimdoc-category-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pimdoc-category-filter {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pimdoc-category-filters {
    flex-direction: column;
    gap: 8px;
  }

  .pimdoc-category-filter {
    flex: none;
  }
}
