/* 🧠 Neural Admin Panel - Redesigned Styles */

:root {
  --neural-bg: #0a0a0f;
  --neural-surface: #1a1a2e;
  --neural-card: #16213e;
  --neural-accent: #00f5ff;
  --neural-purple: #6c5ce7;
  --neural-pink: #fd79a8;
  --neural-green: #00b894;
  --neural-orange: #fdcb6e;
  --neural-text: #ffffff;
  --neural-text-muted: #a0a0a0;
  --neural-border: rgba(0, 245, 255, 0.2);
  --neural-glow: 0 0 20px rgba(0, 245, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--neural-bg);
  color: var(--neural-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 🎨 Admin Layout */
.admin-container {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--neural-bg) 0%, #0f0f23 100%);
}

/* 📱 Sidebar */
.admin-sidebar {
  width: 280px;
  background: var(--neural-surface);
  border-right: 1px solid var(--neural-border);
  padding: 2rem 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.admin-logo {
  display: flex;
  align-items: center;
  padding: 0 2rem 2rem;
  border-bottom: 1px solid var(--neural-border);
  margin-bottom: 2rem;
}

.admin-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--neural-accent), var(--neural-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.admin-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--neural-accent), var(--neural-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 🧭 Navigation */
.admin-nav {
  padding: 0 1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  color: var(--neural-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:hover {
  background: rgba(0, 245, 255, 0.1);
  color: var(--neural-accent);
  transform: translateX(5px);
}

.nav-item.active {
  background: linear-gradient(45deg, var(--neural-accent), var(--neural-purple));
  color: var(--neural-bg);
  box-shadow: var(--neural-glow);
}

.nav-item i {
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

/* 🎯 Main Content */
.admin-main {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  background: linear-gradient(135deg, var(--neural-bg) 0%, #0f0f23 100%);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neural-border);
}

.admin-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--neural-accent), var(--neural-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  background: var(--neural-card);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid var(--neural-border);
}

.user-avatar {
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, var(--neural-accent), var(--neural-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  font-weight: 700;
  color: var(--neural-bg);
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--neural-border);
  color: var(--neural-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(253, 121, 168, 0.1);
  border-color: var(--neural-pink);
  color: var(--neural-pink);
}

/* 📊 Dashboard Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--neural-card);
  border: 1px solid var(--neural-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neural-accent), var(--neural-purple));
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neural-text-muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.card-icon.users { background: linear-gradient(45deg, var(--neural-green), #00a085); }
.card-icon.games { background: linear-gradient(45deg, var(--neural-accent), #0099cc); }
.card-icon.economy { background: linear-gradient(45deg, var(--neural-orange), #e17055); }
.card-icon.system { background: linear-gradient(45deg, var(--neural-pink), #e84393); }

.card-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
  background: linear-gradient(45deg, var(--neural-accent), var(--neural-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-subtitle {
  color: var(--neural-text-muted);
  font-size: 0.9rem;
}

/* 📋 Content Sections */
.content-section {
  background: var(--neural-card);
  border: 1px solid var(--neural-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neural-border);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neural-text);
}

/* 🔘 Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--neural-accent), var(--neural-purple));
  color: var(--neural-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 245, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--neural-border);
  color: var(--neural-text);
}

.btn-secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--neural-accent);
  color: var(--neural-accent);
}

.btn-success {
  background: linear-gradient(45deg, var(--neural-green), #00a085);
  color: white;
}

.btn-warning {
  background: linear-gradient(45deg, var(--neural-orange), #e17055);
  color: white;
}

.btn-danger {
  background: linear-gradient(45deg, var(--neural-pink), #e84393);
  color: white;
}

/* 📊 Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--neural-border);
}

.data-table th {
  background: rgba(0, 245, 255, 0.1);
  color: var(--neural-accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.data-table tr:hover {
  background: rgba(0, 245, 255, 0.05);
}

/* 📝 Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--neural-text);
  font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--neural-surface);
  border: 1px solid var(--neural-border);
  border-radius: 8px;
  color: var(--neural-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--neural-accent);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

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

/* 🎯 Status Badges */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: rgba(0, 184, 148, 0.2);
  color: var(--neural-green);
  border: 1px solid var(--neural-green);
}

.status-inactive {
  background: rgba(253, 121, 168, 0.2);
  color: var(--neural-pink);
  border: 1px solid var(--neural-pink);
}

.status-pending {
  background: rgba(253, 203, 110, 0.2);
  color: var(--neural-orange);
  border: 1px solid var(--neural-orange);
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
    padding: 1rem;
  }
  
  .admin-title {
    font-size: 2rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dashboard-card {
    padding: 1.5rem;
  }
}

/* 🎨 Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--neural-text-muted);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--neural-border);
  border-top: 2px solid var(--neural-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 🚨 Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--neural-text-muted);
}

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

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--neural-text);
}

/* 🎯 Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 🔍 Search and Filters */
.search-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
}

.filter-select {
  min-width: 150px;
}

/* 📊 Progress Bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--neural-surface);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neural-accent), var(--neural-purple));
  transition: width 0.3s ease;
}

/* 🎨 Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neural-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--neural-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neural-purple);
}

/* Additional Section Styles */

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.room-card {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.room-card:hover {
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.room-title-section h4 {
    margin: 0 0 0.3rem 0;
    color: #00F5FF;
    font-size: 1.3rem;
    font-weight: 600;
}

.room-code {
    background: rgba(0, 245, 255, 0.1);
    color: #00F5FF;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: monospace;
}

.room-status-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.privacy-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.privacy-badge.private {
    background: rgba(255, 87, 87, 0.2);
    color: #ff5757;
}

.privacy-badge.public {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.room-main-info {
    margin-bottom: 1.5rem;
}

.room-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 8px;
}

.stat-item i {
    color: #00F5FF;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 600;
}

.room-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

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

.detail-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.detail-value {
    color: #e0e0e0;
    font-weight: 500;
    text-transform: capitalize;
}

.room-economy {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.economy-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 8px;
}

.economy-item i {
    color: #ffc107;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.economy-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    flex: 1;
}

.economy-value {
    color: #ffc107;
    font-weight: 600;
}

.room-tags {
    margin-bottom: 1rem;
}

.tags-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.room-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Status badges for rooms */
.status-waiting {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-playing {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-finished {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-registering {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-starting {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

/* Room Management Modals */
.details-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--neural-blue);
}

.checkmark {
    position: relative;
}

/* Room Details Modal Styling */
.details-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #e0e0e0;
    background: rgba(0, 245, 255, 0.05);
}

.tab-btn.active {
    color: var(--neural-blue);
    border-bottom-color: var(--neural-blue);
    background: rgba(0, 245, 255, 0.1);
}

.details-tab-content {
    display: none;
}

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

.room-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--neural-blue);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 50%;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-label {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 0.2rem;
}

.stat-info .stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
}

.room-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-section {
    background: rgba(15, 15, 25, 0.5);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.info-section h4 {
    color: var(--neural-blue);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.info-value {
    color: #e0e0e0;
    font-weight: 500;
}

/* Players Section */
.players-section, .questions-section {
    background: rgba(15, 15, 25, 0.5);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.section-header h4 {
    color: var(--neural-blue);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.players-count, .questions-count {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.player-item, .question-item {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-item:last-child, .question-item:last-child {
    margin-bottom: 0;
}

.question-order {
    background: var(--neural-blue);
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.player-info, .question-info {
    flex: 1;
}

.player-name, .question-text {
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.question-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.player-details, .question-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.player-score {
    color: #ffc107;
    font-weight: 500;
}

.question-category {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.question-difficulty {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

/* Settings Section */
.settings-section {
    background: rgba(15, 15, 25, 0.5);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.settings-section h4 {
    color: var(--neural-blue);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 6px;
}

.setting-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.setting-value {
    color: #e0e0e0;
    font-weight: 500;
}

.tags-section {
    margin-top: 1.5rem;
}

.tags-section h4 {
    color: var(--neural-blue);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Loading and Error States */
.loading-placeholder, .no-data, .error-message {
    text-align: center;
    padding: 2rem;
    color: #a0a0a0;
}

.loading-placeholder i {
    margin-right: 0.5rem;
    color: var(--neural-blue);
}

.no-data {
    color: #6b7280;
}

.error-message {
    color: #ef4444;
}

/* Question Assignment Styles */
.question-assignment-section {
    background: rgba(15, 15, 25, 0.5);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.question-assignment-section h4 {
    color: var(--neural-blue);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assignment-methods {
    margin-bottom: 1.5rem;
}

.method-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    margin-bottom: 1rem;
}

.method-tab {
    background: none;
    border: none;
    color: #a0a0a0;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-tab:hover {
    color: #e0e0e0;
    background: rgba(0, 245, 255, 0.05);
}

.method-tab.active {
    color: var(--neural-blue);
    border-bottom-color: var(--neural-blue);
    background: rgba(0, 245, 255, 0.1);
}

.method-content {
    display: none;
}

.method-content.active {
    display: block;
}

.question-filters {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.available-questions {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    background: rgba(15, 15, 25, 0.3);
}

.questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    background: rgba(0, 245, 255, 0.05);
}

.questions-header h5 {
    color: var(--neural-blue);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

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

.questions-list {
    padding: 0.5rem;
}

.question-item-available {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.question-item-available:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.3);
}

.question-checkbox {
    flex-shrink: 0;
}

.question-content {
    flex: 1;
}

.question-text {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.question-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #a0a0a0;
    flex-wrap: wrap;
}

.question-meta span {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(0, 245, 255, 0.1);
}

.question-actions .btn-small {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--neural-blue);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.question-actions .btn-small:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--neural-blue);
}

/* Manual Questions */
.manual-questions {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.manual-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.manual-question-header h5 {
    color: var(--neural-blue);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.manual-questions-list {
    max-height: 200px;
    overflow-y: auto;
}

.manual-question-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(15, 15, 25, 0.5);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 6px;
}

.manual-question-content {
    flex: 1;
}

.manual-question-text {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.manual-question-meta {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.manual-question-answer {
    color: #22c55e;
    font-weight: 500;
}

.manual-question-actions .btn-small {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.manual-question-actions .btn-small:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Auto Selection */
.auto-selection {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

/* Selected Questions Summary */
.selected-questions-summary {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.selected-questions-summary h5 {
    color: var(--neural-blue);
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-questions-list {
    max-height: 200px;
    overflow-y: auto;
}

.selected-question-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 6px;
}

.selected-question-order {
    background: var(--neural-blue);
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.selected-question-content {
    flex: 1;
}

.selected-question-text {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.selected-question-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.selected-question-source {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.selected-question-category {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.selected-question-actions {
    display: flex;
    gap: 0.3rem;
}

.selected-question-actions .btn-small {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--neural-blue);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-question-actions .btn-small:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--neural-blue);
}

.selected-question-actions .btn-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-question-actions .btn-small.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.selected-question-actions .btn-small.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.no-questions, .no-selected {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .details-modal .modal-content {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .room-info-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .details-tabs, .method-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn, .method-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .question-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .question-actions {
        flex-direction: column;
    }
    
    .selected-question-actions {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .selected-question-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .selected-question-actions {
        align-self: flex-end;
        flex-direction: row;
    }
}

/* Questions Section Styles */
.questions-filters {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    color: var(--neural-blue);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.questions-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.questions-stats .stat-item {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.questions-stats .stat-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.questions-stats .stat-value {
    color: var(--neural-blue);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Questions Table */
.questions-table {
    margin-top: 1.5rem;
    background: rgba(15, 15, 25, 0.8);
    border-radius: 12px;
    overflow: hidden;
}

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

.questions-table th {
    background: rgba(0, 245, 255, 0.1);
    color: var(--neural-blue);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.questions-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    vertical-align: top;
}

.questions-table tr:hover {
    background: rgba(0, 245, 255, 0.05);
}

.question-text {
    max-width: 300px;
}

.question-preview {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.question-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #a0a0a0;
    flex-wrap: wrap;
}

.question-type {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.question-tags {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.success-rate {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rate-value {
    color: var(--neural-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.rate-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
    transition: width 0.3s ease;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn-small {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--neural-blue);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn-small:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--neural-blue);
}

.action-buttons .btn-small.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.action-buttons .btn-small.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.pagination-btn {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--neural-blue);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--neural-blue);
}

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

.pagination-info {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-pending-validation {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-draft {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-style: italic;
}

.no-data i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* MCQ Options Styling */
.mcq-options-section {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.mcq-options-section h4 {
    color: var(--neural-blue);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mcq-options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mcq-option-item {
    position: relative;
}

.mcq-option-item.correct-option {
    border-left: 3px solid #22c55e;
    padding-left: 1rem;
}

.mcq-option-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.correct-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mcq-help {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    padding: 0.8rem;
    margin-top: 1rem;
    color: #93c5fd;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* AI Generation Styling */
.ai-generation-section {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.ai-generation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ai-generation-header h4 {
    color: #8b5cf6;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-buttons {
    display: flex;
    gap: 0.8rem;
}

.ai-buttons .admin-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.ai-generation-options {
    background: rgba(15, 15, 25, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    padding: 1rem;
}

.ai-advanced-options {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.ai-advanced-options h5 {
    color: #8b5cf6;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-advanced-options label {
    color: #e0e0e0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.ai-advanced-options input[type="checkbox"] {
    accent-color: #8b5cf6;
    transform: scale(1.1);
}

.ai-status {
    margin-top: 1rem;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #8b5cf6;
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
}

.ai-loading i {
    font-size: 1.1rem;
}

/* Bulk Generation Results */
.bulk-questions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bulk-question-item {
    background: rgba(15, 15, 25, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.bulk-question-item h4 {
    color: #8b5cf6;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.bulk-question-item p {
    color: #e0e0e0;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.bulk-question-item strong {
    color: #f0f0f0;
}

.bulk-question-item button {
    margin-top: 1rem;
}

/* Form Enhancements */
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--neural-blue);
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.2);
}

/* Responsive Design for MCQ Options */
@media (max-width: 768px) {
    .mcq-options-list {
        gap: 0.8rem;
    }
    
    .mcq-option-item.correct-option {
        padding-left: 0.8rem;
    }
    
    .correct-badge {
        position: static;
        display: inline-block;
        margin-top: 0.5rem;
    }
    
    .ai-generation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ai-generation-options {
        padding: 0.8rem;
    }
}

.questions-table th,
.questions-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.questions-table th {
    background: rgba(0, 245, 255, 0.1);
    color: #00F5FF;
    font-weight: 600;
}

.questions-table td {
    color: #e0e0e0;
}

.questions-table tr:hover {
    background: rgba(0, 245, 255, 0.05);
}

/* Economy Stats */
.economy-stats {
    margin-top: 1.5rem;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card h4 {
    margin: 0 0 1rem 0;
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #00F5FF;
}

.top-earners {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.top-earners h4 {
    margin: 0 0 1rem 0;
    color: #00F5FF;
}

.earners-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.earner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 8px;
}

.username {
    color: #e0e0e0;
    font-weight: 500;
}

.earned {
    color: #00F5FF;
    font-weight: bold;
}

/* Moderation Queue */
.moderation-queue {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.moderation-item {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.item-type {
    background: rgba(0, 245, 255, 0.2);
    color: #00F5FF;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.item-content {
    color: #e0e0e0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.item-actions {
    display: flex;
    gap: 0.8rem;
}

/* System Stats */
.system-stats {
    margin-top: 1.5rem;
}

.system-alerts {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.system-alerts h4 {
    margin: 0 0 1rem 0;
    color: #00F5FF;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 8px;
}

.alert-type {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.alert-info {
    background: rgba(0, 245, 255, 0.2);
    color: #00F5FF;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.alert-message {
    flex: 1;
    color: #e0e0e0;
}

.alert-time {
    color: #a0a0a0;
    font-size: 0.8rem;
}

/* Analytics Dashboard */
.analytics-dashboard {
    margin-top: 1.5rem;
}

.daily-stats {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.daily-stats h4 {
    margin: 0 0 1.5rem 0;
    color: #00F5FF;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    display: block;
    color: #a0a0a0;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    color: #00F5FF;
    font-size: 1.5rem;
    font-weight: bold;
}

.top-categories {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.top-categories h4 {
    margin: 0 0 1.5rem 0;
    color: #00F5FF;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 8px;
}

.category-name {
    color: #e0e0e0;
    font-weight: 500;
}

.category-stats {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: rgba(15, 15, 25, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.3);
}

.delete-modal {
    max-width: 450px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.modal-header h3 {
    margin: 0;
    color: #00F5FF;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #00F5FF;
    background: rgba(0, 245, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(25, 25, 35, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00F5FF;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.form-input::placeholder {
    color: #707070;
}

/* Roles Container */
.roles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.role-checkbox:hover {
    background: rgba(0, 245, 255, 0.05);
}

.role-checkbox input[type="checkbox"] {
    margin: 0;
    accent-color: #00F5FF;
}

.role-label {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Delete Warning Styles */
.delete-warning {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid rgba(255, 87, 87, 0.3);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.delete-warning i {
    font-size: 2rem;
    color: #ff5757;
    margin-bottom: 0.5rem;
}

.delete-warning h4 {
    margin: 0.5rem 0;
    color: #ff5757;
}

.delete-warning p {
    margin: 0.3rem 0;
    color: #e0e0e0;
}

.delete-warning-text {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.delete-warning-text p {
    margin: 0;
    color: #ffc107;
    font-weight: 500;
}

/* Button Loading States */
.admin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Question Checkboxes */
.question-checkbox {
  transform: scale(1.2);
  accent-color: var(--neural-accent);
}

/* Bulk Delete Button */
#bulkDeleteBtn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: 1px solid #e74c3c;
  transition: all 0.3s ease;
}

#bulkDeleteBtn:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
  transform: translateY(-2px);
}
