/* PopQuizAfrica Admin Panel Styles */

/* Container & Layout */
.admin-container { 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 20px; 
}

.admin-header { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  color: white; 
  padding: 30px; 
  border-radius: 16px; 
  margin-bottom: 30px; 
}

.admin-header.tournament {
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
}

.admin-header.security {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.admin-header.settings {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.admin-title { 
  font-size: 32px; 
  font-weight: 800; 
  margin: 0 0 8px 0; 
}

.admin-subtitle { 
  font-size: 16px; 
  opacity: 0.9; 
}

.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}

.admin-back:hover {
  color: white;
}

/* Cards & Grid */
.admin-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 20px; 
  margin-bottom: 30px; 
}

.admin-card { 
  background: white; 
  border: 1px solid rgba(11,16,32,0.1); 
  border-radius: 16px; 
  padding: 24px; 
  box-shadow: 0 2px 8px rgba(11,16,32,0.04); 
  transition: all 0.2s; 
}

.admin-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(11,16,32,0.1); 
}

.admin-card-title { 
  font-size: 20px; 
  font-weight: 700; 
  margin: 0 0 8px 0; 
  color: #667eea; 
}

.admin-card-desc { 
  font-size: 14px; 
  color: rgba(11,16,32,0.7); 
  margin: 0 0 16px 0; 
}

.admin-card-link { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  color: #667eea; 
  font-weight: 600; 
  text-decoration: none; 
  font-size: 14px; 
}

.admin-card-link:hover { 
  text-decoration: underline; 
}

/* Stats */
.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card { 
  background: white; 
  border: 1px solid rgba(11,16,32,0.1); 
  border-radius: 12px; 
  padding: 20px; 
}

.stat-value { 
  font-size: 32px; 
  font-weight: 800; 
  color: #667eea; 
  margin: 0; 
}

.stat-label { 
  font-size: 13px; 
  color: rgba(11,16,32,0.6); 
  margin: 4px 0 0 0; 
  font-weight: 600; 
}

/* Tables */
.table-controls { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 20px; 
  gap: 16px; 
  flex-wrap: wrap; 
}

.search-box {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 250px;
}

