/* Admin Tables Styling */
.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-title { font-size: 32px; font-weight: 800; margin: 0 0 8px 0; }
.admin-subtitle { font-size: 16px; opacity: 0.9; }

.table-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.search-input { flex: 1; min-width: 250px; padding: 12px 16px; border: 1px solid rgba(11,16,32,0.2); border-radius: 8px; font-size: 14px; }
.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); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: #f8f9fa; }
.admin-table th { padding: 16px; text-align: left; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(11,16,32,0.7); border-bottom: 2px solid rgba(11,16,32,0.1); }
.admin-table td { padding: 16px; border-bottom: 1px solid rgba(11,16,32,0.08); font-size: 14px; }
.admin-table tbody tr:hover { background: rgba(102,126,234,0.04); }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-blocked { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-yes { background: #dbeafe; color: #1e40af; }
.badge-no { background: #f3f4f6; color: #6b7280; }

/* Question difficulty badges */
.badge-easy { background: #d1fae5; color: #065f46; }
.badge-very_difficult { background: #fee2e2; color: #991b1b; }

.action-btn { padding: 6px 12px; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.action-btn-primary { background: #667eea; color: white; }
.action-btn-primary:hover { background: #5568d3; }
.action-btn-danger { background: #ef4444; color: white; margin-left: 8px; }
.action-btn-danger:hover { background: #dc2626; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: white; border-radius: 16px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-title { font-size: 24px; font-weight: 700; margin: 0; }
.modal-close { background: none; border: none; font-size: 32px; cursor: pointer; color: rgba(11,16,32,0.5); line-height: 1; }
.modal-close:hover { color: rgba(11,16,32,0.8); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

@media (max-width: 768px) {
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 12px 8px; }
  .table-controls { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
}
