.page-content {
  display: block;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 95%;
  width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 20px);
}

.header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.back-home-btn {
  position: absolute;
  top: 20px;
  left: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-home-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced styling for better integration */
.back-home-btn {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.back-home-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 300;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.controls {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.general-notes-container {
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  padding: 15px 20px;
  position: relative;
}

.general-notes-container::before {
  content: "📋 General Quiz Notes";
  position: absolute;
  top: -10px;
  left: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.general-notes-textarea {
  width: 100%;
  height: 50px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #495057;
  background: #f8f9fa;
  resize: vertical;
  min-height: 40px;
  max-height: 500px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.general-notes-textarea:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.general-notes-textarea::placeholder {
  color: #6c757d;
  font-style: italic;
}

.general-notes-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.general-notes-copy-btn,
.general-notes-clear-btn,
.general-notes-lock-btn,
.general-notes-resize-btn,
.go-to-unfilled-btn,
.ai-prompt-generator-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  font-weight: 500;
}

.general-notes-copy-btn {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
}

.general-notes-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.general-notes-copy-btn.copied {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  animation: copySuccess 0.6s ease;
}

.general-notes-clear-btn {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(253, 121, 168, 0.3);
}

.general-notes-clear-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(253, 121, 168, 0.4);
}

.general-notes-clear-btn.cleared {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  animation: copySuccess 0.6s ease;
}

.general-notes-lock-btn {
  background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(255, 167, 38, 0.3);
}

.general-notes-lock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
}

.general-notes-lock-btn.locked {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.general-notes-lock-btn.locked:hover {
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.general-notes-textarea:disabled {
  background: #f1f1f1;
  color: #666;
  cursor: not-allowed;
  border-color: #ccc;
}

.general-notes-resize-btn {
  background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(0, 206, 201, 0.3);
}

.general-notes-resize-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 206, 201, 0.4);
}

.general-notes-resize-btn.reset {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  animation: copySuccess 0.6s ease;
}

.go-to-unfilled-btn {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(162, 155, 254, 0.3);
}

.go-to-unfilled-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(162, 155, 254, 0.4);
}

.go-to-unfilled-btn.found {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  animation: copySuccess 0.6s ease;
}

.go-to-unfilled-btn.all-filled {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  animation: copySuccess 0.6s ease;
}

.ai-prompt-generator-btn {
  background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
}

.ai-prompt-generator-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.search-container input:focus {
  border-color: #4facfe;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.search-refresh-btn,
.data-export-btn,
.data-import-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jump-to-question-input {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  width: 40px;
  height: 40px;
  text-align: center;
  outline: none;
}

.jump-to-question-input::-webkit-outer-spin-button,
.jump-to-question-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.jump-to-question-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.jump-to-question-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: bold;
}

.jump-to-question-input:focus {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}
.jump-to-question-input:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Individual Jump Input Styles for Question Containers */
.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.individual-jump-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.unfilled-navigation {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 3px;
}

.unfilled-nav-btn {
  background: linear-gradient(135deg, #00cec9 0%, #55efc4 100%);
  color: white;
  border: none;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 206, 201, 0.3);
  opacity: 0.8;
}

.unfilled-nav-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0, 206, 201, 0.5);
}

.unfilled-nav-btn:active {
  transform: scale(0.95);
}

.unfilled-nav-btn.prev-unfilled {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  box-shadow: 0 2px 6px rgba(108, 92, 231, 0.3);
}
.unfilled-nav-btn.prev-unfilled:hover {
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.5);
}

.bookmark-navigation-arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 3px;
}

.bookmark-nav-btn {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  border: none;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(253, 121, 168, 0.3);
  opacity: 0.8;
}

.bookmark-nav-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(253, 121, 168, 0.5);
}

.bookmark-nav-btn:active {
  transform: scale(0.95);
}

.bookmark-nav-btn.prev-bookmark {
  background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
  box-shadow: 0 2px 6px rgba(255, 118, 117, 0.3);
}

.bookmark-nav-btn.prev-bookmark:hover {
  box-shadow: 0 3px 10px rgba(255, 118, 117, 0.5);
}

/* Bulk Navigation Arrows (10 items) */
.bulk-navigation-arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 3px;
}

.bulk-nav-btn {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  color: white;
  border: none;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(253, 203, 110, 0.3);
  opacity: 0.8;
}

.bulk-nav-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(253, 203, 110, 0.5);
}

.bulk-nav-btn:active {
  transform: scale(0.95);
}

.bulk-nav-btn.bulk-nav-up {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
  box-shadow: 0 2px 6px rgba(85, 239, 196, 0.3);
}

.bulk-nav-btn.bulk-nav-up:hover {
  box-shadow: 0 3px 10px rgba(85, 239, 196, 0.5);
}

