.footer-ref {
  margin-top: 2px;
  font-size: 0.97em;
  color: #b0b8c9;
}
.footer-ref a {
  color: #b0b8c9;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-ref a:hover {
  color: #1976d2;
  text-decoration: underline;
}
/* Header wrapper for title, subtitle, and logo */
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.header-titles {
  flex: 1 1 auto;
  min-width: 0;
}

.asw-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 80%;
  box-shadow: 0 2px 2px rgba(25, 118, 210, 0.1);
  border: 1px solid #e3e8ee;
  padding: 3px;
  margin-left: 16px;
}
@media (max-width: 900px) {
  .header-wrapper {
    gap: 10px;
  }
  .asw-logo {
    width: 33px;
    height: 33px;
    padding: 2px;
  }
}
.search-wrapper .material-icons {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #1976d2;
  font-size: 1.2em;
  pointer-events: none;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f9f9f9;
  font-family: "Roboto", Arial, sans-serif;
  color: #222;
}

/* ===== Embedded Google Doc viewer bar (redir.html) ===== */
.doc-view-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f6f8fa;
  border-bottom: 1px solid #e3e8ee;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.doc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1976d2;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(25, 118, 210, 0.15);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.doc-back-btn:hover {
  background: #d9ecfb;
  transform: translateY(-1px);
}
.doc-back-btn:focus-visible {
  outline: 2px solid #90caf9;
  outline-offset: 2px;
}
.doc-title-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  pointer-events: none;
}
.doc-title-chip {
  max-width: 60vw;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 4px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #2f363d;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.doc-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
  flex: 0 0 auto;
}
.doc-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .doc-view-bar {
    padding: 8px 10px;
  }
  .doc-title-chip {
    max-width: 70vw;
    font-size: 0.9rem;
  }
}

