/**
 * Republik AI Assistant - Styles
 * Styles for the test page and bookmarklet overlay UI
 */

/* ========== TEST PAGE STYLES ========== */
body {
  background: #f5f5f5;
}

.landing-page, #sidekick-overlay, #sidekick-sidepanel {
  font-family: 'JetBrains Mono', monospace;
}

.landing-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.landing-page h1 {
  margin-bottom: 10px;
}

.landing-page p {
  color: #666;
  margin-bottom: 20px;
}

.landing-page p a {
  color: #666;
}

.config-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

#bookmarklet-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.bookmarklet-content {
  position: relative;
  transition: filter 0.3s ease;
}

#bookmarklet-section.bookmarklet-blurred .bookmarklet-content {
  filter: blur(4px);
  pointer-events: none;
}

.bookmarklet-overlay {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.25);
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px;
  text-align: center;
}

.bookmarklet-overlay p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.bookmarklet-overlay a {
  color: #0066cc;
  text-decoration: none;
}

.bookmarklet-overlay a:hover {
  text-decoration: underline;
}

.config-section h2,
#bookmarklet-section h2 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 12px;
}

.config-section label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.config-section input[type="text"],
.config-section input[type="password"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  box-sizing: border-box;
}

.config-section input:focus {
  outline: none;
  border-color: #0066cc;
}

.annotation {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.mock-cms {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mock-cms h2 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 16px;
  color: #333;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  box-sizing: border-box;
}

.form-field input[type="file"]::file-selector-button {
  font-family: 'JetBrains Mono', monospace;
}

input[type="file"]::file-selector-button {
  font-family: 'JetBrains Mono', monospace;
}

.form-field textarea {
  min-height: 300px;
  line-height: 1.6;
}

.mock-metadata {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.mock-metadata h3 {
  font-size: 14px;
  color: #999;
}

/* Bookmarklet install button */
.bookmarklet-btn {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bookmarklet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bookmarklet-btn:active {
  cursor: grabbing;
}

/* ========== BOOKMARKLET OVERLAY STYLES ========== */
#sidekick-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999998;
  font-family: 'JetBrains Mono', monospace;
}

/* Initial state: button at top of page */
#sidekick-overlay.animating {
  animation: sidekick-dropdown 0.5s ease-out forwards;
}

@keyframes sidekick-dropdown {
  0% {
    transform: translateY(calc(-100vh + 100px));
  }
  70% {
    transform: translateY(30px); /* Overshoot past final position */
  }
  85% {
    transform: translateY(-8px); /* Bounce back up */
  }
  100% {
    transform: translateY(0); /* Settle into final position */
  }
}

#sidekick-toggle {
  padding: 14px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

#sidekick-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
  background: linear-gradient(135deg, #0073e6 0%, #0066cc 100%);
}

#sidekick-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0, 102, 204, 0.4);
}

#sidekick-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 8px 0;
  min-width: 220px;
  display: none;
}

#sidekick-menu.open {
  display: block;
}

#sidekick-menu-header {
  padding: 12px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidekick-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: #333;
  font-family: 'JetBrains Mono', monospace;
}

.sidekick-menu-item:hover {
  background: #f5f5f5;
}

.sidekick-menu-item-inactive {
  opacity: 0.5;
  cursor: not-allowed;
  color: #999;
}

.sidekick-menu-item-inactive:hover {
  background: none;
}

.sidekick-coming-soon {
  font-size: 10px;
  font-weight: 500;
  color: #999;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ========== SIDEPANEL STYLES ========== */
#sidekick-sidepanel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  max-height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 999999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden; /* Prevent sidepanel itself from scrolling */
}

#sidekick-sidepanel.open {
  right: 0;
}

#sidekick-panel-warning {
  padding: 12px 20px;
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  color: #856404;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  flex-shrink: 0;
}

/* Testing mode banner - shown when ?testing=true in URL */
.sidekick-testing-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 8px 20px;
  background: #e3f2fd;
  border-bottom: 1px solid #2196f3;
  color: #1565c0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
  z-index: 999998; /* Below sidepanel (999999) */
  box-sizing: border-box;
}

/* Add padding to body when testing banner is present */
body.has-testing-banner {
  padding-top: 35px;
}

#sidekick-panel-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
}

#sidekick-panel-title-wrapper {
  flex: 1;
  min-width: 0;
}

#sidekick-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidekick-title-emoji {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
}

#sidekick-panel-description {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

#sidekick-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

#sidekick-panel-close:hover {
  background: #e5e5e5;
}

#sidekick-panel-close svg {
  width: 18px;
  height: 18px;
  fill: #666;
}

#sidekick-panel-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  min-height: 0; /* Important for flex children to allow shrinking */
}

/* Prompt editor section */
#sidekick-prompt-section {
  margin-bottom: 20px;
}

#sidekick-prompt-section summary {
  cursor: pointer;
  font-size: 13px;
  color: #666;
  padding: 8px 0;
  user-select: none;
}

#sidekick-prompt-section summary:hover {
  color: #333;
}

