/* Nexis Dynamic Knowledge Graph Demo Styles */

body {
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
}

h1 {
  color: #2c3e50;
  margin-bottom: 30px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.card {
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
}

.card-header {
  background-color: #3498db;
  color: white;
  font-weight: 500;
}

.card-header h5 {
  margin-bottom: 0;
}

#graph-container {
  border: 1px solid #ddd;
  border-radius: 5px;
  height: 500px;
  background-color: #ffffff;
  overflow: hidden;
}

.node {
  stroke: #fff;
  stroke-width: 1.5px;
}

.node text {
  font-size: 10px;
  fill: #333;
  font-weight: 500;
}

.link {
  stroke: #999;
  stroke-opacity: 0.6;
}

.type-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 5px;
  margin-bottom: 5px;
  border-radius: 10px;
  font-size: 12px;
  background-color: #e9ecef;
}

.confidence {
  font-size: 12px;
  color: #6c757d;
}

#node-details {
  min-height: 100px;
}

/* Button styles */
.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-outline-secondary {
  color: #3498db;
  border-color: #3498db;
}

.btn-outline-secondary:hover {
  background-color: #3498db;
  border-color: #3498db;
}

/* Form styles */
.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Loading spinner */
.spinner-border {
  color: #3498db;
}

/* Tooltip styles */
.tooltip {
  position: absolute;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 5px;
  pointer-events: none;
  font-size: 12px;
  z-index: 1000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #graph-container {
    height: 300px;
  }
  
  .card {
    margin-bottom: 15px;
  }
}