/* =============================================
   ADMIN PANEL STYLES
   ============================================= */

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color, #e5e7eb);
  flex-wrap: wrap;
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-tab-btn:hover {
  color: var(--primary-color, #667eea);
  background: rgba(102, 126, 234, 0.05);
}

.admin-tab-btn.active {
  color: var(--primary-color, #667eea);
  border-bottom-color: var(--primary-color, #667eea);
  font-weight: 600;
}

.admin-tab-btn i {
  font-size: 1.1rem;
}

.admin-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-tab-content.active {
  display: block;
}

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

.admin-stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.admin-stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  flex-shrink: 0;
}

.admin-stat-card .stat-info {
  flex: 1;
}

.admin-stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
  margin-bottom: 0.25rem;
}

.admin-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #1f2937);
}

/* Admin Section Title */
.admin-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-section-title h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary, #1f2937);
}

/* Admin Payments List */
.admin-payments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* New Compact Payment Item */
.payment-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border-left: 3px solid transparent;
}

.payment-item.pending {
  border-left-color: #f59e0b;
}

.payment-item.paid {
  border-left-color: #10b981;
}

.payment-item.rejected {
  border-left-color: #ef4444;
}

.payment-item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.payment-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.payment-item-info {
  flex: 1;
  min-width: 0;
}

.payment-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.payment-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #f3f4f6;
  color: var(--text-secondary, #6b7280);
}

.payment-type-badge i {
  font-size: 0.65rem;
}

.payment-time {
  font-size: 0.75rem;
  color: var(--text-secondary, #9ca3af);
}

.payment-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.payment-item-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color, #667eea);
}

.payment-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

.payment-status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.payment-status-pill.paid {
  background: #d1fae5;
  color: #065f46;
}

.payment-status-pill.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.payment-item-notes {
  padding: 0.5rem 1rem;
  padding-left: calc(1rem + 36px + 0.75rem);
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

.payment-item-notes i {
  margin-right: 0.35rem;
  color: #9ca3af;
}

.payment-item-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  padding-left: calc(1rem + 36px + 0.75rem);
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

.btn-action-confirm,
.btn-action-reject {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-confirm {
  background: #10b981;
  color: white;
}

.btn-action-confirm:hover {
  background: #059669;
}

.btn-action-reject {
  background: #ef4444;
  color: white;
}

.btn-action-reject:hover {
  background: #dc2626;
}

/* Mobile - Payment Items */
@media (max-width: 768px) {
  .admin-payments-list {
    margin: 0 -0.5rem;
  }

  .payment-item {
    border-radius: 0;
    border-left-width: 3px;
  }

  .payment-item-main {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
  }

  .payment-item-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .payment-item-name {
    font-size: 0.85rem;
  }

  .payment-item-amount {
    font-size: 0.9rem;
  }

  .payment-item-actions {
    padding: 0.5rem 0.75rem;
    padding-left: calc(0.75rem + 32px + 0.6rem);
  }

  .btn-action-confirm span,
  .btn-action-reject span {
    display: none;
  }

  .btn-action-confirm,
  .btn-action-reject {
    padding: 0.5rem 1rem;
  }

  .payment-item-notes {
    padding: 0.4rem 0.75rem;
    padding-left: calc(0.75rem + 32px + 0.6rem);
    font-size: 0.75rem;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary, #6b7280);
}

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

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

/* Loading Message */
.loading-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary, #6b7280);
  font-size: 1rem;
}

/* Settings Form */
.settings-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 600px;
}

.settings-form h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-primary, #1f2937);
}

.settings-form .form-group {
  margin-bottom: 1.5rem;
}

.settings-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #1f2937);
}

