@charset "UTF-8";
.nav-component .topnav {
  overflow: hidden;
  background-color: #333;
  margin-bottom: 10px;
}

.nav-component .topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.nav-component .topnav a:hover {
  background-color: #ddd;
  color: black;
}

.nav-component .topnav .icon {
  display: none;
  cursor: pointer;
}

.nav-component .topnav.responsive {
  position: relative;
  display: flex;
  flex-direction: column;
}

.nav-component .topnav.responsive .icon {
  position: absolute;
  right: 0;
  top: 0;
}

.nav-component .topnav.responsive a {
  float: none;
  display: block;
  text-align: left;
  width: 100%;
}

@media screen and (max-width: 600px) {
  .nav-component .topnav {
    position: relative;
  }
  .nav-component .topnav a:not(:first-child) {
    display: none;
  }
  .nav-component .topnav a.icon {
    float: right;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }
  .nav-component .topnav.responsive {
    display: flex;
    flex-direction: column;
  }
  .nav-component .topnav.responsive a {
    display: block;
    width: 100%;
    text-align: left;
  }
  .nav-component .topnav.responsive a.icon {
    position: absolute;
  }
}
.nav-component .current {
  background-color: green;
}

@media screen and (max-width: 600px) {
  .nav-component .topnav a:not(:first-child) {
    display: none;
  }
  .nav-component .topnav a.icon {
    float: right;
    display: block;
  }
}
.gallery-page.loading {
  visibility: hidden;
}

.gallery-page .image-gallery {
  display: none;
}

.gallery-page .gallery-search-container {
  display: flex;
  justify-content: center;
  padding: 20px 20px 0;
}

.gallery-page .gallery-search-container .gallery-search {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 20px;
  outline: none;
  transition: border-color 0.2s ease;
}

.gallery-page .gallery-search-container .gallery-search:focus {
  border-color: #007bff;
}

.gallery-page .image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

.gallery-page .image-gallery .gallery-item {
  position: relative;
  transition: transform 0.2s ease;
  display: block;
}

.gallery-page .image-gallery .gallery-item.hidden {
  display: none;
}

.gallery-page .image-gallery .gallery-item:hover {
  transform: scale(1.05);
}

.gallery-page .image-gallery .gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-page .image-gallery .gallery-item .filename {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px;
  text-align: center;
  font-size: 0.8em;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-page .image-gallery .gallery-item:hover .filename {
  opacity: 1;
}

.gallery-page .image-gallery .gallery-item .expand-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-page .image-gallery .gallery-item:hover .expand-icon {
  opacity: 1;
}

.gallery-page .copied-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  z-index: 1000;
  display: none;
}

.gallery-page .image-preview-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
  padding: 5vh 5vw;
}

.gallery-page .image-preview-overlay .image-preview-container {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
}

.gallery-page .image-preview-overlay .image-preview {
  max-width: 90%;
  max-height: 70vh;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.gallery-page .image-preview-overlay .image-preview-close {
  align-self: flex-end;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 10px;
}

.gallery-page .image-preview-overlay .image-preview-filename {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 1em;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .gallery-page .image-preview {
    max-width: 95%;
    max-height: 60vh;
  }
}
.image-editor-page .app-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 2%;
}

.image-editor-page .controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.image-editor-page .controls input[type=text],
.image-editor-page .controls input[type=file] {
  flex-grow: 1;
  padding: 8px;
  font-size: 14px;
}

.image-editor-page .controls button {
  padding: 8px 12px;
  font-size: 14px;
  flex-grow: 1;
  min-width: 100px;
}

.image-editor-page .controls button.selected {
  background-color: #4CAF50;
  color: white;
}

.image-editor-page .image-edit-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
}

.image-editor-page .image-edit-container #main-image,
.image-editor-page .image-edit-container #original-overlay {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.image-editor-page .image-edit-container #original-overlay {
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.image-editor-page .crop-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.image-editor-page .crop-controls .crop-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-editor-page .crop-controls .crop-list-header h3 {
  margin: 0;
}

