:root {
  --primary: #5d4fff;
  --primary-light: #8c7dff;
  --primary-dark: #4a3fc8;
  --secondary: #ff7c4d;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #2c2c34;
  --danger: #ff4d4d;
  --success: #47cd89;
  --warning: #ffb74d;
  --info: #4dc4ff;
  --border: #e6e6e6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* Theme variables */
body.light-theme {
  --text-primary: #333333;
  --text-secondary: #666666;
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9ecef;
  --border-color: #e6e6e6;
}

body.dark-theme {
  --text-primary: #f8f9fa;
  --text-secondary: #cccccc;
  --bg-primary: #2c2c34;
  --bg-secondary: #3a3a48;
  --bg-tertiary: #4a4a58;
  --border-color: #4a4a58;
}

body.blue-theme {
  --primary: #3f87f5;
  --primary-light: #73a6f8;
  --primary-dark: #2968c8;
  --secondary: #ff7c4d;
  --text-primary: #f8f9fa;
  --text-secondary: #cccccc;
  --bg-primary: #1a2c42;
  --bg-secondary: #253952;
  --bg-tertiary: #304969;
  --border-color: #304969;
}

body.purple-theme {
  --primary: #9075e3;
  --primary-light: #b49deb;
  --primary-dark: #7251d5;
  --secondary: #61dafb;
  --text-primary: #f8f9fa;
  --text-secondary: #cccccc;
  --bg-primary: #2b2040;
  --bg-secondary: #3b2b58;
  --bg-tertiary: #4d3a70;
  --border-color: #4d3a70;
}

body.green-theme {
  --primary: #2ecc71;
  --primary-light: #55d98d;
  --primary-dark: #27ae60;
  --secondary: #f1c40f;
  --text-primary: #f8f9fa;
  --text-secondary: #cccccc;
  --bg-primary: #1e3d2d;
  --bg-secondary: #2a5741;
  --bg-tertiary: #387055;
  --border-color: #387055;
}

body.contrast-theme {
  --primary: #ffff00;
  --primary-light: #ffffaa;
  --primary-dark: #cccc00;
  --secondary: #00ffff;
  --text-primary: #ffffff;
  --text-secondary: #dddddd;
  --bg-primary: #000000;
  --bg-secondary: #222222;
  --bg-tertiary: #333333;
  --border-color: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none; /* Make text non-highlightable by default */
}

.highlightable {
  user-select: text !important; /* Make specific elements highlightable */
}

#root {
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  gap: 8px;
  margin: 0 5px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #f06c3d;
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-light);
}

.btn-success {
  background-color: var(--success);
  color: var(--text-light);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 18px;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 16px;
  transition: var(--transition);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(93, 79, 255, 0.2);
  outline: none;
}

/* Custom file input */
.file-input-container {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

.file-input:hover + .file-input-label {
  border-color: var(--primary);
  color: var(--primary);
}

.file-input:focus + .file-input-label {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(93, 79, 255, 0.2);
}

.file-preview {
  margin-top: 12px;
  text-align: center;
}

/* Cards */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-light { color: var(--text-light); }

.bg-primary { background-color: var(--primary); }
.bg-white { background-color: var(--bg-secondary); }
.bg-light { background-color: var(--bg-primary); }
.bg-dark { background-color: var(--bg-dark); }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.ml-1 { margin-left: 8px; }
.ml-2 { margin-left: 16px; }
.ml-3 { margin-left: 24px; }
.ml-4 { margin-left: 32px; }
.ml-5 { margin-left: 48px; }

.mr-1 { margin-right: 8px; }
.mr-2 { margin-right: 16px; }
.mr-3 { margin-right: 24px; }
.mr-4 { margin-right: 32px; }
.mr-5 { margin-right: 48px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 48px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 8px 12px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  margin: 0 10px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

/* Quiz Card enhancements */
.quiz-type-card {
  flex: 1;
  min-width: 200px;
  padding: 24px;
  border-radius: var(--radius);
  background-color: var(--bg-secondary);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  margin: 10px;
  border: 1px solid var(--border-color);
}

.quiz-type-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

/* Auth view improvements */
.auth-container {
  max-width: 450px;
  margin: 60px auto;
  padding: 0 20px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    padding: 12px 0;
  }
  
  .navbar-nav {
    gap: 16px;
  }
  
  .quiz-types {
    flex-direction: column;
  }
  
  .quiz-type-card {
    margin-bottom: 20px;
  }
}

/* Quiz */
.quiz-option {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-secondary);
}

.quiz-option:hover {
  border-color: var(--primary);
  background-color: rgba(93, 79, 255, 0.05);
}

.quiz-option.selected {
  border-color: var(--primary);
  background-color: rgba(93, 79, 255, 0.1);
}

.quiz-option.correct {
  border-color: var(--success);
  background-color: rgba(71, 205, 137, 0.1);
}

.quiz-option.incorrect {
  border-color: var(--danger);
  background-color: rgba(255, 77, 77, 0.1);
}

/* Question types */
.question-type-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.question-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  width: 120px;
  background-color: var(--bg-secondary);
}

.question-type:hover {
  border-color: var(--primary);
  background-color: rgba(93, 79, 255, 0.05);
}

.question-type.selected {
  border-color: var(--primary);
  background-color: rgba(93, 79, 255, 0.1);
}

/* Question type icons */
.question-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 8px;
  background-color: rgba(93, 79, 255, 0.1);
  color: var(--primary);
}

/* Delete quiz confirmation modal */
.delete-confirmation {
  background-color: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius);
  max-width: 450px;
  text-align: center;
}

.delete-confirmation .material-icons {
  font-size: 64px;
  color: var(--danger);
  margin-bottom: 16px;
}

