/**
 * Custom styles for Reddit Control System
 */

:root {
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Smooth theme transitions */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Toast container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Theme toggle buttons */
.theme-toggle-group {
  display: flex;
  gap: 0.25rem;
}

.theme-toggle-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  background: transparent;
  color: var(--bs-body-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--bs-secondary-bg);
}

.theme-toggle-btn.active {
  background: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

/* Copy button styling */
.copy-btn {
  cursor: pointer;
}

/* Privacy protection for external links */
a[target="_blank"][rel*="noreferrer"] {
  display: inline-flex;
  align-items: center;
}

/* Loading state */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Admin sidebar */
.admin-sidebar {
  min-height: 100vh;
  background: var(--bs-secondary-bg);
  border-right: 1px solid var(--bs-border-color);
}

.admin-sidebar .nav-link {
  color: var(--bs-body-color);
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover {
  background: var(--bs-tertiary-bg);
}

.admin-sidebar .nav-link.active {
  background: var(--bs-primary);
  color: white;
}

/* Task card */
.task-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--bs-body-bg);
}

.task-step {
  padding: 1rem;
  border-left: 3px solid var(--bs-primary);
  margin-bottom: 1rem;
  background: var(--bs-secondary-bg);
  border-radius: 0.25rem;
}

.task-step-number {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  background: var(--bs-primary);
  color: white;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Responsive table wrapper */
.table-responsive {
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
}

/* Status badges */
.status-pending {
  background-color: #ffc107;
  color: #000;
}

.status-assigned {
  background-color: #0dcaf0;
  color: #000;
}

.status-completed {
  background-color: #198754;
  color: #fff;
}

.status-archived {
  background-color: #6c757d;
  color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .admin-sidebar {
    min-height: auto;
  }

  .task-step {
    padding: 0.75rem;
  }

  .toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bs-secondary-color);
}

.empty-state i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}
