/* Q&A Section Plugin Styles */

.qa-section {
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Noto Sans";
  position: relative;
  z-index: 1;
}

/* Ensure styles are applied even when theme CSS is loaded */
.qa-section * {
  box-sizing: border-box;
}

.qa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #e3e6e8;
  gap: 20px;
}

.qa-header-left {
  flex: 1;
}

.qa-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qa-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  color: #232629;
}

/* Search Container */
.qa-search-container {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 300px;
}

.qa-search-input {
  width: 100%;
  padding: 10px 16px;
  padding-right: 44px;
  border: 1px solid #d6d9dc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.qa-search-input:focus {
  border-color: #3578e5;
  box-shadow: 0 0 0 3px rgba(53, 120, 229, 0.1);
}

.qa-search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  color: #6a737c;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qa-search-button:hover {
  color: #3578e5;
}

.qa-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d6d9dc;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
}

.qa-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qa-search-list li {
  border-bottom: 1px solid #f1f2f3;
}

.qa-search-list li:last-child {
  border-bottom: none;
}

.qa-search-list a {
  display: block;
  padding: 12px 16px;
  color: #232629;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.qa-search-list a:hover {
  background: #f8f9fa;
  color: #3578e5;
}

.qa-no-results {
  padding: 16px;
  text-align: center;
  color: #6a737c;
  font-size: 14px;
}

/* Ask Button */
.qa-ask-button {
  background: #3578e5;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.qa-ask-button:hover {
  background: #2968d7;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(53, 120, 229, 0.3);
}

.qa-questions-list {
  padding: 0;
}

.qa-question-item {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qa-question-item:hover {
  border-color: #d0d7de;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qa-question-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.qa-question-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: bold;
  color: #666;
  font-size: 14px;
}

.qa-question-author-info {
  flex: 1;
}

.qa-question-author {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 2px;
}

.qa-question-time {
  font-size: 12px;
  color: #6b7280;
}

.qa-question-category {
  background: #e1ecf4;
  color: #1e40af;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}

.qa-question-content {
  margin-bottom: 16px;
}

.qa-question-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
  font-family: "Noto Sans";
}

.qa-question-title a {
  color: #1f2937;
  text-decoration: none;
}

.qa-question-title a:hover {
  color: #3578e5;
}

.qa-question-excerpt {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  font-family: "Noto Sans";
}

.qa-question-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.qa-question-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.qa-tag {
  background: #f3f4f6;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.qa-tag:hover {
  background: #e5e7eb;
  color: #374151;
  text-decoration: none;
}

.qa-question-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qa-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
  font-size: 13px;
}

.qa-stat-icon {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.qa-stat-number {
  font-weight: 500;
  color: #374151;
}

/* Like Button */
.qa-like-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.qa-like-button:hover {
  background: #fef2f2;
  color: #dc2626;
}

.qa-like-button.liked {
  color: #dc2626;
}

.qa-like-button.liked .qa-like-icon {
  fill: #dc2626;
}

.qa-like-icon {
  width: 16px;
  height: 16px;
  transition: all 0.2s ease;
}

.qa-like-count {
  font-weight: 500;
}

.qa-question-meta {
  font-size: 12px;
  color: #6a737c;
}

.qa-question-meta a {
  color: #0074cc;
  text-decoration: none;
}

/* Single Question Page */
.qa-question-page {
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Noto Sans";
}
.qa-breadcrumb {
  margin-bottom: 20px;
  padding: 12px 0;
}

.qa-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6a737c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid #e3e6e8;
  background: white;
}
.qa-user-info-footer {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.qa-back-link:hover {
  color: #3578e5;
  text-decoration: none;
  border-color: #3578e5;
  background: #f8f9fa;
}

.qa-back-link svg {
  flex-shrink: 0;
}

.qa-question-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e6e8;
}

.qa-question-title-single {
  font-size: 27px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #232629;
  line-height: 1.3;
}

.qa-question-body {
  margin-bottom: 16px;
}

.qa-question-text {
  font-size: 15px;
  line-height: 1.4;
  color: #232629;
}

.qa-question-text p {
  margin: 0 0 16px 0;
}
.qa-question-actions-new {
  display: flex;
  align-items: center;
}
.qa-question-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 8px;
}

.qa-user-info {
  background: #e1ecf4;
  padding: 5px 6px 7px 7px;
  border-radius: 3px;
  font-size: 12px;
  color: #6a737c;
  display: flex;
  gap: 5px;
}