.search-input { 
  flex: 1; 
  padding: 12px 16px; 
  border: 1px solid rgba(11,16,32,0.2); 
  border-radius: 8px; 
  font-size: 14px; 
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.filter-select {
  padding: 12px 16px;
  border: 1px solid rgba(11,16,32,0.2);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  min-width: 150px;
}

.table-info { 
  font-size: 14px; 
  color: rgba(11,16,32,0.6); 
  font-weight: 600; 
}

.table-container { 
  background: white; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 2px 8px rgba(11,16,32,0.08); 
  overflow-x: auto;
}

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

.admin-table thead { 
  background: #f8f9fa; 
}

.admin-table th { 
  padding: 16px; 
  text-align: left; 
  font-weight: 700; 
  font-size: 12px; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  color: rgba(11,16,32,0.7); 
  border-bottom: 2px solid rgba(11,16,32,0.1); 
  white-space: nowrap;
}

.admin-table td { 
  padding: 16px; 
  border-bottom: 1px solid rgba(11,16,32,0.08); 
  font-size: 14px; 
  vertical-align: middle;
}

.admin-table tbody tr:hover { 
  background: rgba(102,126,234,0.04); 
}

.admin-table tbody tr.selected {
  background: rgba(102,126,234,0.1);
}

/* Badges */
.badge { 
  display: inline-block; 
  padding: 4px 12px; 
  border-radius: 999px; 
  font-size: 12px; 
  font-weight: 700; 
  white-space: nowrap;
}

.badge-active, .badge-success, .badge-yes { 
  background: #d1fae5; 
  color: #065f46; 
}

.badge-inactive, .badge-blocked, .badge-no { 
  background: #fee2e2; 
  color: #991b1b; 
}

.badge-pending, .badge-warning { 
  background: #fef3c7; 
  color: #92400e; 
}

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

.badge-neutral {
  background: #f3f4f6;
  color: #6b7280;
}

.badge-live {
  background: #fef2f2;
  color: #dc2626;
  animation: pulse-badge 2s infinite;
}

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

/* Buttons */
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn { 
  padding: 8px 16px; 
  border: none; 
  border-radius: 8px; 
  font-size: 13px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.2s; 
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-btn-primary { 
  background: #667eea; 
  color: white; 
}

.action-btn-primary:hover:not(:disabled) { 
  background: #5568d3; 
}

.action-btn-success {
  background: #22c55e;
  color: white;
}

.action-btn-success:hover:not(:disabled) {
  background: #16a34a;
}

.action-btn-warning {
  background: #f59e0b;
  color: white;
}

.action-btn-warning:hover:not(:disabled) {
  background: #d97706;
}

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

.action-btn-danger:hover:not(:disabled) { 
  background: #dc2626; 
}

.action-btn-ghost {
  background: transparent;
  color: rgba(11,16,32,0.7);
  border: 1px solid rgba(11,16,32,0.2);
}

.action-btn-ghost:hover:not(:disabled) {
  background: rgba(11,16,32,0.05);
}

.action-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.action-btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: rgba(11,16,32,0.8);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(11,16,32,0.2);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

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

.form-hint {
  font-size: 12px;
  color: rgba(11,16,32,0.5);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}

/* Modal - Professional Design */
.modal { 
  position: fixed; 
  inset: 0; 
  z-index: 10000; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.active,
.modal[style*="flex"],
.modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(11,16,32,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content { 
  position: relative; 
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border-radius: 20px; 
  width: 100%; 
  max-width: 560px; 
  max-height: 90vh; 
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(11,16,32,0.08),
    0 4px 6px rgba(11,16,32,0.04),
    0 20px 50px rgba(11,16,32,0.15),
    0 40px 80px rgba(11,16,32,0.12);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content,
.modal:not([hidden]) .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content.small {
  max-width: 420px;
}

.modal-content.large {
  max-width: 800px;
}

.modal-content.xlarge {
  max-width: 1000px;
}

/* Modal Decorative Elements */
.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f59e0b 100%);
}

.modal-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102,126,234,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Modal Header */
.modal-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  padding: 24px 24px 0 24px;
  position: relative;
}

.modal-header-content {
  flex: 1;
  padding-right: 40px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
}

.modal-icon.success {
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(22,163,74,0.1) 100%);
}

.modal-icon.warning {
  background: linear-gradient(135deg, rgba(249,115,22,0.15) 0%, rgba(245,158,11,0.1) 100%);
}

.modal-icon.danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.15) 0%, rgba(220,38,38,0.1) 100%);
}

.modal-icon.info {
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(37,99,235,0.1) 100%);
}

.modal-title { 
  font-size: 22px; 
  font-weight: 800; 
  margin: 0;
  color: rgba(11,16,32,0.92);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.modal-subtitle {
  font-size: 14px;
  color: rgba(11,16,32,0.55);
  margin: 6px 0 0 0;
  font-weight: 500;
}

.modal-close { 
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(11,16,32,0.05);
  border: none; 
  font-size: 20px; 
  cursor: pointer; 
  color: rgba(11,16,32,0.5); 
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.modal-close:hover { 
  color: rgba(11,16,32,0.8);
  background: rgba(11,16,32,0.1);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* Modal Body */
.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(90vh - 200px);
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(11,16,32,0.05);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(11,16,32,0.2);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(11,16,32,0.3);
}

.modal-text {
  font-size: 15px;
  color: rgba(11,16,32,0.7);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11,16,32,0.1), transparent);
  margin: 20px 0;
}

/* Modal Form Elements */
.modal-form-group {
  margin-bottom: 20px;
}

.modal-form-group:last-child {
  margin-bottom: 0;
}