/* Bulk Navigation Arrows (20 items) */
.bulk-navigation-arrows-20 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 3px;
}

.bulk-nav-btn-20 {
  background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
  color: white;
  border: none;
  width: 28px;
  height: 20px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(232, 67, 147, 0.3);
  opacity: 0.8;
}

.bulk-nav-btn-20:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(232, 67, 147, 0.5);
}

.bulk-nav-btn-20:active {
  transform: scale(0.95);
}

.bulk-nav-btn-20.bulk-nav-up-20 {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  box-shadow: 0 2px 6px rgba(116, 185, 255, 0.3);
}

.bulk-nav-btn-20.bulk-nav-up-20:hover {
  box-shadow: 0 3px 10px rgba(116, 185, 255, 0.5);
}

/* Navigation feedback animations */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.jump-label {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.individual-jump-container:hover .jump-label {
  opacity: 1;
}

.individual-jump-input {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
  width: 35px;
  height: 28px;
  text-align: center;
  outline: none;
}

.individual-jump-input::-webkit-outer-spin-button,
.individual-jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.individual-jump-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.individual-jump-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
  font-size: 0.8rem;
}

.individual-jump-input:focus {
  box-shadow: 0 3px 12px rgba(116, 185, 255, 0.5);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #81ecec 0%, #00cec9 100%);
}
.individual-jump-input:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(116, 185, 255, 0.4);
} /* Responsive design for individual jump input */
@media (max-width: 768px) {
  .question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .individual-jump-container {
    align-self: flex-end;
  }

  .individual-jump-input {
    width: 30px;
    height: 25px;
    font-size: 0.8rem;
    padding: 3px 6px;
  }

  .jump-label {
    font-size: 0.7rem;
  }
  .unfilled-nav-btn {
    width: 20px;
    height: 16px;
    font-size: 0.6rem;
  }

  .bookmark-nav-btn {
    width: 20px;
    height: 16px;
    font-size: 0.6rem;
  }

  .bulk-nav-btn {
    width: 20px;
    height: 16px;
    font-size: 0.6rem;
  }

  .bulk-nav-btn-20 {
    width: 24px;
    height: 18px;
    font-size: 0.5rem;
  }
}

.search-refresh-btn:hover,
.data-export-btn:hover,
.data-import-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-refresh-btn:active,
.data-export-btn:active,
.data-import-btn:active {
  transform: translateY(0);
}

.data-export-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.data-export-btn:hover {
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.data-import-btn {
  background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
  box-shadow: 0 3px 10px rgba(255, 167, 38, 0.3);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.data-import-btn:hover {
  box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
}

.data-export-btn.exporting,
.data-import-btn.importing {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  animation: copySuccess 0.6s ease;
}

.search-results-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 10px 15px;
}

.search-highlight {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1) !important;
}

.navigation-arrows {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.nav-arrow {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  opacity: 0.7;
}

.nav-arrow:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.nav-arrow:active {
  transform: scale(0.95);
}

.nav-arrow.up {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
}

.nav-arrow.up:hover {
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.5);
}

.nav-arrow.down {
  background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
  box-shadow: 0 3px 10px rgba(255, 167, 38, 0.3);
}

.nav-arrow.down:hover {
  box-shadow: 0 4px 15px rgba(255, 167, 38, 0.5);
}

.question {
  position: relative;
}

.btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.pagination-controls {
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  flex-shrink: 0;
}

.page-info {
  font-weight: bold;
  color: #667eea;
  font-size: 1.1rem;
}

