:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.sticky-top {
    z-index: 1020;
}

.container {
    max-width: 1200px;
}

.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.highlighted-text {
    background-color: rgba(255, 230, 0, 0.7);
    padding: 0 0.5rem;
    border-radius: 5px;
}

.search-container {
    width: 100%;
    max-width: 500px;
    margin-top: 1rem;
}

.table-container {
    overflow-x: auto;
}

.table th, .table td {
    white-space: nowrap;
    padding: 0.5rem;
    vertical-align: middle;
}

.table th {
    position: sticky;
    top: 0;
    background-color: var(--light-color);
    z-index: 10;
    cursor: pointer;
}

.table th.sorted-asc .sort-arrow {
    transform: rotate(180deg);
}

.sort-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.topic-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.3em 0.6em;
    border-radius: 1rem;
    background-color: var(--info-color);
    color: white;
    white-space: nowrap;
}

.link-icon {
    vertical-align: middle;
    font-size: 1.25rem;
}

.footer-section {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 0.5rem 0;
    margin-top: 1rem;
    text-align: center;
}


.corner-ribbon {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background-color: #28a745;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ribbon-text {
  color: white;
  font-weight: bold;
  font-family: Arial, sans-serif;
  text-align: center;
  transform: rotate(-45deg);
  line-height: 1.2;
  font-size: 14px;
  width: 100px;
  pointer-events: none;
}


/* Hover effect */
.corner-ribbon:hover {
  background-color: #218838;
  transform: scale(1.05);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Popup Styles */
.popup {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  background-color: #fff;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