/* ===== Publicatii: listă verticală ===== */
.publications-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.publication-card.vertical {
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.3s ease;
  transform: scale(1);
}
.publication-card.vertical.expanded {
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
  border-color: #1976d2;
  transform: scale(1.002);
}
.publication-card.vertical:hover:not(.expanded) {
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.08);
  border-color: #90caf9;
}
.publication-header.vertical-header {
  background: linear-gradient(135deg, #fafbfc 0%, #f6f8fa 100%);
  border-bottom: 1px solid #e3e8ee;
  border-left: 4px solid #1976d2;
  color: #24292f;
  padding: 18px 22px; /* mai gros */
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}
.publication-header.vertical-header {
  position: relative;
  flex-wrap: wrap;
}
.publication-summary-snippet {
  flex-basis: 100%;
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.25;
  background: #f8f9fa;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: default;
}
.publication-summary-snippet .snippet-loading {
  opacity: 0.8;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.02) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.publication-summary-snippet .snippet-list {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
  display: grid;
  gap: 2px;
}
.publication-summary-snippet .snippet-list li {
  margin: 0;
  padding: 0;
}
.publication-summary-snippet .snippet-wrapper {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: stretch;
}
.publication-summary-snippet .snippet-header-line {
  flex-basis: 100%;
  display: flex;
  align-items: center;
}
.publication-summary-snippet .snippet-actions {
  flex-basis: 100%;
  margin-top: 6px;
}
.publication-summary-snippet .snippet-wrapper.two-col {
  gap: 18px;
}
.publication-summary-snippet .snippet-wrapper.two-col .snippet-side {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.publication-summary-snippet .snippet-wrapper.two-col .snippet-list {
  flex: 1 1 auto;
  margin-top: 2px;
}
.publication-summary-snippet .snippet-wrapper.two-col .snippet-label {
  text-align: left;
}
@media (max-width: 700px) {
  .publication-summary-snippet .snippet-wrapper.two-col {
    flex-direction: column;
  }
  .publication-summary-snippet .snippet-wrapper.two-col .snippet-side {
    flex: 0 0 auto;
  }
}
.publication-summary-snippet .snippet-label {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #1976d2;
  color: #ffffff;
  border: 1px solid #1565c0;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(25, 118, 210, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.publication-summary-snippet .snippet-full-btn {
  background: #1976d2;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #ffffff;
  border: 1px solid #1565c0;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25px;
  cursor: pointer;
  text-transform: none;
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s, color 0.18s;
  position: relative;
}
.publication-summary-snippet .snippet-full-btn:hover {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}
.publication-summary-snippet .snippet-full-btn:active {
  transform: translateY(0);
  background: #0d47a1;
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
}
.publication-summary-snippet .snippet-full-btn:focus-visible {
  outline: 2px solid #ffeb3b;
  outline-offset: 2px;
}
.files-modified-chip {
  background: #1976d2;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #1565c0;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
  transition: all 0.2s ease;
}
.files-modified-chip:hover {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(25, 118, 210, 0.4);
}

/* Modal markdown */
#markdownModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  z-index: 9999;
  padding: 40px 18px;
  overflow: auto;
  animation: fadeIn 0.3s ease;
}
#markdownModalOverlay .md-modal {
  max-width: 950px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(25, 118, 210, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
#markdownModalOverlay .md-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #1976d2, #1565c0, #0d47a1);
  color: #fff;
  position: relative;
}
#markdownModalOverlay .md-modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #64b5f6, #42a5f5, #2196f3, #1976d2);
}
#markdownModalOverlay .md-modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
#markdownModalOverlay .md-modal-header h2::before {
  content: "📄";
  font-size: 1.1em;
}
#markdownModalOverlay .md-modal-actions {
  display: flex;
  gap: 8px;
}
#markdownModalOverlay .md-modal-actions button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  font-weight: 500;
}
#markdownModalOverlay .md-modal-actions button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#markdownModalOverlay .md-modal-body {
  padding: 28px 32px 40px 32px;
  max-height: 70vh;
  overflow: auto;
  line-height: 1.6;
  font-size: 0.95rem;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(25, 118, 210, 0.3) transparent;
}
#markdownModalOverlay .md-modal-body::-webkit-scrollbar {
  width: 6px;
}
#markdownModalOverlay .md-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
#markdownModalOverlay .md-modal-body::-webkit-scrollbar-thumb {
  background: rgba(25, 118, 210, 0.3);
  border-radius: 3px;
  transition: background 0.2s ease;
}
#markdownModalOverlay .md-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(25, 118, 210, 0.5);
}
#markdownModalOverlay .md-modal-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 118, 210, 0.1), transparent);
}
#markdownModalOverlay .md-modal-body .md-content h1,
#markdownModalOverlay .md-modal-body .md-content h2,
#markdownModalOverlay .md-modal-body .md-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  color: #1976d2;
  line-height: 1.3;
  font-weight: 600;
  position: relative;
  padding-left: 16px;
}
#markdownModalOverlay .md-modal-body .md-content h1::before,
#markdownModalOverlay .md-modal-body .md-content h2::before,
#markdownModalOverlay .md-modal-body .md-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, #1976d2, #64b5f6);
  border-radius: 2px;
}
#markdownModalOverlay .md-modal-body .md-content ul {
  margin: 0 0 1.2em 1.5em;
  padding: 0;
  background: rgba(25, 118, 210, 0.02);
  border-left: 3px solid rgba(25, 118, 210, 0.2);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}
#markdownModalOverlay .md-modal-body .md-content li {
  margin: 0 0 0.6em 0;
  position: relative;
  padding-left: 8px;
}
#markdownModalOverlay .md-modal-body .md-content li::marker {
  color: #1976d2;
}
#markdownModalOverlay .md-modal-body .md-content p {
  margin: 0.8em 0;
  text-align: justify;
}
#markdownModalOverlay .md-modal-body .md-code {
  background: linear-gradient(135deg, #0d1117, #161b22);
  color: #e6edf3;
  padding: 20px 24px;
  border-radius: 12px;
  overflow: auto;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}
#markdownModalOverlay .md-modal-body .md-code::before {
  content: "Code";
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 0.7rem;
  color: rgba(230, 237, 243, 0.5);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
#markdownModalOverlay .md-modal-body code {
  background: linear-gradient(135deg, #e0f2f1, #f1f8e9);
  color: #00695c;
  padding: 3px 6px;
  border-radius: 6px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(0, 105, 92, 0.1);
}
#markdownModalOverlay .md-loading {
  font-style: italic;
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  background: linear-gradient(45deg, rgba(25, 118, 210, 0.05), rgba(33, 150, 243, 0.05));
  border-radius: 12px;
  border: 1px dashed rgba(25, 118, 210, 0.2);
}
#markdownModalOverlay .md-loading::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid rgba(25, 118, 210, 0.3);
  border-top-color: #1976d2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
