/**
 * Listing Assistant Styles
 * Voice-powered listing creation interface
 */

/* ============================================================ */
/* CSS Variables */
/* ============================================================ */

:root {
  --la-accent: #f47920;
  --la-accent-hover: #e06810;
  --admin-primary: #2563eb;
  --admin-primary-hover: #1d4ed8;
  --admin-primary-light: #3b82f6;
  --admin-success: #16a34a;
  --admin-success-light: rgba(22, 163, 74, 0.1);
  --admin-danger: #dc2626;
  --admin-danger-hover: #b91c1c;
  --admin-warning: #f59e0b;
  --admin-text: #1f2937;
  --admin-text-muted: #6b7280;
  --admin-bg: #fafafa;
  --admin-card-bg: #ffffff;
  --admin-border: #e5e7eb;
}

/* ============================================================ */
/* Assistant Header */
/* ============================================================ */

.assistant-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.assistant-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.back-link {
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

.header-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.brand-highlight {
  color: var(--la-accent);
}

.header-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-connect-btn {
  background-color: var(--la-accent);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-connect-btn:hover {
  background-color: var(--la-accent-hover);
  transform: scale(1.02);
}

.header-connect-btn:active {
  transform: scale(0.98);
}

.header-disconnect-btn {
  background-color: var(--admin-danger);
}

.header-disconnect-btn:hover {
  background-color: var(--admin-danger-hover);
}

.header-share-btn {
  background-color: var(--admin-primary);
}

.header-share-btn:hover {
  background-color: var(--admin-primary-hover);
}

.header-status {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .assistant-header {
    padding: 0.75rem 1rem;
  }

  .assistant-header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .header-left {
    justify-content: center;
  }

  .header-center {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .header-connect-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .header-status {
    text-align: center;
  }

  .header-right {
    justify-content: center;
  }
}

/* ============================================================ */
/* Main Layout */
/* ============================================================ */

.assistant-main {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.assistant-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.card-body .text-import-input {
  flex: 1;
  min-height: 200px;
}

/* ============================================================ */
/* Card Panel (unified style) */
/* ============================================================ */

.card-panel {
  background: var(--admin-card-bg);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-panel:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d6a97 100%);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-title.connecting {
  animation: glow 1.5s ease-in-out infinite;
}

.card-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding: 1.25rem;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

/* Collapsible panel */
.card-collapsible {
  height: auto;
}

.card-collapsible.collapsed {
  height: auto;
}

.card-header-toggle {
  cursor: pointer;
  user-select: none;
}

.card-header-toggle:hover {
  background: linear-gradient(135deg, #2a4a6f 0%, #3d6a97 50%, #4d7aa7 100%);
}

.collapse-icon {
  color: white;
  font-size: 0.8rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.card-collapsible.expanded .collapse-icon {
  transform: rotate(180deg);
}

.card-body-collapsible {
  flex: 0;
}

.btn-header {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

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

/* ============================================================ */
/* Responsive Breakpoints */
/* ============================================================ */

@media (max-width: 1200px) {
  .assistant-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .assistant-layout {
    grid-template-columns: 1fr;
  }
  .assistant-main {
    padding: 1rem;
  }
}

/* ============================================================ */
/* Panel Styles */
/* ============================================================ */

.assistant-panel {
  background: var(--admin-card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.assistant-panel h2 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: var(--admin-text);
  font-weight: 600;
}

/* ============================================================ */
/* Image Uploader - Actions Layout */
/* ============================================================ */

.image-upload-actions {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.image-upload-actions .drop-zone {
  flex: 1;
}

.camera-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--admin-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 90px;
}

.camera-btn:hover {
  background: var(--admin-primary-hover, #1d4ed8);
  transform: scale(1.02);
}

.camera-btn svg {
  width: 28px;
  height: 28px;
}

/* Camera Preview Container */
.camera-container {
  margin-top: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.camera-container video {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  background: #000;
}

.camera-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.8);
}

.camera-capture-btn {
  padding: 0.75rem 2rem;
  background: var(--admin-success, #22c55e);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.camera-capture-btn:hover {
  background: #16a34a;
  transform: scale(1.05);
}

.camera-cancel-btn {
  padding: 0.75rem 1.5rem;
  background: var(--admin-text-muted);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.camera-cancel-btn:hover {
  background: var(--admin-danger);
}

/* Image Uploader - Drop Zone */
/* ============================================================ */

.drop-zone {
  border: 2px dashed var(--admin-border);
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--admin-bg);
}

.drop-zone:hover {
  border-color: var(--admin-primary);
  background: rgba(37, 99, 235, 0.05);
}

.drop-zone.drag-over {
  border-color: var(--admin-primary);
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.01);
}

.drop-zone-content p {
  margin: 0.5rem 0;
  color: var(--admin-text-muted);
}

.drop-zone-hint {
  font-size: 0.85rem;
  color: var(--admin-primary);
}

/* ============================================================ */
/* Image Uploader - Error Display */
/* ============================================================ */

.upload-error {
  background: var(--admin-danger);
  color: white;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  text-align: center;
  animation: slideDown 0.3s ease;
}

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

/* ============================================================ */
/* Image Uploader - Thumbnail Grid */
/* ============================================================ */

.thumbnail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnail {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 56px;
  height: 56px;
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================ */
/* Image Uploader - Remove Button */
/* ============================================================ */

.remove-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--admin-danger);
  color: white;
  border: 2px solid white;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.remove-btn:hover {
  background: var(--admin-danger-hover);
  transform: scale(1.15);
}

/* Hide thumbnail info for icon-sized thumbnails */
.thumbnail-info {
  display: none;
}

/* ============================================================ */
/* Upload Progress */
/* ============================================================ */

.upload-progress {
  text-align: center;
  padding: 1rem;
  color: var(--admin-primary);
  font-weight: 500;
  animation: pulse 1.5s infinite;
}

/* ============================================================ */
/* Extraction Status */
/* ============================================================ */

.extraction-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

.extraction-status.loading {
  background: rgba(37, 99, 235, 0.1);
  color: var(--admin-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  animation: pulse 1.5s infinite;
}

.extraction-status.success {
  background: var(--admin-success-light);
  color: var(--admin-success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.extraction-status.error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--admin-danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ============================================================ */
/* Listing Panel */
/* ============================================================ */

.listing-panel {
  background: var(--admin-bg);
  border-radius: 8px;
  padding: 1rem;
}

.listing-panel h2 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--admin-text);
}

/* ============================================================ */
/* Progress Bar */
/* ============================================================ */

.progress-bar {
  position: relative;
  height: 24px;
  background: var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--admin-primary), var(--admin-primary-light));
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* ============================================================ */
/* Listing Fields */
/* ============================================================ */

.listing-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.listing-field {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.listing-field.filled {
  background: var(--admin-success-light);
  border-color: rgba(22, 163, 74, 0.2);
}

.listing-field.empty {
  background: white;
  border-color: var(--admin-border);
}

.listing-field.filled:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.1);
}

/* ============================================================ */
/* Field Icons and Content */
/* ============================================================ */

.field-icon {
  font-size: 1rem;
  line-height: 1.2;
  margin-top: 2px;
}

.listing-field.filled .field-icon {
  color: var(--admin-success);
}

.listing-field.empty .field-icon {
  color: #d1d5db;
}

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

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.125rem;
}

.field-value {
  display: block;
  font-size: 0.9rem;
  color: var(--admin-text);
  word-break: break-word;
  line-height: 1.4;
}

.field-empty {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: #9ca3af;
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  font-style: italic;
  color: #9ca3af;
  opacity: 0.8;
}

/* ============================================================ */
/* Save Section */
/* ============================================================ */

.save-section {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

/* ============================================================ */
/* Chat Panel (listingbot style) */
/* ============================================================ */

.chat-panel {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  background: linear-gradient(135deg, #1e3a5f, #2d5a87);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: white;
}

.chat-title.connecting {
  animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(100, 108, 255, 0.8);
  }
}

.chat-icon {
  font-size: 1.3rem;
}

.chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding: 1rem;
}

/* ============================================================ */
/* Transcript */
/* ============================================================ */

.transcript {
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--admin-bg);
  border-radius: 6px;
  border: 1px solid var(--admin-border);
}

.transcript::-webkit-scrollbar {
  width: 8px;
}

.transcript::-webkit-scrollbar-track {
  background: transparent;
}

.transcript::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.transcript::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.transcript-item {
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

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

.transcript-item.user {
  background: rgba(37, 99, 235, 0.1);
  margin-left: 1rem;
  border-left: 3px solid var(--admin-primary);
}

.transcript-item.assistant {
  background: var(--admin-success-light);
  margin-right: 1rem;
  border-left: 3px solid var(--admin-success);
}

.transcript-item.system {
  background: rgba(100, 100, 100, 0.1);
  margin: 0.25rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--admin-text-muted);
  border: none;
}

.transcript-item .role {
  font-weight: 600;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.25rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ============================================================ */
/* Browser Warning */
/* ============================================================ */

.browser-warning {
  background: var(--admin-warning);
  color: #1a1a1a;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  border: 2px solid #d97706;
  animation: slideDown 0.3s ease;
}

.browser-warning p {
  margin: 0;
  font-weight: 500;
}

/* ============================================================ */
/* Limit Warning */
/* ============================================================ */

.limit-warning {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  color: var(--admin-danger);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.limit-warning a {
  color: var(--admin-danger);
  text-decoration: underline;
  font-weight: 600;
}

.limit-warning a:hover {
  color: var(--admin-danger-hover);
}

/* ============================================================ */
/* Usage Display */
/* ============================================================ */

.usage-display {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.usage-display.low {
  color: #ffc107;
  background: rgba(255, 193, 7, 0.2);
  font-weight: 600;
}

/* ============================================================ */
/* Success Modal */
/* ============================================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.success-modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--admin-success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.success-modal h2 {
  margin: 0 0 1rem 0;
  color: var(--admin-success);
  font-size: 1.5rem;
}

.success-summary {
  background: var(--admin-bg);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: left;
  border: 1px solid var(--admin-border);
}

.success-summary .summary-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--admin-text);
}

.success-summary .summary-price {
  color: var(--admin-primary);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0.25rem 0;
}

.success-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================ */
/* Button Styles */
/* ============================================================ */

.btn-danger {
  background: var(--admin-danger);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: var(--admin-danger-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

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

/* ============================================================ */
/* Utility Classes */
/* ============================================================ */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================================ */
/* Header Logout Button Override */
/* ============================================================ */

.assistant-header .btn-logout {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.assistant-header .btn-logout:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================================ */
/* Text Import Section */
/* ============================================================ */

.text-import-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  background: var(--admin-bg);
  color: var(--admin-text);
}

.text-import-input:focus {
  outline: none;
  border-color: var(--la-accent);
  box-shadow: 0 0 0 2px rgba(244, 121, 32, 0.1);
}

.text-import-input::placeholder {
  color: var(--admin-text-muted);
  font-size: 0.8rem;
}

.btn-extract {
  margin-top: 0.5rem;
  width: 100%;
}

/* ============================================================ */
/* Draft Recovery Modal */
/* ============================================================ */

.draft-modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  animation: scaleIn 0.3s ease;
}

.draft-modal h2 {
  margin: 0 0 1rem 0;
  color: var(--admin-text);
  font-size: 1.25rem;
}

.draft-summary {
  font-size: 1rem;
  color: var(--admin-text);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.draft-time {
  font-size: 0.875rem;
  color: var(--admin-text-muted);
  margin: 0 0 1.5rem 0;
}

.draft-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
