/* Künye Doğrulama Sidebar Stilleri */
#case-verifier-sidebar {
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 26px;
  width: 360px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#case-verifier-sidebar.open {
  transform: translateX(0);
}

/* Editör alanı kaydırma sınıfı */
body.cv-sidebar-open .ude-editor-root {
  margin-right: 360px;
  transition: margin-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.cv-header {
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.cv-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.cv-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  color: #64748b;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.cv-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.cv-close-btn {
  font-size: 16px;
  font-weight: bold;
}

/* Sub-header */
.cv-summary-section {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}

.cv-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cv-summary-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: #94a3b8;
}

.cv-status-dot.all-verified {
  background-color: #10b981;
}

.cv-status-dot.has-unverified {
  background-color: #f59e0b;
}

.cv-status-dot.loading {
  background-color: #3b82f6;
  animation: cv-pulse 1.2s infinite;
}

@keyframes cv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.cv-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.cv-summary-count {
  font-size: 12px;
  color: #64748b;
}

.cv-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

.cv-search-input {
  flex: 1;
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  outline: none;
}

.cv-search-input:focus {
  border-color: #6366f1;
}

.cv-scan-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #0284c7;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.cv-scan-btn:hover {
  background: #0369a1;
}

/* Card list area */
.cv-cards-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #94a3b8;
  font-size: 13px;
}

.cv-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

/* Decision Card */
.cv-card {
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
  position: relative;
}

.cv-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cv-card.verified {
  background: #f4f8f7;
  border-color: #d4e6e0;
}

.cv-card.not-found {
  background: #fef2f2;
  border-color: #fecaca;
}

.cv-card.loading {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.cv-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cv-card-citations {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv-citation-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.cv-num {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a34;
}

.cv-suffix {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.cv-open-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0284c7;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.15s;
}

.cv-card.verified .cv-open-link-btn {
  border-color: #10b981;
  color: #10b981;
}

.cv-open-link-btn:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}

.cv-card-badge {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cv-card.verified .cv-card-badge {
  color: #047857;
}

.cv-card.not-found .cv-card-badge {
  color: #dc2626;
}

.cv-card.loading .cv-card-badge {
  color: #2563eb;
}

.cv-chamber-info {
  font-size: 11px;
  color: #475569;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 5px;
  margin-top: 2px;
  line-height: 1.4;
}

/* Floating Trigger Pill on page */
#cv-floating-trigger {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 990;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#cv-floating-trigger:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.cv-trigger-count {
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}
