html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Open Sans";
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.container {
  position: relative;
  margin: 0 auto;
  background-color: #333333;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  min-height: 600px;
}

.header {
  display: flex;
  align-items: baseline;
  margin-left: 2%;
  margin-top: 2%;
  gap: 20px;
  margin-bottom: 2%;
}

.company-logo {
  color: #ffffff;
  font-size: 1.5em;
  margin: 0;
  font-family: "Open Sans";
  font-weight: 700;
}

.subtitle {
  color: #ffffff;
  font-size: 1.1em;
  margin: 0;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
}

.controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  text-align: center;
  margin-bottom: 0;
  padding: 10px 15px;
  flex-shrink: 0;
  border-radius: 5px;
}

.sun-controls {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.btn {
  color: #3a3a3a;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-family: "Open Sans";
  transition: background-color 0.3s;
}

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

.btn.reset {
  background-color: #e5e5e5;
  width: 128px;
  border-radius: 20px;
}

.btn.reset:hover {
  background-color: #cccccc;
}

.visualization-container {
  background: #fffffe;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  position: relative;
  flex-grow: 1;
  margin: 20px;
  margin-top: 0;
}

#network {
  display: block;
  width: 100%;
  cursor: default !important;
}

#network:active {
  cursor: default;
}

.node:hover {
  stroke-width: 3px;
}

/* Class for highlighted node borders */
.highlighted-node-border.sun {
  stroke: #edbf3f !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
}

.highlighted-node-border.entity {
  stroke: #3071b1 !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
}

.highlighted-node-border.attribute {
  stroke: #48a25c !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
}

/* Class for highlighted links */
.highlighted-link {
  stroke: #333333 !important;
  stroke-width: 1.8px !important;
  stroke-opacity: 0.6 !important;
}

circle {
  transition: opacity 0.5s ease-in-out, fill 0.3s ease-in-out,
    stroke 0.3s ease-in-out, cx 0.5s ease-in-out, cy 0.5s ease-in-out;
  cursor: pointer;
}

text {
  transition: opacity 0.4s ease-in-out, fill 0.3s ease-in-out,
    x 0.4s ease-in-out, y 0.4s ease-in-out;
  pointer-events: none;
}

path.link {
  transition: opacity 0.3s ease-in-out, stroke 0.3s ease-in-out;
  stroke: #cccccc;
  stroke-width: 1.5px;
  stroke-opacity: 0.8;
  fill: none;
  stroke-dasharray: 3, 3;
}

.tooltip {
  position: absolute;
  padding: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  font-size: 0.9em;
  z-index: 1000;
}

.card-panel {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-family: "Open Sans", sans-serif;
  z-index: 100;
  position: absolute;
}

.legend {
  top: 20px;
  right: 20px;
  width: 350px;
  max-height: 700px;
  transition: all 0.3s ease-out;
}

.legend-description {
  color: #606060;
  line-height: 1.4;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.legend-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-label {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.legend-desc {
  font-size: 12px;
  color: #606060;
  line-height: 1.3;
}

.info-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  z-index: 100;
}

.info-title {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 8px;
}

.info-text {
  font-size: 12px;
  color: #7f8c8d;
  line-height: 1.4;
}

.faded {
  opacity: 0.1 !important;
}

.filter-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 200px;
  font-family: "Open Sans";
}

.filter-toggle {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #7f8c8d;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  background: none;
  border: none;
}

.filter-toggle:hover {
  background: #f8f9fa;
  color: #2c3e50;
}

.filter-content {
  transition: all 0.3s ease;
}

.filter-panel.collapsed {
  min-width: 120px;
}

.filter-panel.collapsed .filter-content {
  display: none;
}

.filter-panel.collapsed::after {
  content: "Filters";
  padding: 12px 20px;
  display: block;
  color: #2c3e50;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.filter-header {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333333;
  transition: color 0.2s ease;
  font-family: "Open Sans", sans-serif;
}

.sort-option:hover {
  color: #3498db;
}

.sort-option input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #333333;
}

.sort-option label {
  cursor: pointer;
  font-weight: 500;
}

.category-header-group {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.category-header-bg {
  transition: fill 0.3s ease-in-out, stroke 0.3s ease-in-out;
}

.category-header-group text {
  transition: fill 0.3s ease-in-out;
  pointer-events: none;
  user-select: none;
}

.attribute-details-panel {
  bottom: 50px;
  right: 50px;
  width: 350px;
  max-height: calc(100vh - 100px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  transition: transform 0.3s ease-out, max-height 0.3s ease-out;
  z-index: 1000;
  position: fixed;
}

.attribute-details-panel.is-visible {
  transform: translateX(0);
}

.panel-header {
  padding: 30px 30px 32px 30px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
  height: 20px;
  box-sizing: border-box;
}

.panel-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  font-family: "Open Sans", sans-serif;
}

.panel-toggle-button {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: 300;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.panel-toggle-button:hover {
  background-color: #f0f0f0;
  color: #2c3e50;
}

.panel-content {
  max-height: 0;
  padding: 0px;
  margin: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Expanded Content Area */
.panel-content.is-expanded {
  max-height: 400px;
  padding: 10px 15px;
  overflow-y: auto;
}

/* Section Headings */
.panel-section h4 {
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 800;
  font-family: "Open Sans", sans-serif;
  color: #333333;
}

.panel-content > .panel-section:first-child h4 {
  margin-top: 0;
}

.panel-section p,
.panel-section ul {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.panel-section ul {
  list-style-type: none;
  padding-left: 0;
}

.panel-section ul li {
  margin-bottom: 5px;
}

.panel-section ul li:last-child {
  margin-bottom: 0;
}
.legend.is-expanded .panel-header,
.attribute-details-panel.is-expanded .panel-header {
  background-color: #e5e5e5;
}

.entity-name-with-dot,
.attribute-name-with-dot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entity-dot {
  width: 12px;
  height: 12px;
  background-color: #357abd;
  border-radius: 50%;
  flex-shrink: 0;
}

.attribute-dot {
  width: 12px;
  height: 12px;
  background-color: #48a25c;
  border-radius: 50%;
  flex-shrink: 0;
}
