/* Notary Audit Page Styles - Matching App Theme */

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.mb-1 {
  margin-bottom: 1rem;
}

/* Document Requirements Section */
.document-requirements {
  margin: 0rem;
}

.document-requirements-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.document-requirements-row .field {
  flex: 1;
  margin-bottom: 0;
}

.document-requirements .ui.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ui.label {
  cursor: auto !important;
}

/* Upload Area */
.upload-area {
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  margin: 1rem 0;
  transition: all 0.2s;
  background: #f8fafc;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #047a59;
  background: #EDF3FF;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-area h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.sub-text {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.file-preview-list {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: #EDF3FF;
  border-radius: 6px;
  font-size: 0.9rem;
  align-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.file-item .name {
  color: #1f2937;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-graphic {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.spinner-ring {
  width: 80px;
  height: 80px;
  border: 4px solid #e5e7eb;
  border-top-color: #047a59;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
}

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

.loading-graphic .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  z-index: 1;
}

.loading-state h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2rem;
}

.steps-progress {
  text-align: left;
  margin-top: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.step:last-child {
  border-bottom: none;
}

.step.active {
  color: #047a59;
  font-weight: 600;
}

/* Documents requis présents : utiliser le vert Equimmox */
.document-requirements .ui.green.label {
  background-color: #047a59 !important;
  border-color: #047a59 !important;
}

.step.active::before {
  content: '➤';
  margin-right: 0.5rem;
}

/* Report View */
.result-header {
  margin-bottom: 1rem;
}

.report-paper {
  background: white;
  padding: 2rem 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: #1f2937;
  min-height: 400px;
}

.report-paper h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1f2937;
  border-bottom: 2px solid #047a59;
  padding-bottom: 1rem;
}

.report-paper h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #047a59;
}

.report-paper h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  color: #1f2937;
}

.report-paper ul,
.report-paper ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.report-paper ul li,
.report-paper ol li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.report-paper ul {
  list-style-type: disc;
}

.report-paper ol {
  list-style-type: decimal;
}

.report-paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.report-paper table th,
.report-paper table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.report-paper table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 2px solid #047a59;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.report-paper table tr:hover {
  background: #f8fafc;
}

.report-paper table tr:last-child td {
  border-bottom: none;
}

.report-paper code {
  background: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e11d48;
}

/* Blockquote styling - for conclusions and notes */
.report-paper blockquote {
  border-left: 4px solid #047a59;
  background: #eff6ff;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.6;
}

.report-paper blockquote p {
  margin-bottom: 0.5rem;
}

.report-paper blockquote p:last-child {
  margin-bottom: 0;
}

.report-paper blockquote strong {
  color: #047a59;
  font-weight: 600;
}

.report-paper pre {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  margin: 1rem 0;
}

.report-paper pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.report-paper blockquote {
  border-left: 4px solid #047a59;
  background: #eff6ff;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.6;
  color: #1f2937;
  font-style: normal;
}

.report-paper blockquote p {
  margin-bottom: 0.5rem;
}

.report-paper blockquote p:last-child {
  margin-bottom: 0;
}

.report-paper blockquote strong {
  color: #047a59;
  font-weight: 600;
}

.report-paper hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2rem 0;
}

.report-paper strong {
  color: #1f2937;
  font-weight: 700;
}

.report-paper p {
  margin-bottom: 1rem;
}

/* Form Actions */
.form-actions {
  margin-top: 2rem;
}

.result-section-bottom {
  padding: 10px 0;
}

/* Match app input styling */
.ui.form input[type="text"],
.ui.form input[type="email"],
.ui.form input[type="tel"] {
  background: #EDF3FF;
}

/* Responsive */
@media only screen and (max-width: 686px) {
  .report-paper {
    padding: 1rem 0;
  }

  .upload-area {
    padding: 2rem 1rem;
  }

  .form-layout {
    padding: 20px;
  }

  .card-shadow {
    border-radius: 6px;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .step-subtitle {
    font-size: 1rem;
  }

  .document-requirements-row {
    flex-direction: column;
    gap: 1rem;
  }
}