.image-editor-page .crop-region {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.image-editor-page .crop-region input {
  flex: 1;
  min-width: 150px;
}

.image-editor-page .crop-region .crop-dimensions {
  color: #666;
  font-size: 0.9em;
  min-width: 80px;
}

.image-editor-page .crop-region button {
  white-space: nowrap;
}

.image-editor-page .file-list {
  margin: 15px 0;
}

.image-editor-page .file-list h3 {
  margin-bottom: 10px;
}

.image-editor-page .file-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.image-editor-page .file-entry.active {
  background: #e3f2fd;
  border-color: #2196f3;
}

.image-editor-page .file-entry span {
  flex: 1;
  margin-right: 10px;
}

@media (min-width: 600px) {
  .image-editor-page .controls {
    flex-wrap: nowrap;
  }
  .image-editor-page .controls input[type=text],
  .image-editor-page .controls input[type=file] {
    flex-grow: 0;
    width: auto;
  }
}
@media (max-width: 400px) {
  .image-editor-page .controls button {
    min-width: auto;
    flex-grow: 1;
  }
}
.resources-page .resources-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.resources-page .filter-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px;
  background: #f1f1f1;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resources-page .filter-container label {
  margin-right: 10px;
  font-weight: bold;
}

.resources-page .filter-container .filter-select {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  transition: border-color 0.2s ease;
}

.resources-page .filter-container .filter-select:focus {
  border-color: #007bff;
  outline: none;
}

.resources-page .resource-section {
  margin-bottom: 40px;
}

.resources-page .resource-section h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.resources-page .resource-section h2 i {
  margin-right: 10px;
}

.resources-page .resource-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.resources-page .resource-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.resources-page .resource-list li:hover {
  transform: scale(1.05);
}

.resources-page .resource-list li img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.resources-page .resource-list li a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
}

.resources-page .resource-list li a:hover {
  text-decoration: underline;
}

.network-viewer .network-container {
  width: 100vw;
  height: calc(100vh - 53px);
  padding: 0;
  margin: 0;
  position: absolute;
  left: 0;
  top: 53px;
  display: flex;
  gap: 0;
}

.network-viewer .controls {
  width: 250px;
  min-width: 250px;
  height: 100%;
  padding: 20px;
  background: #fff;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
}

.network-viewer .controls input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.network-viewer .controls > * {
  flex-shrink: 0;
}

.network-viewer .controls .search-container {
  position: relative;
}

.network-viewer .controls .search-container input {
  padding-right: 30px;
}

.network-viewer .controls .search-container .clear-search {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.network-viewer .controls .search-container .clear-search:hover {
  background: #f0f0f0;
}

.network-viewer .controls .search-container .clear-search:not(.visible) {
  display: none;
}

.network-viewer .zoom-controls {
  display: none;
}

.network-viewer .viewer-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 20px;
  height: calc(100vh - 53px);
  min-width: 0;
  overflow: hidden;
}

.network-viewer #graph {
  width: 100%;
  height: calc(100vh - 93px);
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  min-width: 0;
  position: relative;
}

.network-viewer #graph .graph-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 5px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-direction: column;
}

.network-viewer #graph .graph-controls button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.network-viewer #graph .graph-controls button:hover {
  background: #f0f0f0;
  color: #333;
}

.network-viewer #graph .graph-controls button i {
  font-size: 14px;
}

.network-viewer #graph .graph-controls button:not(:last-child) {
  margin-bottom: 3px;
}

.network-viewer #graph svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.network-viewer .node-panel {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  max-height: calc(100vh - 93px);
  overflow-y: auto;
}

.network-viewer #nodeImage img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
}

.network-viewer .node text {
  pointer-events: none;
}

.network-viewer .image-overlay {
  display: none;
  position: fixed;
  top: 53px;
  left: 220px;
  right: 320px;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  padding: 20px;
}