#markdownModalOverlay .md-error {
  color: #d32f2f;
  font-weight: 500;
  text-align: center;
  padding: 40px 20px;
  background: rgba(211, 47, 47, 0.05);
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: 12px;
}
@media (max-width: 600px) {
  #markdownModalOverlay {
    padding: 18px 6px;
  }
  #markdownModalOverlay .md-modal {
    border-radius: 16px;
  }
  #markdownModalOverlay .md-modal-header {
    padding: 16px 20px;
  }
  #markdownModalOverlay .md-modal-header h2 {
    font-size: 1.1rem;
  }
  #markdownModalOverlay .md-modal-body {
    padding: 20px 20px 32px 20px;
    max-height: 75vh;
  }
  #markdownModalOverlay .md-modal-body::before {
    left: 20px;
    right: 20px;
  }
  #markdownModalOverlay .md-modal-body .md-content ul {
    margin-left: 1em;
    padding: 12px 16px;
  }
}
.publication-summary-snippet code {
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 4px;
  border-radius: 4px;
  font-family: Consolas, monospace;
}
.publication-summary-snippet strong {
  font-weight: 700;
}
.publication-summary-snippet em {
  font-style: italic;
}
.publication-header.vertical-header:focus {
  outline: 2px solid #90caf9;
  outline-offset: 2px;
}
.publication-header.vertical-header .left-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.publication-header.vertical-header .left-meta .material-icons {
  font-size: 1.2rem;
}
.publication-header.vertical-header .publication-version {
  font-size: 1.05rem;
}
.publication-header.vertical-header .publication-type {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.publication-header.vertical-header .publication-type.critical {
  background: linear-gradient(135deg, #d32f2f, #c62828);
  border-color: rgba(255, 255, 255, 0.4);
  animation: pulse-critical 2s infinite;
}

@keyframes pulse-critical {
  0%,
  100% {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 0 6px rgba(211, 47, 47, 0);
  }
}
.publication-header.vertical-header .right-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.publication-header.vertical-header .right-meta .material-icons {
  font-size: 1rem;
}
.publication-header .expand-btn {
  background: #424242;
  border: 1px solid #616161;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.publication-header .expand-btn:hover {
  background: #616161;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.publication-body {
  padding: 16px 18px 20px 18px;
  background: #fff;
}
.publication-body .files-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}
.search-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.search-wrapper {
  position: relative;
  width: 100%;
}

/* Footer styles */
.footer {
  background: #fff;
  border-top: 1px solid #e3e8ee;
  margin-top: 40px;
  padding: 24px 0 12px 0;
  font-size: 1rem;
  color: #444;
  box-shadow: 0 -2px 8px rgba(25, 118, 210, 0.04);
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-company {
  font-weight: 500;
  margin-bottom: 2px;
}
.footer-links {
  margin-bottom: 2px;
}
.footer-links a {
  color: #1976d2;
  text-decoration: none;
  margin: 0 2px;
  transition: text-decoration 0.2s;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-copyright {
  font-size: 0.95em;
  color: #888;
}
@media (max-width: 600px) {
  .footer-content {
    padding: 0 10px;
    font-size: 0.98em;
  }
  .footer {
    padding: 18px 0 8px 0;
    font-size: 0.98em;
  }
}
.search-bar {
  width: 100%;
  padding: 8px 8px 8px 36px;
  border-radius: 6px;
  border: 1px solid #b6d4fa;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
}
/* === Tag filters (compact) === */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px; /* tighter horizontal + vertical spacing */
  margin: 6px 0 12px 0;
  padding: 0;
}
.tag-filter {
  background: #e3e8ee;
  color: #1976d2;
  font-size: 0.78rem; /* smaller text */
  line-height: 1.25;
  border-radius: 12px;
  padding: 2px 10px; /* reduced padding */
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  outline: none;
  margin: 0; /* rely on container gap */
  display: inline-flex;
  align-items: center;
}
.tag-filter:focus-visible {
  box-shadow: 0 0 0 2px #90caf9;
}
.tag-filter.active,
.tag-filter:active {
  background: #1976d2;
  color: #fff;
}
.container {
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 24px 12px 12px 12px;
}
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1976d2;
  letter-spacing: -1px;
}
.subtitle {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  padding: 14px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.25s ease;
  border: 1px solid #e3e8ee;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1976d2, transparent);
  transition: left 0.5s ease;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.15);
  border-color: #1976d2;
  transform: translateY(-2px);
}
.card:hover::before {
  left: 100%;
}
.icon {
  font-size: 1.7rem;
  color: #1976d2;
  margin-bottom: 6px;
}
.link-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #444;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  word-break: break-all;
}
.desc {
  color: #444;
  font-size: 0.93rem;
  margin-bottom: 8px;
}
.tags {
  display: flex;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tag {
  background: #e0f0ff;
  color: #1976d2;
  font-size: 0.85em;
  border-radius: 12px;
  padding: 2px 10px;
  letter-spacing: 0.02em;
  border: none;
  display: inline-block;
}
.open-link {
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.97rem;
  font-weight: 500;
  color: #fff;
  background: #1976d2;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: background 0.18s;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
  cursor: pointer;
}
.open-link:hover {
  background: #1565c0;
}
/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #e3e8ee;
  overflow-x: auto;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: max-content;
}

