.main-buttons {
  position: fixed;
  padding: 24px 32px;
  z-index: 20;
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
}

.node {
  text-align: center;
  height: 100px;
  width: 100px;
  position: relative;
  border-radius: 50%;
}

.hide-button {
  margin-top: -0.5rem;
  position: relative;
  cursor: pointer;
  padding: 0 !important;
}

.predicate-option {
  padding: 1rem;
  margin: 0.5rem;
  border: lightslategray;
  border-style: solid;
  border-width: thin;
  position: relative;
}

.modal-show {
  position: absolute;
  background-color: white;
  border-right-style: solid;
  border-right-width: thin;
  border-right-color: grey;
  padding: 2rem;
  z-index: 20;
  top: 0;
  left: 0;
  height: 100vh;
  min-width: 365px;
  max-width: 50%;
  overflow: scroll;
}

.result-modal-center {
  position: absolute;
  background-color: #ffffff;
  margin-left: auto;
  margin-right: auto;
  bottom: 10%;
  left: 0;
  right: 0;
  text-align: center;
  padding: 2rem;
  z-index: 30;
  height: 75%;
  width: fit-content;
  min-width: 50%;
  max-width: 80%;
  overflow: auto;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.05);
}

.result-modal-center table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
}

.result-modal-center thead td {
  padding: 16px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  border-bottom: 2px solid black;
}

.result-modal-center thead tr td:first-child {
  border-top-left-radius: 12px;
}
.result-modal-center thead tr td:last-child {
  border-top-right-radius: 12px;
}

.result-modal-center tbody td {
  padding: 14px 16px;
  color: #555;
  background-color: white;
  border-bottom: 1px solid #aaa;
  font-size: 0.95rem;
}

.result-modal-center tbody tr:last-child td {
  border-bottom: none;
}

.result-modal-center tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.result-modal-center tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.result-modal-center tbody tr:hover td {
  background-color: #fafafa;
}

.center {
  position: absolute !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
}

td {
  max-width: 400px;
  word-wrap: break-word;
}

.help-modal {
  background: lightgrey;
  padding: 1rem;
  border-radius: 10px;
  text-align: left;
  width: 25%;
  position: absolute;
  top: 50px;
  right: 10px;
  z-index: 20;
}

.help-button {
  right: 10px;
  top: 10px;
  position: absolute;
  border: none;
  border-radius: 10px;
  display: flex !important;
  padding: 0.5rem !important;
  z-index: 20;
}

.link-tool-select .ant-select-selector {
  border-radius: 6px !important;
  background: #ffffff;
}

.link-tool-dropdown .ant-select-item-option {
  border-radius: 6px;
  margin: 4px 6px;
  padding: 6px 10px;
}

.link-tool-dropdown .link-tool-join.ant-select-item-option {
  background: #c7a4ff;
}

.link-tool-dropdown .link-tool-or.ant-select-item-option {
  background: #ffc88d;
}

.link-tool-dropdown .link-tool-and.ant-select-item-option {
  background: #ccff98;
}

.link-tool-dropdown .ant-select-item-option:hover {
  filter: brightness(0.98);
}

.ant-tooltip-inner {
  border-radius: 8px !important;
}

.react-flow__edges {
  z-index: 5;
}

.react-flow__nodes {
  z-index: 4;
}

.and-link-edge {
  pointer-events: none;
}

.spinner-layer {
  position: relative;
  width: 140px;
  height: 140px;
}

.spinner-layer .spin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #8a2be2;
  opacity: 0.9;
}

.spinner-layer .spin-1 { font-size: 96px; animation: spin-cw 1.6s linear infinite; color: #3caeff; }
.spinner-layer .spin-2 { font-size: 70px; animation: spin-ccw 1.2s linear infinite; color: rgb(77, 140, 250); }
.spinner-layer .spin-3 { font-size: 44px; animation: spin-cw 0.9s linear infinite; color: rgb(21, 80, 218); }

@keyframes spin-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spin-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.loading-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  background-image:
    linear-gradient(to right, rgba(139, 139, 139, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 139, 139, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  animation: pan-grid 20s linear infinite;
}

@keyframes pan-grid {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -1000px -1000px;
  }
}.loading-screen { transition: opacity 0.6s ease-out, visibility 0.6s; z-index: 10000; position: fixed; top: 0; left: 0; } .loading-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

/* Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode .ant-typography {
  color: #e0e0e0 !important;
}

.dark-mode .loading-screen {
  background-color: #121212;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.dark-mode .loading-screen .ant-typography {
  color: #5d9cec !important; 
}

.dark-mode .controls-custom button {
  background-color: #333;
  fill: white;
  border-bottom: 1px solid #555;
}

.dark-mode .controls-custom button:hover {
  background-color: #444;
}

.db-uri-field .ant-input,
.db-uri-field .ant-input-group-addon {
  background-color: #dbeafe !important;
}

.db-uri-field .ant-input {
  color: #1e3a8a;
}

.db-uri-field .ant-input::placeholder {
  color: #3b82f6;
}

.db-uri-field .ant-input-group-addon {
  color: #1d4ed8;
  border-color: #93c5fd;
}

.predicate-container {
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: row;
  cursor: pointer;
  margin-bottom: 4px;
  align-items: center;
  height: 44px;
  transition: 0.2s;
  background-color: #f7f7fa;
}

.predicate-container:hover {
  background-color: var(--hover-background-color)
}
.ant-checkbox-inner .ant-checkbox-input {
  transform: scale(1.2);
}

/* .ant-checkbox-checked .ant-checkbox-inner {
  background-color: var(--background-color);
  border-color: var(--border-color);
} */

.predicate-tag {
  cursor: pointer;
  transition: 0.1s;
  margin-bottom: 8px;
}

.predicate-tag:hover {
  transform: scale(1.05);
}

ul li::marker {
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    text-indent: 0px !important;
    text-align: start !important;
    text-align-last: start !important;
}

.a {
  list-style-type: circle;
}

.customDrop .ant-select-selector {
  background: transparent !important;
  /* border-color: #d9d9d9 !important; */
  border-radius: 4px !important;
}

.customDrop .ant-select-selector {
  background: transparent !important;
  /* border-color: #d9d9d9 !important; */
  border-radius: 4px !important;
}

.text-container {
  position: fixed;
  top: 90px;
  right: 32px;
  height: 280px;
  width: 490px;
  box-shadow: rgb(0 0 0 / 6%) 0 0 0 1px, rgb(0 0 0 / 5%) 0 10px 10px -5px;
  z-index: 20;
  border-radius: 6px;
  padding: 12px 16px;
}

.join-graph-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  height: 300px;
  width: 400px;
  background-color: white;
  box-shadow: rgb(0 0 0 / 6%) 0 0 0 1px, rgb(0 0 0 / 5%) 0 10px 10px -5px;
  z-index: 20;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.join-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.join-graph-content {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

/* Simple Node Style */
.simple-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
}

.query-controls-container {
    position: absolute;
    top: 300px;
    right: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 275px;
}