.network-viewer .image-overlay.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.network-viewer .image-overlay .close-button {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1001;
}

.network-viewer .image-overlay .close-button:hover {
  background: #f0f0f0;
}

.network-viewer .image-overlay img {
  max-width: 100%;
  max-height: calc(100vh - 93px);
  object-fit: contain;
}

.network-viewer .force-controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.network-viewer .force-controls h4 {
  margin: 15px 0 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.network-viewer .force-controls h4:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.network-viewer .force-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.network-viewer .force-controls label:has(input[type=checkbox]) {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.network-viewer .force-controls input[type=range] {
  width: 100%;
}

.network-viewer .force-controls input[type=checkbox] {
  margin: 0;
}

.network-viewer .force-controls button {
  margin-top: 10px;
  padding: 8px;
  width: 100%;
}

.network-viewer .force-controls .control-section {
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 10px;
}

.network-viewer .force-controls .control-section .section-header {
  margin: 0;
  padding: 10px;
  background: #f8f8f8;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.network-viewer .force-controls .control-section .section-header:hover {
  background: #f0f0f0;
}

.network-viewer .force-controls .control-section .section-header i {
  transition: transform 0.3s ease;
}

.network-viewer .force-controls .control-section .section-header span i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.network-viewer .force-controls .control-section .section-content {
  padding: 15px;
  border-top: 1px solid #eee;
  display: none;
}

.network-viewer .force-controls .control-section .section-content.active {
  display: block;
}

.network-viewer .force-controls .control-section.expanded .section-header i {
  transform: rotate(180deg);
}

.network-viewer .force-controls .control-section.expanded .section-content {
  display: block;
}

.network-viewer .force-controls .control-section .filter-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  margin-top: 5px;
}

.network-viewer .filter-button {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.network-viewer .filter-button:hover {
  background: #f0f0f0;
  color: #333;
}

.network-viewer .filter-button.active {
  background: #e6e6e6;
  color: #333;
}

.network-viewer .filter-popup {
  display: none;
  position: absolute;
  left: 270px;
  top: 53px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  width: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.network-viewer .filter-popup.visible {
  display: block;
}

.network-viewer .filter-popup h4 {
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.network-viewer .filter-popup .filter-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.network-viewer .filter-popup .filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.network-viewer .filter-popup .filter-options .filter-option {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  font-weight: normal;
}

.network-viewer .filter-popup .filter-options .filter-option:hover {
  background: #f0f0f0;
}

.network-viewer .filter-popup .filter-options .filter-option.selected {
  background: #007bff;
  color: white;
  border-color: #0056b3;
}

@media screen and (max-width: 768px) {
  .network-viewer .network-container {
    flex-direction: column;
    height: auto;
  }
  .network-viewer .controls {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: 50vh;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  .network-viewer .viewer-layout {
    height: 50vh;
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .network-viewer #graph {
    height: 100%;
  }
  .network-viewer .node-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: 40vh;
    z-index: 100;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .network-viewer .node-panel.visible {
    transform: translateY(0);
  }
  .network-viewer .filter-popup {
    left: 0;
    right: 0;
    width: auto;
    margin: 10px;
  }
  .network-viewer .image-overlay {
    left: 0;
    right: 0;
  }
}
@media screen and (max-width: 480px) {
  .network-viewer .controls {
    max-height: 60vh;
  }
  .network-viewer .viewer-layout {
    height: 40vh;
  }
  .network-viewer .graph-controls button {
    width: 28px;
    height: 28px;
  }
  .network-viewer .graph-controls button i {
    font-size: 12px;
  }
}
.files-page #directory-tree ul {
  list-style-type: none;
  padding-left: 20px;
}

.files-page #directory-tree li {
  margin: 10px 0;
}

.files-page #directory-tree a {
  text-decoration: none;
  color: #007bff;
}

.files-page #directory-tree a:hover {
  text-decoration: underline;
}

.csv-editor-page {
  padding: 0;
  margin: 0;
  width: 100vw;
  position: absolute;
  left: 0;
  top: 53px;
  padding-top: 0;
}

.csv-editor-page .toolbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  height: 60px;
  width: 100%;
  z-index: 1;
  margin-top: 10px;
}