/* Loading */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(93, 79, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

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

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background-color: rgba(93, 79, 255, 0.1);
  color: var(--primary);
}

.tag-secondary {
  background-color: rgba(255, 124, 77, 0.1);
  color: var(--secondary);
}

/* Layout for main app sections */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  padding: 24px 0;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  margin-bottom: 8px;
}

.sidebar-nav-item:hover {
  background-color: rgba(93, 79, 255, 0.05);
  color: var(--primary);
}

.sidebar-nav-item.active {
  background-color: rgba(93, 79, 255, 0.1);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.sidebar-nav-item .material-icons {
  margin-right: 12px;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 24px;
  transition: margin-left 0.3s ease;
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-toggle {
    display: flex !important;
  }
}

.sidebar-toggle {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 110;
  background-color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Quiz like/dislike buttons */
.quiz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.like-button, .dislike-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.like-button:hover, .dislike-button:hover {
  background-color: rgba(93, 79, 255, 0.1);
}

.like-button.active {
  background-color: rgba(71, 205, 137, 0.1);
  color: var(--success);
  border-color: var(--success);
}

.dislike-button.active {
  background-color: rgba(255, 77, 77, 0.1);
  color: var(--danger);
  border-color: var(--danger);
}

/* Audio control */
.audio-manager {
  position: absolute;
  visibility: hidden;
  width: 0;
  height: 0;
}

/* Search input */
.search-input {
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 12px 16px;
  padding-left: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 16px;
  transition: var(--transition);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.search-input .material-icons {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(93, 79, 255, 0.2);
  outline: none;
}

/* Category pills */
.category-pills {
  gap: 8px;
}

.category-pill {
  padding: 6px 12px;
  border-radius: 100px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover {
  background-color: rgba(93, 79, 255, 0.1);
  color: var(--primary);
}

.category-pill.active {
  background-color: var(--primary);
  color: var(--text-light);
}

/* Quiz code input in navbar */
.quiz-code-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.quiz-code-input {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quiz-code-input input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 16px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.quiz-code-input button {
  padding: 12px 24px;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.quiz-code-input button:hover {
  background-color: var(--primary-dark);
}

/* Settings float button */
.float-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
}

.float-button:hover {
  transform: scale(1.1);
}

/* Settings panel */
.settings-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background-color: var(--bg-secondary);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow: hidden;
}

.settings-panel.open {
  right: 0;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.settings-content {
  height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 20px;
}

.settings-group {
  margin-bottom: 30px;
}

.settings-group h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  border-radius: 34px;
  transition: var(--transition);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition);
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.theme-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.theme-option.active {
  border-color: var(--primary);
  transform: scale(1.1);
}

.theme-light {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.theme-dark {
  background: linear-gradient(135deg, #2c2c34, #3a3a48);
}

.theme-blue {
  background: linear-gradient(135deg, #1a2c42, #304969);
}

.theme-purple {
  background: linear-gradient(135deg, #2b2040, #4d3a70);
}

.theme-green {
  background: linear-gradient(135deg, #1e3d2d, #387055);
}

.theme-contrast {
  background: linear-gradient(135deg, #000000, #333333);
  border: 2px solid #ffff00;
}

/* Quiz Types */
.quiz-types {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

/* Quick Join Container */
.quick-join-container {
  max-width: 600px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-join-input {
  flex-grow: 1;
  margin-right: 10px;
}

/* Modal related styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 250px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-hover);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease forwards;
  max-width: 100%;
}

.toast.closing {
  animation: slideOut 0.3s ease forwards;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-info {
  border-left: 4px solid var(--info);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Hide scrollbar but allow scrolling */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

/* Radio container for form radios */
.radio-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-label {
  font-weight: 500;
}

/* Timer display for quizzes */
.timer-display {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
}

.timer-display.warning {
  background-color: rgba(255, 183, 77, 0.2);
  color: var(--warning);
}

.timer-display.danger {
  background-color: rgba(255, 77, 77, 0.2);
  color: var(--danger);
}

/* Matching question type */
.matching-item {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
}

.matching-item-left, .matching-item-right {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
}

.matching-item-connector {
  width: 60px;
  text-align: center;
  font-size: 20px;
}

/* Drag & drop for sequence questions */
.sequence-item {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  cursor: grab;
  display: flex;
  align-items: center;
}

.sequence-item.dragging {
  opacity: 0.5;
  background-color: rgba(93, 79, 255, 0.1);
}

.sequence-item .material-icons {
  margin-right: 8px;
  color: var(--text-secondary);
}

/* Hotspot question */
.hotspot-container {
  position: relative;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hotspot-area {
  position: absolute;
  border: 2px dashed rgba(93, 79, 255, 0.5);
  background-color: rgba(93, 79, 255, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hotspot-area.selected {
  background-color: rgba(93, 79, 255, 0.3);
  border-color: var(--primary);
}

/* Multiple answer styles */
.checkbox-option {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-secondary);
}

.checkbox-option:hover {
  border-color: var(--primary);
  background-color: rgba(93, 79, 255, 0.05);
}

.checkbox-option.selected {
  border-color: var(--primary);
  background-color: rgba(93, 79, 255, 0.1);
}

/* Fill in the blank */
.fill-blank-container {
  margin-bottom: 16px;
}

.fill-blank-input {
  display: inline-block;
  width: 120px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  margin: 0 4px;
}

/* Ranking question */
.ranking-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.ranking-item .rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: bold;
}

.ranking-controls {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

/* Numeric question */
.numeric-input {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
}

.numeric-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .settings-panel {
    width: 100%;
    right: -100%;
  }
  
  .modal {
    width: 95%;
  }
  
  .float-button {
    bottom: 20px;
    right: 20px;
  }
  
  .toast-container {
    left: 20px;
    right: 20px;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}