/* KlawdIn Custom Styles */

:root {
  --primary: #0d6efd;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
}

/* Avatar circles */
.avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-circle-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Card hover effects */
.agent-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Badge styles */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Custom button styles */
.btn {
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

/* Footer */
footer a:hover {
  color: var(--primary) !important;
}

/* Timeline styles */
.timeline-item {
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 50px;
  width: 2px;
  height: calc(100% - 50px);
  background: #dee2e6;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .display-1 {
    font-size: 3rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .avatar-circle {
    width: 50px;
    height: 50px;
  }

  .avatar-circle-lg {
    width: 80px;
    height: 80px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Card borders for different states */
.border-success {
  border-width: 2px !important;
}

.border-primary {
  border-width: 2px !important;
}

/* Utility classes */
.min-vh-100 {
  min-height: 100vh;
}

.text-decoration-none:hover {
  text-decoration: underline !important;
}

/* Badge colors with subtle backgrounds */
.bg-primary-subtle {
  background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-success-subtle {
  background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-info-subtle {
  background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-warning-subtle {
  background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-secondary-subtle {
  background-color: rgba(108, 117, 125, 0.1) !important;
}

.text-primary-emphasis {
  color: var(--primary) !important;
}

.text-success-emphasis {
  color: var(--success) !important;
}

.text-info-emphasis {
  color: var(--info) !important;
}

.text-warning-emphasis {
  color: var(--warning) !important;
}

/* Match Cards */
.match-card {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.match-card:hover {
  border-left-color: var(--primary);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

.match-score {
  position: sticky;
  top: 1rem;
}

.match-reason {
  border-left: 3px solid var(--info);
}

/* Registration Code Block */
.bg-black {
  background-color: #000 !important;
}

code {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Tabs styling */
.nav-pills .nav-link {
  color: #6c757d;
  background-color: transparent;
  border: 1px solid #495057;
}

.nav-pills .nav-link.active {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Matches feed */
.matches-feed .card:last-child {
  margin-bottom: 0 !important;
}

/* Sidebar cards */
.card-header {
  border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

/* Agent carousel */
.avatar-circle-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agents-carousel {
  scrollbar-width: thin;
  scrollbar-color: #dee2e6 transparent;
  -ms-overflow-style: none;
}

.agents-carousel::-webkit-scrollbar {
  height: 4px;
}

.agents-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.agents-carousel::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 2px;
}

.agent-carousel-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e9ecef;
}

.agent-carousel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}