.modal-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(11,16,32,0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-form-input,
.modal-form-select,
.modal-form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(11,16,32,0.1);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.modal-form-input:focus,
.modal-form-select:focus,
.modal-form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

.modal-form-input::placeholder {
  color: rgba(11,16,32,0.35);
}

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

.modal-form-hint {
  font-size: 12px;
  color: rgba(11,16,32,0.5);
  margin-top: 6px;
}

.modal-form-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Modal Info Box */
.modal-info-box {
  background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.05) 100%);
  border: 1px solid rgba(102,126,234,0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.modal-info-box.success {
  background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, rgba(22,163,74,0.05) 100%);
  border-color: rgba(34,197,94,0.3);
}

.modal-info-box.warning {
  background: linear-gradient(135deg, rgba(249,115,22,0.08) 0%, rgba(245,158,11,0.05) 100%);
  border-color: rgba(249,115,22,0.3);
}

.modal-info-box.danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(220,38,38,0.05) 100%);
  border-color: rgba(239,68,68,0.3);
}

.modal-info-title {
  font-weight: 700;
  font-size: 14px;
  color: rgba(11,16,32,0.85);
  margin: 0 0 4px 0;
}

.modal-info-text {
  font-size: 13px;
  color: rgba(11,16,32,0.65);
  margin: 0;
  line-height: 1.5;
}

/* Modal Table */
.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.modal-table th,
.modal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(11,16,32,0.08);
}

.modal-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(11,16,32,0.55);
  background: rgba(11,16,32,0.03);
}

.modal-table td {
  font-size: 14px;
  color: rgba(11,16,32,0.8);
}

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

.modal-table tr:hover td {
  background: rgba(102,126,234,0.04);
}

/* Modal Footer / Actions */
.modal-footer {
  padding: 16px 24px 24px 24px;
  background: rgba(11,16,32,0.02);
  border-top: 1px solid rgba(11,16,32,0.08);
}

.modal-actions { 
  display: flex; 
  gap: 12px; 
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-actions.centered {
  justify-content: center;
}

.modal-actions.spread {
  justify-content: space-between;
}

/* Modal Buttons */
.modal-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  min-width: 100px;
}

.modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(102,126,234,0.4);
}

.modal-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
  box-shadow: 0 6px 20px rgba(102,126,234,0.5);
  transform: translateY(-1px);
}

.modal-btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(34,197,94,0.4);
}

.modal-btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 6px 20px rgba(34,197,94,0.5);
  transform: translateY(-1px);
}

.modal-btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}

.modal-btn-warning:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
  transform: translateY(-1px);
}

.modal-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239,68,68,0.4);
}

.modal-btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 20px rgba(239,68,68,0.5);
  transform: translateY(-1px);
}

.modal-btn-ghost {
  background: transparent;
  color: rgba(11,16,32,0.7);
  border: 2px solid rgba(11,16,32,0.15);
  box-shadow: none;
}

.modal-btn-ghost:hover:not(:disabled) {
  background: rgba(11,16,32,0.05);
  border-color: rgba(11,16,32,0.25);
}

.modal-btn-link {
  background: transparent;
  color: #667eea;
  border: none;
  box-shadow: none;
  padding: 12px 16px;
}

.modal-btn-link:hover:not(:disabled) {
  color: #5a67d8;
  text-decoration: underline;
}

/* Modal Loading State */
.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.modal-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(102,126,234,0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: modal-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

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

.modal-loading-text {
  font-size: 15px;
  color: rgba(11,16,32,0.6);
  font-weight: 600;
}

/* Modal Success Animation */
.modal-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: modal-success-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

@keyframes modal-success-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Confirmation Modal Specific */
.modal-confirm-content {
  text-align: center;
  padding: 20px 0;
}

.modal-confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  background: rgba(249,115,22,0.1);
}

.modal-confirm-icon.danger {
  background: rgba(239,68,68,0.1);
}