.csv-editor-page .toolbar .toolbar-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.csv-editor-page .toolbar .toolbar-section:not(:last-child) {
  padding-right: 20px;
  border-right: 1px solid #ddd;
}

.csv-editor-page .toolbar .toolbar-section input[type=text] {
  min-width: 200px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.csv-editor-page .toolbar .toolbar-section input[type=file] {
  max-width: 200px;
}

.csv-editor-page .toolbar .toolbar-section select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.csv-editor-page .toolbar .toolbar-section .file-upload-button {
  position: relative;
  overflow: hidden;
  min-width: 100px;
  justify-content: center;
  gap: 5px;
}

.csv-editor-page .toolbar .toolbar-section .file-upload-button input[type=file] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.csv-editor-page .toolbar .toolbar-section .file-upload-button i {
  margin-right: 5px;
}

.csv-editor-page .toolbar .toolbar-section #export-nodes-csv,
.csv-editor-page .toolbar .toolbar-section #export-edges-csv {
  min-width: 100px;
  justify-content: center;
  gap: 5px;
}

.csv-editor-page .toolbar .toolbar-section #export-nodes-csv i,
.csv-editor-page .toolbar .toolbar-section #export-edges-csv i {
  margin-right: 5px;
}

.csv-editor-page .toolbar .toolbar-section button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csv-editor-page .toolbar .toolbar-section button i {
  font-size: 16px;
}

.csv-editor-page .toolbar .toolbar-section button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.csv-editor-page .toolbar .toolbar-section button:hover {
  background: #f0f0f0;
}

.csv-editor-page .toolbar .toolbar-section .current-db-label {
  color: #666;
}

.csv-editor-page .toolbar .toolbar-section #current-db-path {
  font-weight: bold;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csv-editor-page .network-container {
  width: 100%;
  height: calc(100vh - 123px);
  margin: 0;
  position: relative;
  left: 0;
  display: flex;
  gap: 20px;
  padding: 20px;
}

.csv-editor-page .network-container .toggle-panel-btn {
  position: absolute;
  left: 250px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 20px;
  height: 60px;
  padding: 0;
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 4px 4px 0;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease;
}

.csv-editor-page .network-container .toggle-panel-btn i {
  transition: transform 0.3s ease;
}

.csv-editor-page .network-container .toggle-panel-btn:hover {
  background: #f0f0f0;
}

.csv-editor-page .network-container .controls {
  width: 250px;
  min-width: 250px;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  margin: 0;
  transition: transform 0.3s ease;
}

.csv-editor-page .network-container .controls input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.csv-editor-page .network-container .controls > * {
  flex-shrink: 0;
}

.csv-editor-page .network-container .controls .force-controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.csv-editor-page .network-container .controls .layout-controls {
  margin-bottom: 15px;
}

.csv-editor-page .network-container .controls .layout-controls select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.csv-editor-page .network-container .viewer-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 0;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  transition: margin-left 0.3s ease;
}

.csv-editor-page .network-container.panel-hidden .controls {
  transform: translateX(-100%);
}

.csv-editor-page .network-container.panel-hidden .toggle-panel-btn {
  left: 0;
}

.csv-editor-page .network-container.panel-hidden .toggle-panel-btn i {
  transform: rotate(180deg);
}

.csv-editor-page .network-container.panel-hidden .viewer-layout {
  margin-left: -250px;
}

.csv-editor-page .network-container.panel-hidden #graph-container {
  width: 100%;
}

.csv-editor-page .search-container {
  position: relative;
}

.csv-editor-page .search-container input {
  padding-right: 30px;
}

