/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

header {
  background-color: #446e80;
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

#settingsButton {
  position: absolute;
  right: 20px;
  top: 20px;
  background-color: #2980b9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#settingsButton:hover {
  background-color: #1a5276;
}

.main-container {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.content-container {
  display: flex;
  position: relative;
}

#filters-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #3498db;
  font-size: 1.5rem;
  display: none;
}

#searchField {
  flex: 1;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.filter-btn,
.export-btn {
  background-color: #446e80;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.2s ease-in-out;
}

.filter-btn:hover,
.export-btn:hover {
  background-color: #2980b9;
}

#sidebar {
  background-color: #ffffff;
  padding: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
  max-width: 300px;
  position: sticky;
  top: 20px;
  height: fit-content;
  display: block;
  
}

#sidebar.hidden {
  display: none;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
}

.button-group button {
  background-color: #414141;
  color: white;
  border: 1px solid white;
  padding: 10px;
  cursor: pointer;
  border-radius: 0;
  font-size: 14px;
  transition: background-color 0.2s ease-in-out;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 20px;
  box-sizing: border-box;
}

.button-group button:hover {
  background-color: #2980b9;
}

.button-group button.active {
  background-color: #2980b9;
  color: #ffffff;
}

.collapsible-container {
  margin-bottom: 10px;
}

.collapsible {
  background-color: #446e80;
  color: white;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: background-color 0.2s;
}

.collapsible:hover {
  background-color: #2980b9;
}

.collapsible-content {
  display: none;
  overflow: hidden;
  background-color: #ecf0f1;
  padding: 12px;
  border-radius: 0 0 8px 8px;
}

.collapsible-content label {
  display: block;
  margin-bottom: 8px;
}

.collapsible-content input {
  margin-right: 8px;
}

.settings-group {
  margin-bottom: 20px;
  background-color: #3f3f3f;
  padding: 10px;
  border-radius: 5px;
}

.settings-group h4 {
  margin-bottom: 10px;
  color: #ffffff;
}

.apply-settings-btn {
  background-color: #2980b9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.apply-settings-btn:hover {
  background-color: #1a5276;
}

.section-header {
  display: flex;
  justify-content: space-between;
  background-color: #446e8000;
  color: #242424;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 0px;
}

.section-header .english {
  flex: 1;
  text-align: left;
}

.section-header .french {
  flex: 1;
  text-align: center;
}

.section-header .arabic {
  flex: 1;
  text-align: right;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.grid-item {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.grid-item[dir="rtl"] {
  text-align: right;
}

.grid-item.hidden {
  display: none;
}

.header {
  background-color: #ca2802;
  color: white;
  font-weight: bold;
  text-align: center;
}

.grid-item p {
  margin: 5px 0 0 0;
}

.EN_terminology,
.FR_terminology,
.AR_terminology {
  font-weight: bold;
}

.EN_terminology_description,
.FR_terminology_description,
.AR_terminology_description {
  font-style: italic;
}

.highlight {
  background-color: var(--highlight-color, yellow);
}

footer {
  background-color: #446e80;
  color: white;
  text-align: center;
  padding: 10px;
  position: fixed;
  width: 100%;
  bottom: 0;
}

.language-headers {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.language-header {
  flex: 1;
  text-align: center;
  font-weight: bold;
  padding: 10px;
}

.language-header.highlight {
  background-color: yellow;
}

.settings-content label,
.settings-content h2 {
  color: white !important;
}


.settings-panel {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: #2f2f2f;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  overflow: auto;
  transition: right 0.3s ease;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.settings-panel.open {
  right: 0;
}

.close {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 4px;
}

.pagination button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;           /* fixed small width */
  height: 34px;          /* smaller height */
  background-color: #446e80;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, opacity 0.2s ease;
  padding: 0;            /* no extra padding */
}

.pagination button:hover:not(:disabled) {
  background-color: #2980b9;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;  /* ✅ makes arrows match button text color */
  vertical-align: middle;
  pointer-events: none;
}




canvas {
  margin: 20px auto;
}

@media (max-width: 1000px) {
  .content-container {
    flex-direction: column;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .header {
    text-align: left;
  }

    #sidebar {
    position: unset !important;
    max-width: 100%;
    margin-right: 0px;
  }
  #filters-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  input#searchField {
    width: 100%;
    min-width: 280px;
  }

  .settings-panel {
    width: 320px;
  }


}
