:root {
  /* UISP Color Scheme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-header: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #868e96;
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --link-color: #0066cc;
  --link-hover: #0052a3;
  --primary-blue: #0066cc;
  --primary-blue-hover: #0052a3;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --code-bg: #f8f9fa;
  --radius: 4px;
  --radius-sm: 2px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "UI Sans", "Lato", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nav-select, .search-input, button {
  font-family: "UI Sans", "Lato", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Responsive timestamp layout */
.timestamp-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.timestamp-date, .timestamp-time {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .timestamp-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    line-height: 1.3;
  }
  
  .timestamp-date {
    font-size: 0.9em;
  }
  
  .timestamp-time {
    font-size: 0.85em;
    color: var(--text-secondary);
  }
}

/* Reset any conflicting h1 styles */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
}

/* Header */
.page-header__top {
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  box-shadow: inset 0 -.0714285714rem 0 #e5e7ed;
  flex-shrink: 0;
}

.title {
  display: inline-block;
  font-size: 20px;
  color: #333543;
  line-height: 1.25;
  font-weight: 300;
}

.search-form {
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
}

/* Header Statistics */
.header-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.header-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 32px;
  overflow: visible;
}

.header-stats .stat-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1;
}

.header-stats .stat-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

/* Responsive header - handle narrow screens */
@media (max-width: 800px) {
  .page-header__top {
    flex-wrap: wrap;
  }
  
  .search-form {
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .page-header__top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  
  .search-form {
    min-width: unset;
    order: 1;
  }
  
  .header-stats {
    order: 2;
    justify-content: center;
  }
}

.page-header h1 {
  -webkit-text-size-adjust: 100%;
  font-family: "UI Sans","Lato","Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;
  box-sizing: border-box;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  max-width: calc(100% - 1.7142857143rem);
  vertical-align: top;
  margin: 0 1.7142857143rem 0 0;
  font-size: 1.4285714286rem;
  color: #333543;
  line-height: 1.25;
  font-weight: 300; /* Light weight - critical for UISP look */
}

/* Content wrapper - Scrollable Area */
.content--inner {
  flex: 1;
  overflow-y: auto;
  padding: 16px 32px;
  width: 100%;
  box-sizing: border-box;
}

/* UISP Form Controls */
.nav-select {
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  height: 32px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Style dropdown options */
.nav-select option {
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  white-space: nowrap;
}

.show-all-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  font-family: "UI Sans", sans-serif;
}

.show-all-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.nav-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.search-input {
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.875rem;
  height: 32px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Main Content */
main {
  width: 100%;
}

/* UISP-style Sections */
section {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

section.hidden {
  display: none;
}

/* Hide older releases by default for performance */
section.release-hidden {
  display: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.section-header:hover {
  background-color: #f1f3f4;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.release-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.toggle-icon {
  transition: transform 0.2s ease;
  font-size: 1rem;
  color: var(--text-secondary);
  width: 16px;
  text-align: center;
}

.section-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.section-content {
  padding: 1rem;
  background-color: var(--bg-primary);
}

.section-content.collapsed {
  display: none;
}

/* UISP-style Articles (Change Sets) */
article {
  margin-bottom: 1rem;
  padding: 0;
  background-color: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

article h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

/* Category Icon System */
.category-icon-added::before,
.category-icon-changed::before,
.category-icon-fixed::before,
.category-icon-removed::before,
.category-icon-security::before,
.category-icon-performance::before,
.category-icon-test::before,
.category-icon-chore::before,
.category-icon-docs::before,
.category-icon-other::before,
.category-icon-merged::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
}

.category-icon-added::before { content: "\f067"; } /* fa-plus */
.category-icon-changed::before { content: "\f021"; } /* fa-sync-alt */
.category-icon-fixed::before { content: "\f0ad"; } /* fa-wrench */
.category-icon-removed::before { content: "\f068"; } /* fa-minus */
.category-icon-security::before { content: "\f132"; } /* fa-shield-alt */
.category-icon-performance::before { content: "\f0e7"; } /* fa-bolt */
.category-icon-test::before { content: "\f0b2"; } /* fa-cubes */
.category-icon-chore::before { content: "\f013"; } /* fa-cog */
.category-icon-docs::before { content: "\f02d"; } /* fa-book */
.category-icon-other::before { content: "\f059"; } /* fa-question-circle */
.category-icon-merged::before { content: "\f126"; } /* fa-code-branch */

/* Section Header Icons - Plain colored icons */
.category-icon-section {
  font-size: 16px;
  margin-right: 0.5rem;
}

.category-icon-section.category-icon-added {
  color: #28a745;
}

.category-icon-section.category-icon-changed {
  color: #17a2b8;
}

.category-icon-section.category-icon-fixed {
  color: #ffc107;
}

.category-icon-section.category-icon-removed {
  color: #dc3545;
}

.category-icon-section.category-icon-security {
  color: #6f42c1;
}

.category-icon-section.category-icon-performance {
  color: #fd7e14;
}

.category-icon-section.category-icon-test {
  color: #20c997;
}

.category-icon-section.category-icon-chore {
  color: #6c757d;
}

.category-icon-section.category-icon-docs {
  color: #0dcaf0;
}

.category-icon-section.category-icon-other {
  color: #6f42c1;
}

.category-icon-section.category-icon-merged {
  color: #495057;
}

/* Unified Changelog Grid Styles */
.changelog-grid-wrapper {
  overflow-x: auto;
  margin: 0;
  border-radius: var(--radius);
}

.changelog-grid {
  display: grid;
  grid-template-columns: 32px max-content 1fr max-content max-content max-content;
  gap: 0;
  min-width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-primary);
}

/* Grid Headers */
.grid-header {
  padding: 12px 8px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.grid-header:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.grid-header.grid-category {
  text-align: center;
}

/* Grid Cells */
.grid-cell {
  padding: 8px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  min-height: 48px;
}

.grid-cell:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.grid-cell.grid-category {
  justify-content: center;
  position: relative;
}

.grid-cell.grid-category .category-icon-table {
  font-size: 1rem;
  cursor: help;
}

.grid-cell.grid-message {
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Remove bottom border from last row */
.changelog-grid > .grid-cell:nth-child(6n) {
  border-bottom: none;
}
.changelog-grid > .grid-cell:nth-child(6n-1) {
  border-bottom: none;
}
.changelog-grid > .grid-cell:nth-child(6n-2) {
  border-bottom: none;
}
.changelog-grid > .grid-cell:nth-child(6n-3) {
  border-bottom: none;
}
.changelog-grid > .grid-cell:nth-child(6n-4) {
  border-bottom: none;
}
.changelog-grid > .grid-cell:nth-child(6n-5) {
  border-bottom: none;
}

/* Category Icon Colors in Unified Table */
.category-icon-table.category-icon-added {
  color: #28a745;
}

.category-icon-table.category-icon-changed {
  color: #17a2b8;
}

.category-icon-table.category-icon-fixed {
  color: #ffc107;
}

.category-icon-table.category-icon-removed {
  color: #dc3545;
}

.category-icon-table.category-icon-security {
  color: #6f42c1;
}

.category-icon-table.category-icon-performance {
  color: #fd7e14;
}

.category-icon-table.category-icon-test {
  color: #20c997;
}

.category-icon-table.category-icon-chore {
  color: #6c757d;
}

.category-icon-table.category-icon-docs {
  color: #0dcaf0;
}

.category-icon-table.category-icon-other {
  color: #6f42c1;
}

.category-icon-table.category-icon-merged {
  color: #495057;
}

/* Row styling based on category - Grid version */
.grid-cell.grid-category[data-category="added"] {
  border-left: 3px solid #28a745;
}

.grid-cell.grid-category[data-category="changed"] {
  border-left: 3px solid #17a2b8;
}

.grid-cell.grid-category[data-category="fixed"] {
  border-left: 3px solid #ffc107;
}

.grid-cell.grid-category[data-category="removed"] {
  border-left: 3px solid #dc3545;
}

.grid-cell.grid-category[data-category="security"] {
  border-left: 3px solid #6f42c1;
}

.grid-cell.grid-category[data-category="performance"] {
  border-left: 3px solid #fd7e14;
}

.grid-cell.grid-category[data-category="test"] {
  border-left: 3px solid #20c997;
}

.grid-cell.grid-category[data-category="chore"] {
  border-left: 3px solid #6c757d;
}

.grid-cell.grid-category[data-category="docs"] {
  border-left: 3px solid #0dcaf0;
}

.grid-cell.grid-category[data-category="other"] {
  border-left: 3px solid #6f42c1;
}

.grid-cell.grid-category[data-category="merged"] {
  border-left: 3px solid #495057;
}

/* UISP appTable Styling */
.table-wrapper {
  overflow-x: auto;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Lato", sans-serif;
  font-size: 0.875rem;
  margin: 0;
  background-color: var(--bg-primary);
  table-layout: fixed;
}

/* Standardized column widths */
th:nth-child(1), td:nth-child(1) { width: 10%; } /* Commit hash */
th:nth-child(2), td:nth-child(2) { width: 40%; } /* Message */
th:nth-child(3), td:nth-child(3) { width: 15%; } /* Date */
th:nth-child(4), td:nth-child(4) { width: 20%; } /* Author */
th:nth-child(5), td:nth-child(5) { width: 15%; } /* Files */

/* UISP appTable header */
thead {
  background-color: var(--bg-secondary);
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* UISP appTable body */
tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.1s ease;
}

tbody tr:hover {
  background-color: #f8f9fa;
}

tbody tr:last-child {
  border-bottom: none;
}

td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Responsive table behavior */
@media (max-width: 768px) {
  .author-column,
  .files-column {
    display: none;
  }
  
  /* Adjust column widths for mobile when author and files are hidden */
  th:nth-child(1), td:nth-child(1) { width: 15%; } /* Commit hash */
  th:nth-child(2), td:nth-child(2) { width: 60%; } /* Message */
  th:nth-child(3), td:nth-child(3) { width: 25%; } /* Date */
  
  th, td {
    padding: 0.5rem 0.75rem;
  }
}

/* UISP Link Styling */
.commit-hash {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.8125rem;
  padding: 0.125rem 0.25rem;
  background-color: var(--code-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.commit-hash:hover {
  color: var(--link-hover);
  border-color: var(--link-color);
  text-decoration: none;
}

/* UISP Code/Message Styling */
pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.8125rem;
  background-color: var(--code-bg);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  line-height: 1.4;
}

/* File Count Badge */
.file-count {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-left,
  .header-right {
    flex: 100%;
  }

  table {
    font-size: 0.8rem;
  }

  th,
  td {
    padding: 0.5rem;
  }

  .author-column,
  .files-column {
    display: none;
  }
}

/* Highlight for search results */
.highlight {
  background-color: yellow;
  color: black;
  padding: 0 2px;
}


/* UISP Statistics Section */
.stats {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1;
  font-family: "UI Sans", sans-serif;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.25rem;
  font-weight: 500;
}

.stat-value {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Search form styling */
.search-form {
  display: flex;
  margin: 0;
}

/* Search Results View */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-result-item {
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.search-result-item:hover {
  background-color: var(--bg-secondary);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.result-version {
  padding: 0.125rem 0.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.result-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
}

.result-message {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.result-author {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.no-results p {
  margin: 0;
  font-size: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.empty-hint {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
}

/* UISP Release Summary */
.release-summary {
  background-color: var(--code-bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-blue);
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid var(--border-light);
  border-left-color: var(--primary-blue);
  border-left-width: 3px;
}

/* Enhanced Date Display */
.commit-date {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.date-absolute {
  font-weight: 600;
}

.date-relative {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Author Info with Avatars */
.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.author-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.author-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.author-name {
  color: var(--text-primary);
  font-weight: 500;
}


/* Pagination Message */
.pagination-message {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-top: 2rem;
  color: var(--text-secondary);
}

.pagination-message p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pagination-message p:first-child {
  font-size: 1rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .stats {
    gap: 1rem;
    padding: 1rem;
  }

  .stat-item {
    min-width: 80px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .category-filters {
    padding: 0.75rem;
  }

  .filter-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .release-summary {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .author-info {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .commit-date {
    gap: 0.1rem;
  }

  .date-relative {
    font-size: 0.75rem;
  }
}

/* Message hover functionality */
.message-cell {
  position: relative;
}

.message-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.message-content {
  flex: 1;
  min-width: 0; /* Allow content to shrink */
}

.message-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Control ordering in message controls */
.message-expand-icon {
  order: 5; /* Ellipsis appears first */
}


.message-subject {
  display: inline;
}

.message-expand-icon {
  color: var(--link-color);
  cursor: help;
  margin-left: 0.25rem;
  font-weight: bold;
}

.message-full {
  display: none;
  position: fixed;
  z-index: 10000;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 400px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: visible;
}

.message-wrapper:hover .message-full {
  display: block;
}

.message-full pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.85rem;
}

/* Duplicate commit controls */
.duplicate-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  order: 10; /* Always appear last (rightmost) in message controls */
}

.duplicate-count-pill {
  background: var(--primary-blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.duplicate-controls:hover .duplicate-count-pill {
  background: var(--primary-blue-hover);
}

.duplicate-toggle-arrow {
  display: inline-block;
  color: var(--link-color);
  font-size: 0.75rem;
  transition: color 0.2s ease, transform 0.2s ease;
  font-weight: bold;
  position: relative;
  top: -1px;
}

.duplicate-controls:hover .duplicate-toggle-arrow {
  color: var(--link-hover);
  transform: scale(1.1);
}

.duplicate-toggle-arrow.collapsed {
  color: var(--text-secondary);
}

.duplicate-controls:hover .duplicate-toggle-arrow.collapsed {
  color: var(--link-color);
}

/* Hidden duplicate rows */
.duplicate-hidden {
  display: none !important;
}

/* Files hover functionality */
.files-wrapper {
  position: relative;
  cursor: help;
}

.file-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.files-list {
  display: none;
  position: fixed;
  z-index: 10000;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: visible;
}

.files-wrapper:hover .files-list {
  display: block;
}

.files-list-header {
  font-weight: bold;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.files-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.files-list li {
  padding: 0.15rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.files-list li:hover {
  color: var(--text-primary);
}

/* Prevent overflow in sections */
.section-content {
  position: relative;
  overflow: visible;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
}