.csv-editor-page .search-container .clear-search {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.csv-editor-page .search-container .clear-search:hover {
  background: #f0f0f0;
}

.csv-editor-page .search-container .clear-search:not(.visible) {
  display: none;
}

.csv-editor-page .database-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.csv-editor-page .database-controls .current-db {
  width: 100%;
  padding: 8px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  word-break: break-all;
}

.csv-editor-page .database-controls .current-db span {
  font-weight: bold;
  display: block;
  margin-top: 4px;
}

.csv-editor-page .database-controls .db-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.csv-editor-page .database-controls .db-actions button {
  flex: 1;
  white-space: nowrap;
}

.csv-editor-page .database-controls input[type=file] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.csv-editor-page .database-controls button {
  padding: 8px 16px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.csv-editor-page .database-controls button:hover {
  background: #e0e0e0;
}

.csv-editor-page .database-controls #new-db {
  background-color: #4CAF50;
  color: white;
}

.csv-editor-page .database-controls #new-db:hover {
  background-color: #45a049;
}

.csv-editor-page .viewer-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 0;
  height: calc(100vh - 93px);
  min-width: 0;
  overflow: hidden;
}

.csv-editor-page #graph-container {
  width: 100%;
  height: 100%;
  border: 1px solid #ddd;
  background: #f8f8f8;
  position: relative;
  overflow: hidden;
}

.csv-editor-page #graph-container #graph-content {
  width: 100%;
  height: 100%;
}

.csv-editor-page #graph-container .zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: white;
  pointer-events: all;
}

.csv-editor-page #graph-container .zoom-controls button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csv-editor-page #graph-container .zoom-controls button i {
  font-size: 14px;
  color: #666;
}

.csv-editor-page #graph-container .zoom-controls button:hover {
  background: #f0f0f0;
}

.csv-editor-page #graph-container .zoom-controls button:hover i {
  color: #333;
}

.csv-editor-page #graph-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.csv-editor-page .node text {
  pointer-events: none;
}

.csv-editor-page .node {
  cursor: pointer;
}

.csv-editor-page .node.selected rect {
  stroke: #007bff;
  stroke-width: 2px;
}

.csv-editor-page .node rect {
  transition: stroke 0.2s;
}

.csv-editor-page .node:hover rect {
  stroke: #0056b3;
  stroke-width: 2px;
}

.csv-editor-page .edge {
  stroke: #999;
  stroke-opacity: 0.6;
}

.csv-editor-page .edge line {
  stroke: #999;
  stroke-width: 1px;
  stroke-opacity: 0.6;
}

.csv-editor-page .edge text {
  font-size: 12px;
  fill: #666;
}

.csv-editor-page .node-panel {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  max-height: calc(100vh - 93px);
  overflow-y: auto;
}

.csv-editor-page .node-panel .node-edit-form .form-group {
  margin-bottom: 15px;
}

.csv-editor-page .node-panel .node-edit-form .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.csv-editor-page .node-panel .node-edit-form .form-group input, .csv-editor-page .node-panel .node-edit-form .form-group select, .csv-editor-page .node-panel .node-edit-form .form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.csv-editor-page .node-panel .node-edit-form .form-group input:focus, .csv-editor-page .node-panel .node-edit-form .form-group select:focus, .csv-editor-page .node-panel .node-edit-form .form-group textarea:focus {
  outline: none;
  border-color: #007bff;
}

.csv-editor-page .node-panel .node-edit-form .form-group input:disabled, .csv-editor-page .node-panel .node-edit-form .form-group select:disabled, .csv-editor-page .node-panel .node-edit-form .form-group textarea:disabled {
  background: #f5f5f5;
}

.csv-editor-page .node-panel .node-edit-form .form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.csv-editor-page .node-panel .node-edit-form .form-actions {
  margin-top: 20px;
  text-align: right;
}