.modal-confirm-title {
  font-size: 20px;
  font-weight: 800;
  color: rgba(11,16,32,0.9);
  margin: 0 0 12px 0;
}

.modal-confirm-text {
  font-size: 15px;
  color: rgba(11,16,32,0.65);
  margin: 0;
  line-height: 1.6;
}

/* Detail/View Modal */
.modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11,16,32,0.08);
}

.modal-detail-row:last-child {
  border-bottom: none;
}

.modal-detail-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(11,16,32,0.55);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modal-detail-value {
  font-size: 15px;
  font-weight: 600;
  color: rgba(11,16,32,0.85);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Modal Responsive */
@media (max-width: 640px) {
  .modal {
    padding: 12px;
  }
  
  .modal-content {
    border-radius: 16px;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px 20px 0 20px;
  }
  
  .modal-body {
    padding: 16px 20px;
  }
  
  .modal-footer {
    padding: 16px 20px 20px 20px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-btn {
    width: 100%;
  }
  
  .modal-form-row {
    grid-template-columns: 1fr;
  }
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-info {
  background: rgba(102,126,234,0.1);
  border: 1px solid rgba(102,126,234,0.3);
  color: #4338ca;
}

.alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #166534;
}

.alert-warning {
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.3);
  color: #9a3412;
}

.alert-danger {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #991b1b;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(11,16,32,0.5);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(11,16,32,0.7);
  margin: 0 0 8px 0;
}

.empty-state-desc {
  font-size: 14px;
  margin: 0 0 20px 0;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.admin-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(11,16,32,0.6);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.admin-tab:hover {
  color: rgba(11,16,32,0.8);
}

.admin-tab.active {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Settings Card */
.settings-card {
  background: white;
  border: 1px solid rgba(11,16,32,0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.settings-card-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(11,16,32,0.9);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(11,16,32,0.08);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-info {
  flex: 1;
}

.settings-name {
  font-weight: 600;
  color: rgba(11,16,32,0.85);
  margin-bottom: 4px;
}

.settings-desc {
  font-size: 13px;
  color: rgba(11,16,32,0.55);
}

.settings-value {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-input {
  width: 150px;
  padding: 10px 14px;
  border: 1px solid rgba(11,16,32,0.2);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  text-align: right;
}

/* Leaderboard */
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid rgba(11,16,32,0.1);
  border-radius: 12px;
  margin-bottom: 12px;
}

.leaderboard-row.winner {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.05));
}

.leaderboard-rank {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  background: #f3f4f6;
  color: rgba(11,16,32,0.6);
}

.leaderboard-rank.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.leaderboard-rank.silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: white;
}

.leaderboard-rank.bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
}

.leaderboard-info {
  flex: 1;
}

.leaderboard-name {
  font-weight: 700;
  color: rgba(11,16,32,0.9);
}

.leaderboard-email {
  font-size: 13px;
  color: rgba(11,16,32,0.5);
}

.leaderboard-score {
  font-size: 24px;
  font-weight: 800;
  color: #667eea;
}

.leaderboard-actions {
  display: flex;
  gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-container {
    padding: 12px;
  }

  .admin-header {
    padding: 20px;
  }

  .admin-title {
    font-size: 24px;
  }

  .admin-table { 
    font-size: 12px; 
  }

  .admin-table th, 
  .admin-table td { 
    padding: 12px 8px; 
  }

  .table-controls { 
    flex-direction: column; 
    align-items: stretch; 
  }

  .search-box {
    flex-direction: column;
  }

  .search-input,
  .filter-select { 
    width: 100%; 
  }

  .modal-content {
    padding: 20px;
  }

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .settings-value {
    width: 100%;
  }

  .settings-input {
    width: 100%;
    text-align: left;
  }

  .leaderboard-row {
    flex-wrap: wrap;
  }

  .leaderboard-score {
    font-size: 20px;
  }
}
