/* ===== RAPPORT PANEL - SUIVI GROSSESSE ===== */

.rapport-panel {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
}

/* ===== HEADER ===== */

.rapport-header {
  margin-bottom: 20px;
}

.rapport-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.rapport-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== OPTIONS ===== */

.rapport-options {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-sidebar);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
}

.rapport-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.rapport-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
}

/* ===== ACTIONS ===== */

.rapport-actions {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
}

.rapport-panel .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.rapport-panel .btn-primary:hover {
  background: var(--accent-primary-hover, #c06a4d);
}

.rapport-panel .btn-primary:active {
  transform: scale(0.98);
}

.rapport-panel .btn-primary svg {
  flex-shrink: 0;
}

.rapport-panel .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.rapport-panel .btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===== OUTPUT CONTAINER ===== */

.rapport-output-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rapport-output {
  flex: 1;
  overflow: auto;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin: 0;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.rapport-output:empty::before {
  content: 'Cliquez sur "Générer le rapport" pour afficher le compte-rendu.';
  color: var(--text-muted);
  font-style: italic;
}

/* ===== COPY ACTIONS ===== */

.copy-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.copy-feedback {
  font-size: 12px;
  color: var(--accent-success, #10B981);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-left: 8px;
}

.copy-feedback.visible {
  opacity: 1;
}

.copy-feedback.error {
  color: var(--accent-error, #EF4444);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .rapport-panel {
    padding: 16px;
  }

  .rapport-title {
    font-size: 1.1rem;
  }

  .rapport-actions {
    flex-wrap: wrap;
  }

  .rapport-panel .btn-primary {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .rapport-panel {
    padding: 12px;
  }

  .rapport-output {
    font-size: 11px;
    padding: 12px;
  }

  .copy-actions {
    flex-wrap: wrap;
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .rapport-panel {
    padding: 0;
    background: white;
  }

  .rapport-header,
  .rapport-options,
  .rapport-actions,
  .copy-actions {
    display: none !important;
  }

  .rapport-output-container {
    overflow: visible;
  }

  .rapport-output {
    border: none;
    background: white;
    padding: 0;
    font-size: 11pt;
    line-height: 1.5;
    color: black;
  }

  .rapport-output:empty::before {
    display: none;
  }
}

/* ===== SCROLLBAR ===== */

.rapport-output::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.rapport-output::-webkit-scrollbar-track {
  background: transparent;
}

.rapport-output::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.rapport-output::-webkit-scrollbar-thumb:hover {
  background: var(--border-heavy, #888);
}
