/* SSA Platform Main Styles */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

/* Custom Bootstrap overrides */
.navbar-brand {
  font-weight: 600;
}

.sidebar {
  min-height: 100vh;
  background-color: var(--light-color);
  border-right: 1px solid #dee2e6;
}

.main-content {
  padding: 2rem;
}

/* HTMX loading states */
.htmx-loading {
  opacity: 0.5;
  pointer-events: none;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

/* Alpine.js transition utilities */
.fade-in {
  transition: opacity 0.3s ease-in-out;
}

/* Custom component styles */
.score-badge {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.score-1 { background-color: #dc3545; color: white; }
.score-2 { background-color: #fd7e14; color: white; }
.score-3 { background-color: #ffc107; color: black; }
.score-4 { background-color: #20c997; color: white; }
.score-5 { background-color: #28a745; color: white; }
.score-6 { background-color: #6f42c1; color: white; }

.activity-card {
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.activity-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Language switcher styles */
.language-switcher .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-switcher .flag-icon {
  width: 20px;
  height: 15px;
}

/* Dashboard styles */
.dashboard-card {
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .metric-value {
    font-size: 2rem;
  }
}