#sidekick-prompt-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  margin-top: 8px;
}

#sidekick-prompt-textarea:focus {
  outline: none;
  border-color: #0066cc;
}

/* Extracted content preview */
#sidekick-extracted-section {
  margin-bottom: 0px;
  display: none; /* Hidden by default, shown only in testing mode */
}

/* Show extracted section in testing mode */
#sidekick-extracted-section.testing-mode {
  display: block;
}

#sidekick-extracted-section summary {
  cursor: pointer;
  font-size: 13px;
  color: #666;
  padding: 8px 0;
  user-select: none;
}

#sidekick-extracted-preview {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: #666;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 8px;
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', monospace;
}

/* Action buttons */
#sidekick-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

#sidekick-send-btn {
  flex: 1;
  padding: 12px 20px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'JetBrains Mono', monospace;
}

#sidekick-send-btn:hover {
  background: #333;
}

#sidekick-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#sidekick-model-info {
  font-size: 10px;
  color: #999;
  margin: 4px 0 0 0;
  text-align: center;
}

/* Results section */
#sidekick-results {
  padding-top: 20px;
}

#sidekick-results-header {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

#sidekick-results-warning {
  background: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #c62828;
  margin-bottom: 16px;
  line-height: 1.5;
  text-align: center;
}

#sidekick-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidekick-result-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidekick-result-item.sidekick-result-preserved {
  background: #e8f4f8;
  border-left: 3px solid #0066cc;
  margin-bottom: 12px;
}

.sidekick-preserved-badge {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #0066cc;
  background: rgba(0, 102, 204, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: fit-content;
}

.sidekick-result-image-container {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidekick-result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidekick-image-error {
  font-size: 11px;
  color: #999;
  text-align: center;
  padding: 8px;
}

.sidekick-result-text-container {
  flex: 1;
  min-width: 0;
}

.sidekick-result-text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  word-wrap: break-word;
}

.sidekick-result-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidekick-iterate-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #e8f4f8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: #0066cc;
  line-height: 1;
}

.sidekick-iterate-btn:hover {
  background: #d1e7ed;
  transform: scale(1.05);
}

.sidekick-copy-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: 'JetBrains Mono', monospace;
}

.sidekick-copy-btn:hover {
  background: #e5e5e5;
}

.sidekick-copy-btn svg {
  width: 16px;
  height: 16px;
  fill: #666;
}

.sidekick-copy-btn.copied {
  background: #d4edda;
}

.sidekick-copy-btn.copied svg {
  fill: #28a745;
}

/* Image group with multiple suggestions */
.sidekick-result-image-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidekick-suggestions-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidekick-suggestion-label {
  font-weight: 600;
  color: #666;
  margin-right: 4px;
}

/* Custom title input for titles usecase */
.sidekick-custom-title-input {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #ddd;
}

.sidekick-custom-title-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.sidekick-custom-title-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.sidekick-custom-title-field {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: #333;
  transition: border-color 0.15s;
}

.sidekick-custom-title-field:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.sidekick-custom-title-field::placeholder {
  color: #999;
}

.sidekick-custom-title-iterate-btn {
  flex-shrink: 0;
  width: 40px;
  height: auto;
  border-radius: 6px;
  border: none;
  background: #e8f4f8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: #0066cc;
  line-height: 1;
  padding: 0;
}

.sidekick-custom-title-iterate-btn:hover {
  background: #d1e7ed;
  transform: scale(1.05);
}

.sidekick-custom-title-iterate-btn:active {
  transform: scale(0.98);
}

/* Text/chat content display */
.sidekick-result-text-content {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sidekick-result-text-content strong {
  font-weight: 600;
  color: #1a1a1a;
}

.sidekick-result-text-content em {
  font-style: italic;
}

.sidekick-result-text-content ul {
  margin: 12px 0;
  padding-left: 24px;
  list-style-type: disc;
}

.sidekick-result-text-content li {
  margin: 6px 0;
}

/* Markdown tables */
.sidekick-result-text-content table.sidekick-markdown-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
}

.sidekick-result-text-content table.sidekick-markdown-table th,
.sidekick-result-text-content table.sidekick-markdown-table td {
  padding: 6px 8px;
  border: 1px solid #ddd;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sidekick-result-text-content table.sidekick-markdown-table th {
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
  color: #333;
}

.sidekick-result-text-content table.sidekick-markdown-table td {
  color: #666;
}

/* Column widths for fact-pre-check tables (70/30 split) */
.sidekick-result-text-content[data-usecase="fact-pre-check"] table.sidekick-markdown-table th:nth-child(1),
.sidekick-result-text-content[data-usecase="fact-pre-check"] table.sidekick-markdown-table td:nth-child(1) {
  width: 70%;
}

.sidekick-result-text-content[data-usecase="fact-pre-check"] table.sidekick-markdown-table th:nth-child(2),
.sidekick-result-text-content[data-usecase="fact-pre-check"] table.sidekick-markdown-table td:nth-child(2) {
  width: 30%;
}

