/* Admin Dashboard Styles - BEM Methodology */

.admin-dashboard {
  padding: 2rem 0;
}

.admin-dashboard__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 2rem;
}

/* Stats Grid */
.admin-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.admin-dashboard__stat {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.admin-dashboard__stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-dashboard__stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #764ba2;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.admin-dashboard__stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Sections */
.admin-dashboard__section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.admin-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-dashboard__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.admin-dashboard__link {
  color: #764ba2;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.admin-dashboard__link:hover {
  color: #667eea;
  text-decoration: underline;
}

/* Table */
.admin-dashboard__table {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}

.admin-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.admin-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.admin-badge--admin {
  background: #fef3c7;
  color: #92400e;
}

.admin-badge--deleted {
  background: #fee2e2;
  color: #991b1b;
}

.admin-badge--android {
  background: #dcfce7;
  color: #166534;
}

.admin-badge--ios {
  background: #e0e7ff;
  color: #3730a3;
}

.admin-badge--queued {
  background: #fef3c7;
  color: #92400e;
}

.admin-badge--running {
  background: #dbeafe;
  color: #1e40af;
}

.admin-badge--succeeded {
  background: #dcfce7;
  color: #166534;
}

.admin-badge--failed {
  background: #fee2e2;
  color: #991b1b;
}

/* Actions */
.admin-dashboard__action {
  color: #764ba2;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border: 1px solid #764ba2;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.2s ease;
}

.admin-dashboard__action:hover {
  background: #764ba2;
  color: white;
  text-decoration: none;
}

/* Empty State */
.admin-dashboard__empty {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
  font-style: italic;
}

/* Quick Actions */
.admin-dashboard__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-dashboard__button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-dashboard__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

/* Invite Codes Page */
.admin-invite-codes {
  padding: 2rem 0;
}

.admin-invite-codes__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 2rem;
}

.admin-invite-codes__form {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.admin-invite-codes__form-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem;
}

.admin-invite-codes__input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.admin-invite-codes__input:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.admin-invite-codes__submit {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-invite-codes__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-invite-codes__list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.admin-invite-codes__list-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-dashboard__stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .admin-dashboard__stat-number {
    font-size: 2rem;
  }

  .admin-table {
    font-size: 0.813rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem;
  }

  .admin-dashboard__actions {
    flex-direction: column;
  }

  .admin-dashboard__button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .admin-dashboard__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .admin-dashboard__stats {
    grid-template-columns: 1fr;
  }
}