/* ═══════════════════════════════════════
   LOADERS
   ═══════════════════════════════════════ */

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid var(--surface);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-small {
  width: 24px;
  height: 24px;
  border: 3px solid var(--surface);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-spinner {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ═══════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════ */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.5;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), transparent);
}

.notification-error {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
}

.notification-info {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), transparent);
}

.notification-warning {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent);
}

/* ═══════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-state svg {
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
  max-width: 400px;
}

.error-state {
  text-align: center;
  padding: 60px 20px;
  color: #ef4444;
  font-size: 14px;
}

/* ═══════════════════════════════════════
   BADGES
   ═══════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
}

.badge-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ═══════════════════════════════════════
   ACTIVE FILTERS
   ═══════════════════════════════════════ */

.active-filters {
  margin-bottom: 20px;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text);
}

.remove-filter-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.remove-filter-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

.pagination-ellipsis {
  padding: 0 8px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   ADMIN STYLES
   ═══════════════════════════════════════ */

.text-center {
  text-align: center;
}

.btn-danger {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}