.tab-button:hover {
  color: #1976d2;
  background: rgba(25, 118, 210, 0.05);
}

.tab-button.active {
  color: #1976d2;
  border-bottom-color: #1976d2;
  background: rgba(25, 118, 210, 0.08);
}

.tab-button .material-icons {
  font-size: 1.2rem;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Publication Cards */
.publication-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3e8ee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}

.publication-card:hover {
  border-color: #1976d2;
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.15);
  transform: translateY(-1px);
}

.publication-header {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.publication-version {
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.publication-date {
  font-size: 0.95rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.publication-type {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.publication-body {
  padding: 20px;
}

.files-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #444;
}

.files-count {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.files-list {
  display: grid;
  gap: 8px;
}

.file-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: #e3f2fd;
  border-color: #1976d2;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  word-break: break-all;
}

.file-path {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.file-message {
  font-size: 0.9rem;
  color: #555;
  margin-top: 6px;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: break-word;
}

.no-files {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 20px;
}

/* Loading and Error States */
.loading-state,
.error-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.error-state {
  color: #d32f2f;
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid #e3e8ee;
  border-top: 2px solid #1976d2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e3e8ee;
  padding: 14px 12px;
  margin-bottom: 16px;
}

.skeleton-line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

.skeleton-line.long {
  width: 100%;
}

/* Search Results Styles */
.search-results {
  margin-bottom: 20px;
}

.search-results-header {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.files-search-list {
  border: 1px solid #e3e8ee;
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.file-search-item {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.file-search-item:last-child {
  border-bottom: none;
}

.file-search-item:hover {
  background: #f8f9fa;
  border-left: 4px solid #1976d2;
  padding-left: 16px;
}

.file-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}

.file-search-header .file-name {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.publication-info {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.file-details {
  margin-left: 0;
}

.file-details .file-path {
  margin-bottom: 8px;
}

.file-details .file-message {
  margin-top: 0;
}

/* Responsive pentru search results */
@media (max-width: 900px) {
  .file-search-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .publication-info {
    align-self: flex-end;
  }
}

@media (max-width: 600px) {
  .search-results-header {
    padding: 10px 16px;
    font-size: 1rem;
  }

  .file-search-item {
    padding: 12px 16px;
  }

  .file-search-item:hover {
    padding-left: 12px;
  }

  .file-search-header .file-name {
    font-size: 1rem;
  }
}

/* Responsive Design for Publications */
@media (max-width: 900px) {
  .tab-button {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .publication-header {
    padding: 14px 16px;
  }

  .publication-version {
    font-size: 1.2rem;
  }

  .publication-body {
    padding: 16px;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .tab-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .tab-button .material-icons {
    font-size: 1.1rem;
  }

  .publication-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.open-link.copy-link {
  border: none;
  background: #43a047;
  border-radius: 6px;
  padding: 5px 10px;
}
@media (max-width: 900px) {
  .container {
    padding: 8px 1vw;
  }
  .directory {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
@media (max-width: 600px) {
  .container {
    padding: 6px 1vw;
  }
  .directory {
    grid-template-columns: 1fr;
  }
}