.qa-user-info a {
  color: #0074cc;
  text-decoration: none;
  font-weight: bold;
}
.post_type_exist 
  /* Answers Section */
  .qa-answers-section {
  margin-top: 32px;
}
.qa-answer-actions {
  display: flex;
  align-items: center;
}
.qa-answers-header {
  padding-bottom: 16px;
  font-size: 19px;
  margin-bottom: 0;
  font-weight: 400;
  color: #232629;
}

.qa-answer {
  padding: 20px 0;
  border-bottom: 1px solid #e3e6e8;
}
.qa-answers-header {
  border-bottom: 1px solid #e3e6e8;
}
.qa-answer:last-child {
  border-bottom: none;
}

.qa-answer.accepted {
  background: #f1f8ff;
  border-left: 4px solid #5eba7d;
  padding: 20px 20px 20px 24px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.qa-accepted-mark {
  background: #e8f5e9;
  color: #4caf50;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}

.qa-admin-actions {
  margin-bottom: 16px;
}

.qa-answer-text {
  font-size: 15px;
  line-height: 1.4;
  color: #232629;
}

.qa-answer-text p {
  margin: 0 0 16px 0;
}

/* Answer Form */
.qa-answer-form {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e3e6e8;
}

.qa-form-title {
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #232629;
}

.qa-form-group {
  margin-bottom: 16px;
}

.qa-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #0c0d0e;
}

.qa-form-input,
.qa-form-textarea {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #babfc4;
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.qa-form-input:focus,
.qa-form-textarea:focus {
  outline: none;
  border-color: #0074cc;
  box-shadow: 0 0 0 4px rgba(0, 116, 204, 0.15);
}

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

.qa-form-submit {
  background: #0a95ff;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.qa-form-submit:hover {
  background: #0074cc;
}

/* Ask Question Form */
.qa-ask-form {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  font-family: "Noto Sans";
}

.qa-ask-title {
  font-size: 27px;
  font-weight: 400;
  margin: 0 0 24px 0;
  color: #232629;
}

/* Admin Mark Answer Button */
.qa-mark-answer-btn {
  background: #5eba7d;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.1s ease;
}

.qa-mark-answer-btn:hover {
  background: #4fa769;
}

/* Responsive Design */
@media (max-width: 768px) {
  .qa-section {
    padding: 0 16px;
  }

  .qa-question-item {
    padding: 16px;
  }

  .qa-question-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .qa-question-category {
    margin-left: 0;
    order: 3;
    flex-basis: 100%;
  }

  .qa-question-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .qa-question-stats {
    align-self: flex-end;
  }

  .qa-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .qa-header-right {
    flex-direction: column;
    gap: 12px;
  }

  .qa-search-container {
    min-width: auto;
    width: 100%;
  }

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

  .qa-question-title-single {
    font-size: 21px;
  }
}

/* Category Filters */
.qa-filters {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e3e6e8;
}

.qa-filter-group {
  margin-bottom: 10px;
}

.qa-filter-group:last-child {
  margin-bottom: 0;
}

.qa-category-filters,
.qa-sort-filters {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-filter-link {
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.qa-filter-link:hover {
  background: #0074cc !important;
  color: white !important;
  text-decoration: none;
}

.qa-filter-link.active {
  background: #0074cc !important;
  color: white !important;
  border-color: #0074cc;
}

/* Sort Select */
.qa-sort-select {
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid #d6d9dc;
  border-radius: 6px;
  background: white;
  color: #232629;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
  appearance: none;
}

.qa-sort-select:hover {
  border-color: #3578e5;
  background-color: #f8f9fa;
}

.qa-sort-select:focus {
  border-color: #3578e5;
  box-shadow: 0 0 0 3px rgba(53, 120, 229, 0.1);
}

@media (max-width: 768px) {
  .qa-category-filters,
  .qa-sort-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .qa-filter-link {
    margin-bottom: 4px;
    width: 100%;
    justify-content: flex-start;
  }

  .qa-sort-select {
    width: 100%;
    min-width: auto;
  }
}

/* Comments System Styles */
.qa-comment-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  margin-left: 8px;
}

.qa-comment-toggle:hover {
  background: #f3f4f6;
  color: #374151;
}

.qa-comment-icon {
  width: 16px;
  height: 16px;
  transition: all 0.2s ease;
}

.qa-comment-count {
  font-weight: 500;
  margin-left: 2px;
  margin-right: 4px;
}

.qa-comments-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e3e6e8;
}

.qa-comments-list {
  margin-bottom: 16px;
}

.qa-comment-item {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.qa-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.qa-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.qa-comment-author {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.qa-comment-time {
  font-size: 12px;
  color: #6b7280;
  margin-left: auto;
}

.qa-comment-content {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 8px;
  padding-left: 40px;
}

.qa-comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 40px;
}

.qa-comment-reply {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.qa-comment-reply:hover {
  background: #f3f4f6;
  color: #374151;
}

.qa-comment-replies {
  margin-left: 40px;
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid #e5e7eb;
}

.qa-comment-form {
  background: #f8f9fa;
  border: 1px solid #e3e6e8;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.qa-comment-form-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.qa-comment-form-header .qa-comment-avatar {
  width: 32px;
  height: 32px;
}

.qa-comment-form-header .qa-comment-author {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.qa-comment-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: white;
  margin-bottom: 12px;
}

.qa-comment-input:focus {
  outline: none;
  border-color: #3578e5;
  box-shadow: 0 0 0 3px rgba(53, 120, 229, 0.1);
}

.qa-comment-form-actions {
  display: flex;
  gap: 8px;
}

.qa-comment-submit {
  background: #3578e5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-comment-submit:hover {
  background: #2968d7;
}

.qa-comment-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.qa-comment-cancel {
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-comment-cancel:hover {
  background: #e5e7eb;
  color: #374151;
}

.qa-reply-form {
  background: #f8f9fa;
  border: 1px solid #e3e6e8;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  margin-left: 40px;
}

.qa-reply-form .qa-comment-input {
  min-height: 60px;
  margin-bottom: 8px;
}

.qa-comment-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #6b7280;
  font-size: 14px;
}

.qa-comment-empty {
  text-align: center;
  padding: 20px;
  color: #6b7280;
  font-size: 14px;
}

/* Nested comment indentation */
.qa-comment-replies .qa-comment-replies {
  margin-left: 20px;
}

.qa-comment-replies .qa-comment-replies .qa-comment-replies {
  margin-left: 20px;
}

/* Max nesting depth */
.qa-comment-replies
  .qa-comment-replies
  .qa-comment-replies
  .qa-comment-replies {
  margin-left: 0;
  border-left: none;
}

/* Responsive comments */
@media (max-width: 768px) {
  .qa-comment-content,
  .qa-comment-actions {
    padding-left: 0;
  }

  .qa-comment-replies {
    margin-left: 20px;
    padding-left: 12px;
  }

  .qa-reply-form {
    margin-left: 20px;
  }

  .qa-comment-form {
    padding: 12px;
  }

  .qa-comment-avatar {
    width: 28px;
    height: 28px;
  }

  .qa-comment-form-header .qa-comment-avatar {
    width: 28px;
    height: 28px;
  }
}

/* Modal Popup Styles */
.qa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qa-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qa-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.qa-modal-overlay.active .qa-modal {
  transform: scale(1) translateY(0);
}

.qa-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qa-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.qa-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.qa-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.qa-modal-body {
  padding: 24px;
}

.qa-modal-description {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Category Pills */
.qa-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.qa-category-pill {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-category-pill:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.qa-category-pill.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.qa-category-pill.active:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.qa-modal-form-group {
  margin-bottom: 20px;
}

.qa-modal-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

.qa-modal-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
  background: white;
}

.qa-modal-form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qa-modal-form-input::placeholder {
  color: #9ca3af;
}

/* Text Editor Styles */
.qa-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #f9fafb;
}

.qa-editor-btn {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.qa-editor-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.qa-editor-btn.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.qa-editor-content {
  min-height: 120px;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  line-height: 1.5;
  background: white;
  outline: none;
  overflow-y: auto;
  max-height: 300px;
}

.qa-editor-content:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qa-editor-content:empty:before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
}

.qa-editor-content p {
  margin: 0 0 8px 0;
}

.qa-editor-content p:last-child {
  margin-bottom: 0;
}

.qa-editor-content ul,
.qa-editor-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.qa-editor-content blockquote {
  margin: 8px 0;
  padding: 8px 16px;
  border-left: 4px solid #d1d5db;
  background: #f9fafb;
  font-style: italic;
}

.qa-editor-content code {
  background: #f3f4f6;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.qa-editor-content a {
  color: #3b82f6;
  text-decoration: underline;
}

.qa-editor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.qa-modal-tags-container {
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  transition: all 0.2s ease;
}

.qa-modal-tags-container:focus-within {
  border-color: #3578e5;
  box-shadow: 0 0 0 3px rgba(53, 120, 229, 0.1);
}

.qa-modal-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qa-modal-tag-item {
  background: #e1ecf4;
  color: #39739d;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.qa-modal-tag-remove {
  background: none;
  border: none;
  color: #39739d;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.qa-modal-tag-remove:hover {
  background: #39739d;
  color: white;
}

.qa-modal-tag-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 150px;
  padding: 6px 0;
}

.qa-modal-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.qa-modal-form-submit {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-modal-form-submit:hover {
  background: #2563eb;
}

.qa-modal-form-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.qa-modal-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
}

.qa-modal-success {
  background: #f0fdf4;
  color: #16a34a;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #bbf7d0;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .qa-modal-overlay {
    padding: 10px;
  }

  .qa-modal {
    max-height: 95vh;
    max-width: 100%;
  }

  .qa-modal-header {
    padding: 16px 20px;
  }

  .qa-modal-body {
    padding: 20px;
  }

  .qa-modal-title {
    font-size: 18px;
  }

  .qa-category-pills {
    gap: 6px;
  }

  .qa-category-pill {
    font-size: 13px;
    padding: 6px 12px;
  }

  .qa-editor-toolbar {
    gap: 2px;
    padding: 6px;
  }

  .qa-editor-btn {
    min-width: 24px;
    height: 24px;
    padding: 4px 6px;
    font-size: 11px;
  }

  .qa-editor-content {
    min-height: 100px;
    padding: 10px 12px;
  }

  .qa-modal-form-submit {
    width: 100%;
    padding: 14px 24px;
  }
}

/* Custom Notification System */
.qa-notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

.qa-notification {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  padding: 16px;
  border-left: 4px solid #3578e5;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  word-wrap: break-word;
}

.qa-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.qa-notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.qa-notification-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.qa-notification-content {
  flex: 1;
  min-width: 0;
}

.qa-notification-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.qa-notification-message {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.qa-notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-notification-close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

/* Notification Types */
.qa-notification.success {
  border-left-color: #10b981;
}

.qa-notification.success .qa-notification-icon {
  color: #10b981;
}

.qa-notification.error {
  border-left-color: #ef4444;
}

.qa-notification.error .qa-notification-icon {
  color: #ef4444;
}

.qa-notification.warning {
  border-left-color: #f59e0b;
}

.qa-notification.warning .qa-notification-icon {
  color: #f59e0b;
}

.qa-notification.info {
  border-left-color: #3b82f6;
}

.qa-notification.info .qa-notification-icon {
  color: #3b82f6;
}

/* Custom Confirm Dialog */
.qa-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qa-confirm-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qa-confirm-dialog {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.qa-confirm-overlay.active .qa-confirm-dialog {
  transform: scale(1) translateY(0);
}

.qa-confirm-header {
  padding: 24px 24px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.qa-confirm-icon {
  width: 24px;
  height: 24px;
  color: #f59e0b;
  flex-shrink: 0;
}

.qa-confirm-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.qa-confirm-body {
  padding: 0 24px;
  margin-bottom: 24px;
}

.qa-confirm-message {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.qa-confirm-actions {
  padding: 0 24px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.qa-confirm-button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.qa-confirm-button.primary {
  background: #ef4444;
  color: white;
}

.qa-confirm-button.primary:hover {
  background: #dc2626;
}

.qa-confirm-button.secondary {
  background: #f3f4f6;
  color: #6b7280;
}

.qa-confirm-button.secondary:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Responsive Notifications */
@media (max-width: 768px) {
  .qa-notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .qa-notification {
    margin-bottom: 8px;
    padding: 12px;
  }

  .qa-confirm-overlay {
    padding: 10px;
  }

  .qa-confirm-header {
    padding: 16px 16px 0 16px;
  }

  .qa-confirm-body {
    padding: 0 16px;
  }

  .qa-confirm-actions {
    padding: 0 16px 16px 16px;
    flex-direction: column;
  }

  .qa-confirm-button {
    width: 100%;
  }
}
