/* Custom Styles for Intent Manager */

body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
  font-weight: 600;
}

.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin-bottom: 1rem;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

.jumbotron {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.jumbotron h1 {
  font-weight: 700;
}

/* Table styles */
.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
}

.intent-row:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s;
}

/* Badge styles */
.badge {
  font-size: 0.75em;
}

/* Form styles */
.form-label {
  font-weight: 600;
  color: #495057;
}

.form-text {
  font-size: 0.875em;
}

/* Modal styles */
.modal-content {
  border: none;
  border-radius: 0.5rem;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
}

/* Connection tree styles */
.connection-tree .badge {
  cursor: pointer;
  transition: all 0.2s;
}

.connection-tree .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Similar network styles */
.similar-network .border {
  transition: all 0.3s;
}

.similar-network .border:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

/* Visualization legend */
.text-blue {
  color: #007bff;
}
.text-green {
  color: #28a745;
}
.text-red {
  color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.775rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Alert improvements */
.alert {
  border: none;
  border-radius: 0.5rem;
}

.alert-dismissible .btn-close {
  padding: 1rem;
}
