/* Стили для AI-Сервиса №2: Подтверждение авторских суждений */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: rgba(37, 99, 235, 0.08);
  --panel-bg: rgba(255, 255, 255, 0.96);
  --ink: #0d1f38;
  --muted: #4a5a70;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background-color: #f8fafc;
  background-image: 
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 40px;
}

.page {
  width: 95vw;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  text-decoration: none;
}

.logo-text {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-family: 'Century Gothic', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0;
}

.logo-text sup {
  font-size: 0.35em;
  line-height: 1;
  position: relative;
  top: 6px;
}

.tagline {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: #8fa1bb;
}

/* Workspace Layout */
.page {
  background-color: #e5e7eb;
  border: 3px solid #1e3a8a;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-bottom: 24px;
  background-color: #d1d5db;
  border-left: 4px solid #9ca3af;
  padding: 16px 20px;
  position: relative;
}

.logo-text {
  color: #111827 !important;
}

.tagline {
  color: #374151 !important;
  font-size: 12px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  width: 100%;
}

@media (max-width: 900px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 550px;
}

.panel-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
  margin: 0;
}

.editor-area {
  width: 100%;
  flex: 1;
  min-height: 350px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
}

.editor-area:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-row {
  display: flex;
  gap: 12px;
}

.button {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
}

.button.primary {
  background-color: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background-color: var(--accent-dark);
}

.button.success {
  background-color: #27ae60;
  color: #ffffff;
}

.button.success:hover {
  background-color: #219653;
}

.button.ghost {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button.ghost:hover {
  background-color: var(--accent-light);
}

/* Judgments demo panel */
.judgments-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  padding-right: 4px;
}

.judgment-card {
  border-left: 4px solid #94a3b8;
  background: #f8fafc;
  padding: 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.judgment-card.confirmed {
  border-left-color: #2ecc71;
}

.judgment-card.rejected {
  border-left-color: #e74c3c;
  opacity: 0.7;
}

.judgment-index {
  font-weight: bold;
  font-size: 12px;
  color: var(--accent);
}

.judgment-sentence {
  font-size: 13px;
  color: #334155;
}

.judgment-normalized input,
.judgment-extracted textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 4px;
}

.judgment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.status-bar {
  background: #f1f5f9;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #475569;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
}

.export-box {
  background: #ecfdf5;
  border: 1px dashed #10b981;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.export-box.hidden {
  display: none !important;
}

.export-title {
  font-weight: bold;
  color: #065f46;
  font-size: 14px;
}

/* Footer row */
.footer-row {
  margin-top: 30px;
  text-align: center;
  color: #8fa1bb;
  font-size: 12px;
  line-height: 1.6;
}