.csv-editor-page .node-panel .node-edit-form .form-actions button {
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.csv-editor-page .node-panel .node-edit-form .form-actions button:hover {
  background: #0056b3;
}

.csv-editor-page .node-panel .info-display .form-group {
  margin-bottom: 15px;
}

.csv-editor-page .node-panel .info-display .form-group label {
  font-weight: bold;
  color: #666;
  margin-bottom: 5px;
  display: block;
}

.csv-editor-page .node-panel .info-display .form-group .info-text {
  padding: 8px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 4px;
  min-height: 36px;
  white-space: pre-wrap;
  word-break: break-word;
}

.csv-editor-page .node-panel .info-display .form-group .info-text:empty::before {
  content: "—";
  color: #999;
}

.csv-editor-page .node-panel .info-display .node-fields,
.csv-editor-page .node-panel .info-display .edge-fields {
  padding: 10px 0;
}

.csv-editor-page .node-panel .info-display .node-fields:not(:first-child),
.csv-editor-page .node-panel .info-display .edge-fields:not(:first-child) {
  border-top: 1px solid #eee;
}

.csv-editor-page .control-section {
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 10px;
}

.csv-editor-page .control-section .section-header {
  margin: 0;
  padding: 10px;
  background: #f8f8f8;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.csv-editor-page .control-section .section-header:hover {
  background: #f0f0f0;
}

.csv-editor-page .control-section .section-header i {
  transition: transform 0.3s ease;
}

.csv-editor-page .control-section .section-content {
  padding: 15px;
  border-top: 1px solid #eee;
  display: none;
}

.csv-editor-page .control-section .section-content.active {
  display: block;
}

.csv-editor-page .control-section.expanded .section-header i {
  transform: rotate(180deg);
}

.csv-editor-page .control-section.expanded .section-content {
  display: block;
}

.csv-editor-page .filter-button {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.csv-editor-page .filter-button:hover {
  background: #f0f0f0;
  color: #333;
}

.csv-editor-page .filter-button.active {
  background: #e6e6e6;
  color: #333;
}

.csv-editor-page .filter-container {
  position: relative;
}

.csv-editor-page .filter-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  margin-top: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.csv-editor-page .filter-popup.visible {
  display: block;
}

.csv-editor-page .filter-popup h4 {
  margin: 0 0 10px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.csv-editor-page .filter-popup .filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.csv-editor-page .filter-popup .filter-options div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.csv-editor-page .filter-popup .filter-options div input[type=radio] {
  margin: 0;
}

.csv-editor-page .filter-popup .filter-options div label {
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.csv-editor-page .force-controls .control-section {
  background: white;
  margin-bottom: 1rem;
}

.csv-editor-page .force-controls .control-section .section-content label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.csv-editor-page .force-controls .control-section .section-content label input[type=range] {
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal .modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal .modal-header h3 {
  margin: 0;
}

.modal .modal-header .close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  color: #666;
}

.modal .modal-header .close-modal:hover {
  color: #333;
}

.modal .modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal .modal-body input[disabled] {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

.modal .modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal .modal-footer button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.modal .modal-footer button.close-modal {
  background: #f0f0f0;
  border: 1px solid #ddd;
}

.modal .modal-footer button#modal-save-changes {
  background: #007bff;
  color: white;
  border: none;
}

.modal .modal-footer button#modal-save-changes:hover {
  background: #0056b3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  line-height: 1.6;
}
body.network-viewer-page, body.image-editor-page, body.gallery-page, body.csv-editor-page {
  max-width: none;
  padding: 0;
}

.tools-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tool-item {
  margin-bottom: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}

.tool-item:hover {
  transform: translateY(-5px);
}

.tool-link {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  padding: 10px;
}

.tool-logo {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}

.tool-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #2c3e50;
  margin-left: 10px;
}

/* Ensure favicon appears yellow */
link[rel=icon] {
  color: yellow;
}

img {
  display: block;
}

/*# sourceMappingURL=styles.css.map */