/* Column widths for name-check tables (50/50 split) */
.sidekick-result-text-content[data-usecase="name-check"] table.sidekick-markdown-table th:nth-child(1),
.sidekick-result-text-content[data-usecase="name-check"] table.sidekick-markdown-table td:nth-child(1) {
  width: 50%;
}

.sidekick-result-text-content[data-usecase="name-check"] table.sidekick-markdown-table th:nth-child(2),
.sidekick-result-text-content[data-usecase="name-check"] table.sidekick-markdown-table td:nth-child(2) {
  width: 50%;
}

/* Column widths for 3-column tables (if any exist) */
.sidekick-result-text-content table.sidekick-markdown-table th:nth-child(3),
.sidekick-result-text-content table.sidekick-markdown-table td:nth-child(3) {
  width: auto;
}

.sidekick-result-text-content table.sidekick-markdown-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.sidekick-result-text-content table.sidekick-markdown-table tbody tr:hover {
  background: #f0f0f0;
}

/* Loading state */
#sidekick-loading {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

#sidekick-loading.visible {
  display: block;
}

.sidekick-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #333;
  border-radius: 50%;
  animation: sidekick-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

#sidekick-loading-text {
  font-size: 14px;
  color: #666;
}

/* Inline loading indicator in results list */
.sidekick-inline-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: #fafafa;
  border-radius: 8px;
  margin: 8px 0;
}

.sidekick-inline-loading .sidekick-spinner {
  margin-bottom: 8px;
}

.sidekick-inline-loading-text {
  font-size: 13px;
  color: #666;
}

/* Error state */
#sidekick-error {
  display: none;
  background: #fff5f5;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  padding: 16px;
  color: #cc0000;
  font-size: 14px;
}

#sidekick-error.visible {
  display: block;
}

/* ========== FEEDBACK SYSTEM ========== */
.sidekick-feedback-container {
  margin-top: 24px;
  padding: 20px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  /* Initially just tall enough for rating */
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* When expanded, increase max-height to show full content */
.sidekick-feedback-container.expanded {
  max-height: 80vh;
  overflow-y: auto;
  padding-bottom: 20px; /* Restore padding when expanded */
}

.sidekick-feedback-rating {
  margin-bottom: 0;
  flex-shrink: 0;
}

.sidekick-feedback-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
}

.sidekick-feedback-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sidekick-feedback-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #333;
}

.sidekick-feedback-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.sidekick-feedback-btn.selected {
  background: #e8f4f8;
  border-color: #0066cc;
  color: #0066cc;
}

.sidekick-feedback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sidekick-feedback-emoji {
  font-size: 16px;
  line-height: 1;
}

.sidekick-feedback-label-text {
  font-weight: 500;
}

.sidekick-feedback-comment {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
}

/* Show comment section when container is expanded */
.sidekick-feedback-container.expanded .sidekick-feedback-comment {
  max-height: 500px;
  opacity: 1;
  margin-top: 16px;
}

.sidekick-feedback-comment-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.sidekick-feedback-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  min-height: 80px;
}

.sidekick-feedback-textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.sidekick-feedback-textarea:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.sidekick-feedback-context-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidekick-feedback-context-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #0066cc;
}

.sidekick-feedback-context-label {
  font-size: 12px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.sidekick-feedback-submit {
  align-self: flex-start;
  padding: 10px 20px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'JetBrains Mono', monospace;
}

.sidekick-feedback-submit:hover:not(:disabled) {
  background: #333;
}

.sidekick-feedback-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.sidekick-feedback-submit.success {
  background: #28a745;
}

/* ========== EXAMPLE RESPONSE STYLES ========== */

/* Example Response Button (in actions) */
.sidekick-example-btn {
  background: #f0f4f8;
  color: #4a5568;
  border: 1px dashed #a0aec0;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.sidekick-example-btn:hover {
  background: #e2e8f0;
  border-color: #718096;
}

/* Example Banner */
.sidekick-example-banner {
  background: linear-gradient(135deg, #ebf4ff 0%, #e6fffa 100%);
  border: 1px solid #90cdf4;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.sidekick-example-text {
  font-size: 13px;
  color: #2d3748;
  line-height: 1.4;
}

.sidekick-example-text strong {
  color: #2b6cb0;
}

.sidekick-example-text small {
  color: #718096;
}

/* Download Example Response Button (Testing Mode) */
.sidekick-download-example-btn {
  background: #4299e1;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.sidekick-download-example-btn:hover {
  background: #3182ce;
}

.sidekick-download-example-btn:active {
  background: #2c5282;
}

/* ========== FOOTER STYLES ========== */
.site-footer {
  font-family: 'JetBrains Mono', monospace;
  margin-top: 60px;
  padding: 40px 20px;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.footer-content a {
  color: #666;
}

.footer-content a:hover {
  color: #333;
}

/* ========== MOBILE RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  #sidekick-sidepanel {
    width: 100vw;
    right: -100vw;
  }
  
  #sidekick-sidepanel.open {
    right: 0;
  }
}