.settings-form label i {
  color: var(--primary-color, #667eea);
}

.settings-form input[type="number"],
.settings-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.settings-form input[type="number"]:focus,
.settings-form textarea:focus {
  outline: none;
  border-color: var(--primary-color, #667eea);
}

.settings-form textarea {
  resize: vertical;
  min-height: 100px;
}

.settings-form small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.input-group input {
  flex: 1;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.input-prefix,
.input-suffix {
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border: 2px solid var(--border-color, #e5e7eb);
  font-weight: 600;
  color: var(--text-secondary, #6b7280);
}

.input-prefix {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.input-suffix {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

/* Search Box */
.search-box {
  position: relative;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color, #667eea);
}

.search-box i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary, #6b7280);
}

/* Admin Users List */
.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-user-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary, #1f2937);
  margin-bottom: 0.25rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

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

.user-badge.active {
  background: #d1fae5;
  color: #065f46;
}

/* Toggle Switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: #d1d5db;
  border-radius: 13px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
  background: var(--primary-color, #006847);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
  transform: translateX(22px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .admin-tabs {
    overflow-x: auto;
    gap: 0;
    padding-bottom: 0;
  }

  .admin-tab-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .admin-tab-btn i {
    font-size: 0.9rem;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .admin-stat-card {
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .admin-stat-card .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .admin-stat-card .stat-label {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .admin-stat-card .stat-value {
    font-size: 1.1rem;
  }

  .admin-section-title {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

  .admin-section-title h3 {
    font-size: 1rem;
  }

  .admin-section-title .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .search-box {
    max-width: 100%;
  }

  .settings-form {
    padding: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Confirm/Reject Buttons */
.btn-confirm {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-reject {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-reject:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-view {
  background: white;
  color: var(--primary-color, #667eea);
  border: 2px solid var(--primary-color, #667eea);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-view:hover {
  background: var(--primary-color, #667eea);
  color: white;
}

/* =============================================
   SETTINGS SUB-TABS
   ============================================= */

.admin-subtabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 10px;
  flex-wrap: wrap;
}

.admin-subtab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-subtab-btn:hover {
  color: var(--primary-color, #667eea);
  background: rgba(255, 255, 255, 0.5);
}

.admin-subtab-btn.active {
  color: var(--primary-color, #667eea);
  background: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-subtab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.settings-subtab-content.active {
  display: block;
}

/* Settings Info Box */
.settings-info-box {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #eff6ff;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color, #667eea);
  margin: 1.5rem 0;
}

.settings-info-box i {
  color: var(--primary-color, #667eea);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.settings-info-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #1f2937);
}

.settings-info-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.5;
}

/* =============================================
   WEEKS MANAGEMENT
   ============================================= */

.admin-active-week-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem;
  border-radius: 12px;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.active-week-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.active-week-header i {
  font-size: 1.25rem;
}

.active-week-info {
  font-size: 1.5rem;
  font-weight: 700;
}

.active-week-info .week-dates {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* Tournament Selector */
.admin-tournament-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.admin-tournament-selector label {
  font-weight: 600;
  color: var(--text-primary, #1f2937);
}

.admin-tournament-selector select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  min-width: 200px;
}

.admin-tournament-selector select:focus {
  outline: none;
  border-color: var(--primary-color, #667eea);
}

/* Weeks List */
.admin-weeks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-week-card {
  background: white;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.admin-week-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-week-card.active {
  border-color: var(--primary-color, #667eea);
  background: #f5f7ff;
}

.week-number {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-secondary, #6b7280);
  flex-shrink: 0;
}

.admin-week-card.active .week-number {
  background: var(--primary-color, #667eea);
  color: white;
}

.week-info {
  flex: 1;
}

.week-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary, #1f2937);
  margin-bottom: 0.25rem;
}

.week-dates {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
}

.week-stats {
  display: flex;
  gap: 1rem;
  margin-right: 1rem;
}

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

.week-stat-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary, #1f2937);
}

.week-stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary, #6b7280);
  text-transform: uppercase;
}

.week-status {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.week-status.loaded {
  background: #d1fae5;
  color: #065f46;
}

.week-status.not-loaded {
  background: #fee2e2;
  color: #991b1b;
}

.week-status.active-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.week-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-activate {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-activate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-activate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-load {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-load:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Input text styles for settings */
.settings-form input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.settings-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color, #667eea);
}

/* Week Date Inputs */
.week-dates-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.week-date-input {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  font-size: 0.85rem;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.week-date-input:focus {
  outline: none;
  border-color: var(--primary-color, #667eea);
  background: white;
}

.week-date-input:hover {
  border-color: var(--primary-color, #667eea);
}

.week-notes {
  font-size: 0.75rem;
  color: var(--text-secondary, #6b7280);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Admin Weeks Instructions */
.admin-weeks-instructions {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #eff6ff;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color, #667eea);
  margin-bottom: 1.5rem;
}

.admin-weeks-instructions i {
  color: var(--primary-color, #667eea);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.admin-weeks-instructions strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #1f2937);
}

.admin-weeks-instructions p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
}

/* Responsive for weeks */
@media (max-width: 768px) {
  .admin-subtabs {
    justify-content: center;
  }

  .admin-subtab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .admin-week-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .week-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .week-stats {
    width: 100%;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-right: 0;
  }

  .week-actions {
    width: 100%;
  }

  .week-actions .btn-activate,
  .week-actions .btn-load {
    flex: 1;
  }

  .admin-tournament-selector {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-tournament-selector select {
    width: 100%;
  }

  .week-dates-edit {
    flex-wrap: wrap;
  }

  .week-date-input {
    flex: 1;
    min-width: 120px;
  }

  .admin-weeks-instructions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* =============================================
   ADMIN USERS TABLE
   ============================================= */

.users-table-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  position: relative;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

.users-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.users-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary, #6b7280);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.users-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

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

.users-table tbody tr.inactive-row {
  opacity: 0.6;
  background: #fef2f2;
}

/* Sticky actions column */
.users-table th:last-child,
.users-table td:last-child {
  position: sticky;
  right: 0;
  background: white;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.users-table thead th:last-child {
  background: #f9fafb;
}

.users-table tbody tr:hover td:last-child {
  background: #f9fafb;
}

.users-table tbody tr.inactive-row td:last-child {
  background: #fef2f2;
}

/* User Cell */
.user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-cell-info {
  min-width: 0;
}

.user-cell-name {
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.user-cell-username {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
}

.badge-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
}

/* Contact Info */
.user-contact-info {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-contact-info i {
  width: 16px;
  margin-right: 0.35rem;
  color: var(--text-secondary, #9ca3af);
}

/* Payment Info */
.user-payment-info {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-payment-info i {
  width: 16px;
  margin-right: 0.35rem;
  color: var(--text-secondary, #9ca3af);
}

.clabe-text {
  font-family: monospace;
}

.text-muted {
  color: #d1d5db;
  font-style: italic;
}

/* Status Badges */
.user-status-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.status-badge.telegram {
  background: #d1fae5;
  color: #059669;
}

.status-badge.telegram.off {
  background: #f3f4f6;
  color: #9ca3af;
}

.status-badge.notif {
  background: #dbeafe;
  color: #2563eb;
}

.status-badge.notif.off {
  background: #f3f4f6;
  color: #9ca3af;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #dc2626;
}

/* Actions Dropdown */
.user-actions-dropdown {
  position: relative;
}

.btn-actions {
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #6b7280);
  transition: all 0.2s ease;
}

.btn-actions:hover {
  background: var(--primary-color, #667eea);
  color: white;
}

.user-actions-menu {
  position: fixed;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.user-actions-menu.show {
  opacity: 1;
  visibility: visible;
}

.user-actions-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary, #374151);
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.user-actions-menu button:first-child {
  border-radius: 10px 10px 0 0;
}

.user-actions-menu button:last-child {
  border-radius: 0 0 10px 10px;
}

.user-actions-menu button:hover {
  background: #f3f4f6;
}

.user-actions-menu button i {
  width: 16px;
  color: var(--text-secondary, #6b7280);
}

.user-actions-menu button.danger {
  color: #dc2626;
}

.user-actions-menu button.danger i {
  color: #dc2626;
}

.user-actions-menu button.danger:hover {
  background: #fef2f2;
}

.menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.25rem 0;
}

/* Mobile Responsive - Users Table */
@media (max-width: 768px) {
  .users-table-wrapper {
    margin: 0 -1rem;
    border-radius: 0;
  }

  .users-table {
    font-size: 0.8rem;
  }

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

  .users-table th:first-child,
  .users-table td:first-child {
    padding-left: 0.75rem;
  }

  .user-avatar-small {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .user-cell-name {
    font-size: 0.85rem;
  }

  .user-cell-username {
    font-size: 0.7rem;
  }

  .user-contact-info,
  .user-payment-info {
    font-size: 0.75rem;
  }

  .user-contact-info div,
  .user-payment-info div {
    white-space: nowrap;
  }

  .status-badge {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .btn-actions {
    width: 32px;
    height: 32px;
  }

  .user-actions-menu {
    right: 0;
    min-width: 160px;
  }

  .user-actions-menu button {
    padding: 0.65rem 0.875rem;
    font-size: 0.8rem;
  }
}
