
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-6);
}

@media (max-width: 767px) {
  .dashboard-container {
    padding-top: var(--space-16);
  }
}

.admin-profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.admin-profile__info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.admin-profile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-md);
}

.admin-profile__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.admin-profile__label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-profile__email {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 640px) {
  .admin-profile {
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }
  
  .admin-profile__info {
    justify-content: center;
  }
  
  #logout-button {
    width: 100%;
    justify-content: center;
  }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.top-bar__tabs {
  display: flex;
  gap: var(--space-4);
}

.top-bar__tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-fast);
}

.top-bar__tab:hover {
  color: var(--text-primary);
  background: rgba(31, 41, 55, 0.05);
}

.top-bar__tab--active {
  color: var(--text-inverse);
  background: var(--color-violet);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.stat-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-box__label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.stat-box__value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.stat-box__link {
  font-size: var(--font-size-sm);
  color: var(--color-violet);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.filter-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.filter-section__title {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.filter-chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  user-select: none;
}

.filter-chip:hover:not(.filter-chip--active) {
  border-color: var(--color-violet);
  color: var(--color-violet);
  background: rgba(124, 58, 237, 0.05);
}

.filter-chip--active {
  background: var(--color-violet);
  color: var(--text-inverse);
  border-color: var(--color-violet);
}

.filter-chip--active:hover {
  background: var(--color-violet-light);
  border-color: var(--color-violet-light);
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
}

.spotted-admin-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.spotted-admin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-violet), var(--color-violet-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

/* Hover effects - solo su desktop */
@media (hover: hover) {
  .spotted-admin-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-medium);
  }

  .spotted-admin-card:hover::before {
    opacity: 1;
  }
}

.spotted-admin-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.spotted-admin-card__meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.spotted-admin-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-violet);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.spotted-admin-card__date {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.spotted-admin-card__user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.spotted-admin-card__user i {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}

.spotted-admin-card__user svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--text-tertiary);
}

.spotted-admin-card__content {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  word-break: break-word;
}

.spotted-admin-card__stats {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
  padding: var(--space-3) 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.spotted-admin-card__stats span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.spotted-admin-card__stats i {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}

.spotted-admin-card__stats svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--text-tertiary);
}

.spotted-admin-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.spotted-admin-card__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.spotted-admin-card__actions .btn {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* Status Indicator - Modern Badge Style */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.status-indicator--approved {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator--rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-indicator--flagged {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--text-secondary);
}

.empty-state__text {
  font-size: var(--font-size-sm);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Buttons Override for Dashboard */
.btn--approve {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
  font-weight: var(--font-weight-semibold);
}

.btn--approve:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn--approve:active:not(:disabled) {
  transform: scale(0.98);
}

.btn--reject {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid var(--color-error);
  font-weight: var(--font-weight-semibold);
}

.btn--reject:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.btn--reject:active:not(:disabled) {
  transform: scale(0.98);
}

.btn--neutral {
  background: rgba(31, 41, 55, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  font-weight: var(--font-weight-semibold);
}

.btn--neutral:hover:not(:disabled) {
  background: rgba(31, 41, 55, 0.1);
  border-color: var(--border-strong);
}

.btn--neutral:active:not(:disabled) {
  transform: scale(0.98);
}

/* Spotted Card Stats for Dashboard */
.spotted-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}

.spotted-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.spotted-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
}

.spotted-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-semibold);
}

.spotted-card__author i {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}

.spotted-card__date {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.spotted-card__meta {
  margin-bottom: var(--space-3);
}

.spotted-card__tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-violet);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border: 1.5px solid var(--color-violet);
}

.spotted-card__content {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  word-break: break-word;
}

.spotted-card__stats {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  margin: var(--space-4) 0;
}

.spotted-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.spotted-card__stats i {
  width: 16px;
  height: 16px;
}

/* Admin Actions for Spotted Cards */
.spotted-card__actions--admin {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.spotted-card__actions--admin .btn {
  flex: 1;
}

.spotted-card__status {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

/* Segnalazioni in Spotted Card */
.spotted-card__reports {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.reports-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.report-reason {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.report-reason i {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-warning, #f59e0b);
}

/* Activity Logs Modal */
.activity-logs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.log-entry {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.log-entry:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.log-entry__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  gap: var(--space-3);
}

.log-entry__header strong {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-mono, 'Monaco', 'Courier New', monospace);
  font-size: var(--font-size-xs);
  word-break: break-all;
}

.log-entry__time {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.log-entry__action {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-1);
}

.log-entry__spot {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono, 'Monaco', 'Courier New', monospace);
  margin-bottom: var(--space-1);
}

.log-entry__details {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-light);
}