.bookmark-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.bookmark-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.bookmark-label {
  color: #667eea;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.question.bookmarked {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}
.bookmark-navigation {
  padding: 15px 20px;
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  margin: 15px 0;
  text-align: center;
  box-shadow: 0 3px 15px rgba(255, 193, 7, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.bookmark-navigation > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.bookmark-counter {
  color: #ff8f00;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid #ffc107;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.bookmark-nav-btn {
  background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(255, 193, 7, 0.3);
  white-space: nowrap;
  min-width: 140px;
}

.bookmark-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, #ff8f00 0%, #f57c00 100%);
}

.bookmark-nav-btn:active {
  transform: translateY(0);
}

.bookmark-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
}

/* Responsive design for bookmark navigation */
@media (max-width: 768px) {
  .bookmark-navigation {
    padding: 12px 15px;
    gap: 10px;
  }

  .bookmark-navigation > div {
    flex-direction: column;
    gap: 10px;
  }

  .bookmark-counter {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .bookmark-nav-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 120px;
  }
}

/* This duplicate section removed - keeping the standardized version in question-actions */

/* AI Prompt Generator Modal Styles */
.ai-prompt-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

/* Individual AI Prompt Modal Styles */
.ai-prompt-modal-content {
  background-color: #ffffff;
  margin: 3% auto;
  padding: 0;
  border: none;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.ai-prompt-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-prompt-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.ai-prompt-controls {
  padding: 20px 25px;
  background-color: #f8f9fa;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid #e9ecef;
}

.ai-control-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.ai-control-btn.save-btn {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.ai-control-btn.refresh-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.ai-control-btn.copy-btn {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.ai-control-btn.copied {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  transform: scale(1.05);
}

.ai-prompt-textarea {
  width: 100%;
  min-height: 400px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  background-color: #f8f9fa;
  resize: vertical;
  transition: all 0.3s ease;
}

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

.ai-prompt-question-ref {
  padding: 20px 25px;
  background-color: #fff3cd;
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 15px 15px;
  text-align: center;
}

.ai-prompt-question-ref strong {
  color: #856404;
  font-size: 1rem;
}

.ai-prompt-question-ref p {
  margin: 5px 0 0 0;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

/* Main AI Prompt Generator Controls */
.main-prompt-controls {
  padding: 15px 20px;
  background-color: #f8f9fa;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0;
}

.main-prompt-control-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.main-prompt-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.main-prompt-control-btn.save-btn {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.main-prompt-control-btn.refresh-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.main-prompt-control-btn.copy-btn {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.main-prompt-control-btn.copied {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  transform: scale(1.05);
}

.notes-summary-note {
  padding: 10px;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #856404;
}

/* Toggle Answers Button Styles */
.toggle-answers-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toggle-answers-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.toggle-answers-btn.answers-visible {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

.toggle-answers-btn.answers-visible:hover {
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

@media (max-width: 768px) {
  .ai-prompt-modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .ai-control-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .ai-prompt-controls {
    padding: 15px 20px;
  }

  .ai-prompt-modal-header {
    padding: 15px 20px;
  }

  .ai-prompt-modal-header h3 {
    font-size: 1rem;
  }

  .main-prompt-control-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .main-prompt-controls {
    padding: 10px 15px;
  }
}

.ai-prompt-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  margin: 2% auto;
  padding: 0;
  border: none;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalSlideIn 0.4s ease-out;
}

.ai-prompt-modal-header {
  background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
  color: white;
  padding: 25px 30px 20px;
  position: relative;
}

.ai-prompt-modal-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-prompt-modal-subtitle {
  margin: 8px 0 0 0;
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

.ai-prompt-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ai-prompt-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.ai-prompt-modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

.prompt-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.prompt-section:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.prompt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 15px;
}

.prompt-textarea {
  width: 100%;
  min-height: 200px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2d3436;
  background: #f8f9fa;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
}

.prompt-textarea:focus {
  border-color: #6c5ce7;
  background: white;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.prompt-copy-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
  margin-top: 15px;
}

.prompt-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.prompt-copy-btn.copied {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  animation: copySuccess 0.6s ease;
}

.notes-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #dee2e6;
}

.notes-summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notes-item {
  background: white;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-left: 4px solid #6c5ce7;
  font-size: 0.9rem;
  color: #636e72;
}

.notes-item strong {
  color: #2d3436;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.question-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Standardized action buttons with consistent height and border-radius */
.audio-btn,
.arabic-btn,
.meaning-btn,
.ai-prompt-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px; /* Standardized height */
  min-height: 40px; /* Ensure minimum height */
  color: white;
  box-sizing: border-box;
}

.audio-btn {
  background: linear-gradient(135deg, #e17055 0%, #fd79a8 100%);
  box-shadow: 0 3px 10px rgba(225, 112, 85, 0.3);
}

.audio-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(225, 112, 85, 0.4);
}

.audio-btn.playing {
  background: linear-gradient(135deg, #fd79a8 0%, #e17055 100%);
  animation: smoothPulse 1.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(253, 121, 168, 0.4);
  transform: scale(0.98);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes smoothPulse {
  0% {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(253, 121, 168, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(253, 121, 168, 0.6);
  }
  100% {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(253, 121, 168, 0.4);
  }
}

.audio-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.arabic-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
}

.arabic-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.meaning-btn {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  box-shadow: 0 3px 10px rgba(116, 185, 255, 0.3);
}

.meaning-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4);
}

.ai-prompt-btn {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
  /* Removed margin-top: 10px for consistency */
}

.ai-prompt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.ai-prompt-btn.copied {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* AI Prompt Generator Modal Styles */
.ai-prompt-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

/* Individual AI Prompt Modal Styles */
.ai-prompt-modal-content {
  background-color: #ffffff;
  margin: 3% auto;
  padding: 0;
  border: none;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.ai-prompt-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-prompt-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.ai-prompt-controls {
  padding: 20px 25px;
  background-color: #f8f9fa;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid #e9ecef;
}

.ai-control-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.ai-control-btn.save-btn {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.ai-control-btn.refresh-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.ai-control-btn.copy-btn {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.ai-control-btn.copied {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  transform: scale(1.05);
}

.ai-prompt-textarea {
  width: 100%;
  min-height: 400px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  background-color: #f8f9fa;
  resize: vertical;
  transition: all 0.3s ease;
}

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

.ai-prompt-question-ref {
  padding: 20px 25px;
  background-color: #fff3cd;
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 15px 15px;
  text-align: center;
}

.ai-prompt-question-ref strong {
  color: #856404;
  font-size: 1rem;
}

.ai-prompt-question-ref p {
  margin: 5px 0 0 0;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

/* Main AI Prompt Generator Controls */
.main-prompt-controls {
  padding: 15px 20px;
  background-color: #f8f9fa;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0;
}

.main-prompt-control-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.main-prompt-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.main-prompt-control-btn.save-btn {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.main-prompt-control-btn.refresh-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.main-prompt-control-btn.copy-btn {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.main-prompt-control-btn.copied {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  transform: scale(1.05);
}

.notes-summary-note {
  padding: 10px;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #856404;
}

/* Toggle Answers Button Styles */
.toggle-answers-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toggle-answers-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.toggle-answers-btn.answers-visible {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

.toggle-answers-btn.answers-visible:hover {
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

@media (max-width: 768px) {
  .ai-prompt-modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .ai-control-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .ai-prompt-controls {
    padding: 15px 20px;
  }

  .ai-prompt-modal-header {
    padding: 15px 20px;
  }

  .ai-prompt-modal-header h3 {
    font-size: 1rem;
  }

  .main-prompt-control-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .main-prompt-controls {
    padding: 10px 15px;
  }
}

.ai-prompt-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  margin: 2% auto;
  padding: 0;
  border: none;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalSlideIn 0.4s ease-out;
}

.ai-prompt-modal-header {
  background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
  color: white;
  padding: 25px 30px 20px;
  position: relative;
}

.ai-prompt-modal-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-prompt-modal-subtitle {
  margin: 8px 0 0 0;
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

.ai-prompt-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ai-prompt-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.ai-prompt-modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

.prompt-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.prompt-section:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.prompt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 15px;
}

.prompt-textarea {
  width: 100%;
  min-height: 200px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2d3436;
  background: #f8f9fa;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
}

.prompt-textarea:focus {
  border-color: #6c5ce7;
  background: white;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.prompt-copy-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
  margin-top: 15px;
}

.prompt-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.prompt-copy-btn.copied {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  animation: copySuccess 0.6s ease;
}

.notes-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #dee2e6;
}

.notes-summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notes-item {
  background: white;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-left: 4px solid #6c5ce7;
  font-size: 0.9rem;
  color: #636e72;
}

.notes-item strong {
  color: #2d3436;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.question-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.audio-btn {
  background: linear-gradient(135deg, #e17055 0%, #fd79a8 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(225, 112, 85, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  min-width: fit-content;
}

.audio-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(225, 112, 85, 0.4);
}

.audio-btn.playing {
  background: linear-gradient(135deg, #fd79a8 0%, #e17055 100%);
  animation: smoothPulse 1.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(253, 121, 168, 0.4);
  transform: scale(0.98);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes smoothPulse {
  0% {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(253, 121, 168, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(253, 121, 168, 0.6);
  }
  100% {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(253, 121, 168, 0.4);
  }
}

.audio-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.arabic-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  min-width: fit-content;
}

.arabic-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.meaning-btn {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(116, 185, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.meaning-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 30px;
  border-radius: 20px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-btn,
.refresh-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.edit-btn:hover,
.refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.edit-btn.active {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
}

.refresh-btn {
  background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
  box-shadow: 0 3px 10px rgba(255, 167, 38, 0.3);
}

.refresh-btn:hover {
  box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
}

.section-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.section-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #495057;
  font-weight: 600;
}

.context-header {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.context-header h4 {
  margin: 0;
  color: #667eea;
  font-size: 1rem;
}

/* AI Helper Buttons */
.ai-helper-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.ai-helper-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.ai-helper-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ai-helper-btn:hover:before {
  left: 100%;
}

.ai-helper-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Different gradients for each AI button */
.english-ai-btn {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.english-ai-btn:hover {
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.arabic-ai-btn {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  box-shadow: 0 2px 8px rgba(250, 112, 154, 0.3);
}

.arabic-ai-btn:hover {
  box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.context-ai-btn {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
  box-shadow: 0 2px 8px rgba(168, 237, 234, 0.3);
}

.context-ai-btn:hover {
  box-shadow: 0 4px 15px rgba(168, 237, 234, 0.4);
}

/* AI button loading state */
.ai-helper-btn.loading {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  cursor: not-allowed;
  animation: aiPulse 1.5s infinite;
}

@keyframes aiPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* AI button success state */
.ai-helper-btn.success {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  animation: aiSuccess 0.6s ease;
}

@keyframes aiSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive design for AI buttons */
@media (max-width: 768px) {
  .ai-helper-btn {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .context-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Tooltip for AI buttons */
.ai-helper-btn[title]:hover:after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
}

.ai-helper-btn[title]:hover:before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

/* Meaning Modal AI Helper Buttons */
.meaning-ai-helper-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
  border-radius: 12px;
  border: 2px solid #dadce0;
}

/* Meaning Modal specific AI button styles */
.meaning-english-ai-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.meaning-english-ai-btn:hover {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.meaning-arabic-ai-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.meaning-arabic-ai-btn:hover {
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.meaning-context-ai-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.meaning-context-ai-btn:hover {
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Responsive design for meaning modal AI buttons */
@media (max-width: 768px) {
  .meaning-ai-helper-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .meaning-ai-helper-buttons .ai-helper-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Individual Section AI Buttons */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 0;
}

.section-header h3 {
  margin: 0;
  flex: 1;
}

.section-header .ai-helper-btn {
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 8px;
  margin-left: 10px;
}

/* Specific colors for each section AI button */
.definition-ai-btn {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  box-shadow: 0 2px 6px rgba(108, 92, 231, 0.3);
}

.definition-ai-btn:hover {
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.4);
}

.synonyms-ai-btn {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
  box-shadow: 0 2px 6px rgba(253, 121, 168, 0.3);
}

.synonyms-ai-btn:hover {
  box-shadow: 0 3px 10px rgba(253, 121, 168, 0.4);
}

.examples-ai-btn {
  background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
  box-shadow: 0 2px 6px rgba(0, 184, 148, 0.3);
}

.examples-ai-btn:hover {
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.4);
}

.etymology-ai-btn {
  background: linear-gradient(135deg, #e17055 0%, #fab1a0 100%);
  box-shadow: 0 2px 6px rgba(225, 112, 85, 0.3);
}

.etymology-ai-btn:hover {
  box-shadow: 0 3px 10px rgba(225, 112, 85, 0.4);
}

.professional-ai-btn {
  background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
  box-shadow: 0 2px 6px rgba(9, 132, 227, 0.3);
}

.professional-ai-btn:hover {
  box-shadow: 0 3px 10px rgba(9, 132, 227, 0.4);
}

/* Responsive design for section headers */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .section-header .ai-helper-btn {
    margin-left: 0;
    align-self: flex-end;
  }
}

.editable-content {
  min-height: 100px;
}

.context-example-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f8f9fa;
}

.context-header {
  margin-bottom: 10px;
}

.context-header h4 {
  margin: 0;
  color: #667eea;
  font-size: 1rem;
}

.edit-controls {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-top: 3px solid #667eea;
}

.edit-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
}

.save-btn,
.cancel-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.save-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
}

.save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.cancel-btn {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(253, 121, 168, 0.3);
}

.cancel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(253, 121, 168, 0.4);
}

.edit-tips {
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

.ai-tips {
  display: block;
  margin-top: 5px;
  color: #667eea;
  font-size: 0.75rem;
  font-weight: 500;
}

.paste-tips {
  display: block;
  margin-top: 5px;
  color: #00b894;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Editable content styles */
[contenteditable="true"] {
  background: #fff !important;
  border: 2px solid #667eea;
  border-radius: 8px;
  padding: 10px;
  margin: 5px 0;
  transition: all 0.3s ease;
  min-height: 40px;
  color: #333 !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

[contenteditable="true"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  border-color: #4facfe;
  background: #fff !important;
}

[contenteditable="true"]:hover {
  border-color: #4facfe;
  background: #fff !important;
}

/* Force clean text styling inside editable content */
[contenteditable="true"] * {
  background: transparent !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Ensure pasted content appears clean */
[contenteditable="true"] span,
[contenteditable="true"] div,
[contenteditable="true"] p {
  background: transparent !important;
  color: inherit !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modal-title {
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #333;
}

.translation-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.english-section {
  flex: 1;
}

.arabic-section {
  flex: 1;
  text-align: right;
  direction: rtl;
}

.word-display {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #667eea;
}

.arabic-word {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #00b894;
  font-family: "Arial Unicode MS", "Tahoma", sans-serif;
}

.definition {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.context-example {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  margin-top: 15px;
}

.context-example h4 {
  color: #667eea;
  margin-bottom: 8px;
}

.dictionary-modal {
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

.dictionary-content {
  padding: 20px 0;
}

.word-header {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  text-align: center;
}

.main-word {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pronunciation {
  font-size: 1.2rem;
  opacity: 0.9;
  font-style: italic;
  margin-bottom: 5px;
}

.part-of-speech {
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
}

.definition-section,
.synonyms-section,
.examples-section,
.etymology-section,
.professional-usage {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #74b9ff;
}

.definition-section h3,
.synonyms-section h3,
.examples-section h3,
.etymology-section h3,
.professional-usage h3 {
  color: #0984e3;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.main-definition {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.synonyms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.synonym-item {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.synonym-item:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.examples-list {
  space-y: 15px;
}

.example-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #74b9ff;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.example-item .example-text {
  font-style: italic;
  color: #555;
  line-height: 1.5;
}

.example-item .example-context {
  font-size: 0.85rem;
  color: #0984e3;
  margin-top: 8px;
  font-weight: 500;
}

.etymology-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.usage-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.usage-highlight {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.confirmation-modal {
  max-width: 500px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.confirmation-modal::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  border-radius: 20px;
  z-index: -1;
}

.confirmation-header {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  padding: 25px;
  border-radius: 17px 17px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.confirmation-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

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

.confirmation-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.confirmation-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.confirmation-body {
  padding: 30px 25px;
  text-align: center;
}

.confirmation-message-en {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 500;
}

.confirmation-message-ar {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
  font-family: "Arial Unicode MS", "Tahoma", sans-serif;
  direction: rtl;
}

.confirmation-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.warning-message-en,
.warning-message-ar {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #856404;
  font-weight: 500;
}

.warning-message-ar {
  direction: rtl;
}

.confirmation-actions {
  padding: 0 25px 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.confirm-btn-cancel,
.confirm-btn-delete {
  flex: 1;
  max-width: 200px;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.confirm-btn-cancel {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.confirm-btn-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
}

.confirm-btn-delete {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
}

.confirm-btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 121, 168, 0.4);
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateY(-2px) translateX(0);
  }
  25% {
    transform: translateY(-2px) translateX(-2px);
  }
  75% {
    transform: translateY(-2px) translateX(2px);
  }
}

.confirm-btn-cancel span:last-child,
.confirm-btn-delete span:last-child {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Success Modal Styles */
.success-modal .success-header {
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

.success-modal .success-header::before {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
}

.success-modal::before {
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

.confirm-btn-success {
  flex: 1;
  max-width: 200px;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.confirm-btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
  animation: successPulse 0.5s;
}

@keyframes successPulse {
  0%,
  100% {
    transform: translateY(-2px) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
  }
}

.confirm-btn-success span:last-child {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Error Modal Styles */
.error-modal .error-header {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.error-modal .error-header::before {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
}

.error-modal::before {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.confirm-btn-error {
  flex: 1;
  max-width: 200px;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.confirm-btn-error:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
  animation: errorShake 0.5s;
}

@keyframes errorShake {
  0%,
  100% {
    transform: translateY(-2px) translateX(0);
  }
  25% {
    transform: translateY(-2px) translateX(-3px);
  }
  75% {
    transform: translateY(-2px) translateX(3px);
  }
}

.confirm-btn-error span:last-child {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Success and Error Details */
.success-details,
.error-details {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  animation: fadeInUp 0.5s ease;
}

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

.success-details-content,
.error-details-content {
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.5;
}

/* Mobile responsiveness for new modals */
@media (max-width: 768px) {
  .success-modal,
  .error-modal {
    max-width: 95%;
    margin: 5% auto;
  }

  .confirmation-header {
    padding: 20px 15px;
  }

  .confirmation-title {
    font-size: 1.5rem;
  }

  .confirmation-icon {
    font-size: 2.5rem;
  }

  .confirmation-body {
    padding: 20px 15px;
  }

  .confirmation-message-en {
    font-size: 1.1rem;
  }

  .confirmation-message-ar {
    font-size: 1rem;
  }

  .confirmation-actions {
    padding: 0 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .confirm-btn-success,
  .confirm-btn-error,
  .confirm-btn-cancel,
  .confirm-btn-delete {
    max-width: 100%;
    padding: 12px 16px;
  }
}

.quiz-container {
  padding: 20px 40px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.question {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.question-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  align-items: start;
}

.question-main {
  min-width: 0;
}

.notes-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 15px;
  position: relative;
  min-height: 120px;
}

.notes-container::before {
  content: "📝 Notes";
  position: absolute;
  top: -12px;
  left: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.notes-textarea {
  width: 100%;
  height: 100px;
  border: none;
  background: transparent;
  resize: vertical;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #495057;
  outline: none;
  padding: 8px 0;
  min-height: 80px;
}

.notes-textarea::placeholder {
  color: #6c757d;
  font-style: italic;
}

.notes-textarea:focus {
  color: #212529;
}

.question:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.question-number {
  color: #667eea;
  font-weight: bold;
  margin-bottom: 10px;
}

.question-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.input-field {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 1rem;
  width: 200px;
  transition: all 0.3s ease;
}

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

.input-field.correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.input-field.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.answer {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
  display: none;
  animation: slideIn 0.3s ease;
}

.answer.show {
  display: block;
}

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

.progress {
  background: #e9ecef;
  height: 4px;
  border-radius: 2px;
  margin: 20px 0;
}

.progress-bar {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .container {
    max-width: 98%;
    width: auto;
    margin: 5px auto;
  }

  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .back-home-btn {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 15px;
    display: inline-block;
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .quiz-container {
    padding: 15px;
    flex: 1;
    min-height: 0;
  }

  .question {
    padding: 15px;
  }

  .question-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .notes-container {
    min-height: 100px;
  }

  .notes-textarea {
    height: 80px;
    min-height: 60px;
  }

  .navigation-arrows {
    right: 5px;
    top: 20px;
    transform: none;
    position: absolute;
  }

  .nav-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    opacity: 0.8;
  }

  .input-field {
    width: 100%;
    max-width: 300px;
  }

  .controls {
    padding: 15px;
  }

  .general-notes-container {
    padding: 10px 15px;
  }

  .general-notes-textarea {
    height: 40px;
    min-height: 35px;
    max-height: 100px;
    font-size: 0.85rem;
  }

  .general-notes-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .general-notes-copy-btn,
  .general-notes-clear-btn,
  .general-notes-lock-btn,
  .general-notes-resize-btn,
  .go-to-unfilled-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .controls > div {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .controls > div > div {
    justify-content: center;
  }

  .search-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
  }

  .search-container input {
    min-width: auto !important;
    width: 100% !important;
  }

  .search-container label {
    text-align: center;
    white-space: normal !important;
  }

  .search-refresh-btn,
  .notes-export-btn,
  .notes-import-btn {
    align-self: center;
    width: 50px !important;
  }

  .pagination-controls {
    padding: 15px;
    flex-direction: column;
    gap: 10px;
  }

  .dictionary-modal {
    max-width: 95%;
    max-height: 90vh;
    margin: 5% auto;
  }

  .word-header {
    padding: 15px;
  }

  .main-word {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .pronunciation {
    font-size: 1rem;
  }

  .definition-section,
  .synonyms-section,
  .examples-section,
  .etymology-section,
  .professional-usage {
    padding: 15px;
    margin-bottom: 15px;
  }

  .synonyms-list {
    flex-direction: column;
    gap: 8px;
  }

  .synonym-item {
    text-align: center;
    padding: 10px 15px;
  }

  .example-item {
    padding: 12px;
  }

  .confirmation-modal {
    max-width: 95%;
    margin: 5% auto;
  }

  .confirmation-header {
    padding: 20px 15px;
  }

  .confirmation-icon {
    font-size: 2.5rem;
  }

  .confirmation-title {
    font-size: 1.5rem;
  }

  .confirmation-body {
    padding: 20px 15px;
  }

  .confirmation-message-en {
    font-size: 1.1rem;
  }

  .confirmation-message-ar {
    font-size: 1rem;
  }

  .confirmation-actions {
    padding: 0 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .confirm-btn-cancel,
  .confirm-btn-delete {
    max-width: none;
    padding: 12px 15px;
  }

  /* Responsive styles for standardized action buttons */
  .audio-btn,
  .arabic-btn,
  .meaning-btn,
  .ai-prompt-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    height: 36px;
    min-height: 36px;
    border-radius: 12px;
  }

  .question-actions {
    gap: 8px;
    margin-top: 12px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 90%;
    width: 1600px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 85%;
    width: 1800px;
  }
}

/* Copy Answer Button Styles */
.input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.input-field {
  flex: 1;
}

.copy-answer-btn {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
  flex-shrink: 0;
}

.copy-answer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
  background: linear-gradient(135deg, #5f4fcf 0%, #9085e8 100%);
}

.copy-answer-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.copy-image-prompt-btn {
  background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(225, 112, 85, 0.3);
  flex-shrink: 0;
}

.copy-image-prompt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(225, 112, 85, 0.4);
  background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
}

.copy-image-prompt-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(225, 112, 85, 0.3);
}

.copy-movie-prompt-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
  flex-shrink: 0;
}

.copy-movie-prompt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
  background: linear-gradient(135deg, #00a085 0%, #00b894 100%);
}

.copy-movie-prompt-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
}

.height-control-input {
  width: 45px;
  height: 45px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.height-control-input:hover {
  border-color: #6c5ce7;
  background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.height-control-input:focus {
  outline: none;
  border-color: #6c5ce7;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.height-control-input:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.reset-height-btn {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(253, 121, 168, 0.3);
  flex-shrink: 0;
}

.reset-height-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(253, 121, 168, 0.4);
  background: linear-gradient(135deg, #e84393 0%, #d63384 100%);
}

.reset-height-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(253, 121, 168, 0.3);
}

/* Input field styles for textarea */
.input-field {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 15px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  outline: none;
  min-height: 45px;
  height: 45px;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
  overflow-y: auto;
}

.input-field:focus {
  border-color: #4facfe;
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.input-field:hover {
  border-color: #74b9ff;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.input-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
}

/* Answer Bulb Styles */
.answer-bulb {
  width: 45px;
  height: 45px;
  border: 2px solid #ddd;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: default;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.answer-bulb.bulb-correct {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  border-color: #00b894;
  box-shadow: 0 0 20px rgba(0, 184, 148, 0.6), 0 0 40px rgba(0, 184, 148, 0.4),
    0 0 60px rgba(0, 184, 148, 0.2);
  animation: bulbGlow 1.5s ease-in-out infinite alternate;
  transform: scale(1.05);
}

.answer-bulb.bulb-correct::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 184, 148, 0.3) 0%,
    transparent 70%
  );
  animation: bulbPulse 2s ease-in-out infinite;
}

.answer-bulb.bulb-off {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border-color: #6c757d;
  opacity: 0.6;
  transform: scale(0.95);
}

@keyframes bulbGlow {
  0% {
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.6), 0 0 40px rgba(0, 184, 148, 0.4),
      0 0 60px rgba(0, 184, 148, 0.2);
  }
  100% {
    box-shadow: 0 0 30px rgba(0, 184, 148, 0.8), 0 0 60px rgba(0, 184, 148, 0.6),
      0 0 90px rgba(0, 184, 148, 0.4);
  }
}

@keyframes bulbPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Pronunciation Prompt Button Styles */
.pronunciation-prompt-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
  flex-shrink: 0;
}

.pronunciation-prompt-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
}

.pronunciation-prompt-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.pronunciation-prompt-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2),
    0 3px 10px rgba(255, 107, 107, 0.3);
}

/* Add pulse animation for pronunciation button */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive adjustments for copy buttons */
@media (max-width: 768px) {
  .copy-answer-btn,
  .copy-image-prompt-btn,
  .copy-movie-prompt-btn,
  .pronunciation-prompt-btn,
  .height-control-input,
  .reset-height-btn,
  .answer-bulb {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .answer-bulb {
    font-size: 1.1rem;
  }

  .input-container {
    gap: 8px;
  }
}

/* ========================================
           ELEGANT TOOLTIPS FOR SHORTCUT BUTTONS
           ======================================== */

/* Elegant tooltip for audio button (Alt+Z) */
.audio-btn {
  position: relative;
}

.audio-btn::after {
  content: "Alt + Z";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  pointer-events: none;
}

.audio-btn::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2d3436;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.audio-btn:hover::after,
.audio-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-3px);
}

.audio-btn:hover::after {
  animation: audioTooltipGlow 2s ease-in-out infinite;
}

@keyframes audioTooltipGlow {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 20px rgba(225, 112, 85, 0.3),
      0 0 15px rgba(225, 112, 85, 0.2);
  }
}

/* Elegant tooltip for Arabic Translation button (Alt+X) */

/* Brief Explain Button Styles */
.brief-explain-btn {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  border: 2px solid transparent;
  padding: 8px 12px;
  margin: 4px;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  min-height: 40px;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.15);
}

.brief-explain-btn:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

.brief-explain-btn.copied {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.brief-explain-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 5px rgba(243, 156, 18, 0.2);
}

.brief-explain-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

/* Responsive design for brief explain button */
@media (max-width: 768px) {
  .brief-explain-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    height: 36px;
    min-height: 36px;
  }
}
.arabic-btn {
  position: relative;
}

.arabic-btn::after {
  content: "Alt + X";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  pointer-events: none;
}

.arabic-btn::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2d3436;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.arabic-btn:hover::after,
.arabic-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-3px);
}

.arabic-btn:hover::after {
  animation: arabicTooltipGlow 2s ease-in-out infinite;
}

@keyframes arabicTooltipGlow {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.3),
      0 0 15px rgba(0, 184, 148, 0.2);
  }
}
