.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.connection-card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.connection-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

* {
  box-sizing: border-box;
}

input[type="file"] {
  cursor: pointer;
}

nav a.active {
  color: white;
  font-weight: 600;
}

tbody tr {
  transition: background-color 0.1s ease;
}

.modal-backdrop {
  backdrop-filter: blur(2px);
}

.truncate-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strength-high { background-color: #dcfce7; color: #166534; }
.strength-medium { background-color: #fef9c3; color: #713f12; }
.strength-low { background-color: #f3f4f6; color: #374151; }
