#search {
  display: none;
}

/* Main card layout */
#main-multi-input {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#multi-input {
  margin: 0 !important;
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.search-title-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.search-title-card input#new-document-title {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  font-size: 14px;
}

#_hj_feedback_container > div > button {
  position: fixed;
  top: 30vh;
  left: auto;
  right: 0;
}

/* Tabs styling */
.search-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}

.search-tab {
  flex: 1;
  padding: 16px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  transition: color 0.2s ease;
}

.search-tab:hover {
  color: #374151;
}

.search-tab.active {
  color: #2E3562;
}

.search-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2E3562 0%, #1A1F3A 100%);
  border-radius: 3px 3px 0 0;
}

.search-tab svg {
  width: 18px;
  height: 18px;
}

/* Textarea container */
.search-textarea-container {
  padding: 24px;
}

#textarea {
  border: 2px dashed #d1d5db !important;
  border-radius: 12px !important;
  min-height: 280px !important;
  padding: 20px !important;
  font-size: 15px !important;
  color: #374151 !important;
  resize: none !important;
}

#textarea::placeholder {
  color: #9ca3af;
}

/* Word count styling */
.word-count-display {
  padding: 0 24px 20px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Action buttons row */
.side-search-btn-group {
  display: flex;
  gap: 16px;
  padding: 0 24px 24px;
}

.side-search-btn-group > button {
  flex: 1;
  font-size: 14px !important;
  padding: 16px 12px !important;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
  font-weight: 600;
  height: auto;
  min-height: 80px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.side-search-btn-group > button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.side-search-btn-group > button .btn-icon {
  font-size: 20px;
}

/* Check Plagiarism - Red outline style */
button.btn-check-plag {
  background: #fef2f2 !important;
  border: 2px solid #fe5b60 !important;
  color: #fe5b60 !important;
}

button.btn-check-plag:hover {
  background: #fee2e2 !important;
}

/* Check AI - Green outline style */
.btn-check-ai {
  background: #ecfdf5 !important;
  border: 2px solid #10b981 !important;
  color: #10b981 !important;
  margin: 0 !important;
}

.btn-check-ai:hover {
  background: #d1fae5 !important;
}

/* Check Both - Solid gradient */
.btn-check-plag-ai {
  background: linear-gradient(180deg, #2E3562 0%, #1A1F3A 100%) !important;
  border: 2px solid transparent !important;
  color: #ffffff !important;
}

.btn-check-plag-ai:hover {
  background: linear-gradient(180deg, #3d4578 0%, #252b4d 100%) !important;
}

/* Exclude Sources */
.exclude-sources-container {
  padding: 0 24px 24px;
}

.exclude-sources-btn {
  width: 100%;
  border-radius: 9999px !important;
  background: #ffffff !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 14px 20px !important;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.exclude-sources-btn:hover {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
}

.exclude-sources-btn i {
  color: #374151;
}

.button-plag-ai-group {
  display: none;
}

/* Recent Reports card */
.recent-reports-card {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

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

.recent-reports-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.recent-reports-view-all {
  font-size: 13px;
  font-weight: 500;
  color: #4f46e5;
  text-decoration: none;
}

.recent-reports-view-all:hover {
  text-decoration: underline;
}

.recent-reports-list {
  margin-top: 4px;
}

.recent-report-item {
  display: flex;
  align-items: center;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.recent-report-item:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.recent-report-main {
  flex: 1;
}

.recent-report-title {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
}

.recent-report-meta {
  font-size: 12px;
  color: #6b7280;
}

.recent-report-tags {
  display: flex;
  gap: 6px;
  margin-right: 8px;
}

.recent-report-badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.recent-report-badge.green {
  background: #ecfdf5;
  color: #047857;
}

.recent-report-badge.orange {
  background: #fff7ed;
  color: #ea580c;
}

.recent-report-badge.red {
  background: #fee2e2;
  color: #b91c1c;
}

.recent-report-badge.neutral {
  background: #e5e7eb;
  color: #374151;
}

.recent-report-arrow {
  font-size: 14px;
  color: #9ca3af;
}

/* Loading spinner styles */
.side-search-btn-group > button.loading {
  pointer-events: none;
  opacity: 0.8;
}

.side-search-btn-group > button .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.1em;
}

/* Mobile responsive */
@media only screen and (max-width: 768px) {
  #main-multi-input {
    padding: 0;
  }
  
  .search-tabs {
    padding: 0;
  }
  
  .search-tab {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .search-textarea-container {
    padding: 16px;
  }
  
  #textarea {
    min-height: 200px !important;
  }
  
  .side-search-btn-group {
    flex-direction: column;
    padding: 0 16px 16px;
    gap: 12px;
  }
  
  .side-search-btn-group > button {
    min-height: 60px;
    flex-direction: row;
    gap: 10px;
  }
  
  .exclude-sources-container {
    padding: 0 16px 16px;
  }
}
