/* CSS for JSON Diff Tool - Matches QR Code Generator Style */

.json-diff-tool {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.json-diff-column {
  flex: 1;
  min-width: 300px;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.json-diff-column textarea {
  width: 100%;
  min-height: 300px;
  font-family: 'Consolas', 'Monaco', monospace;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
  box-sizing: border-box;
  font-size: 0.9em;
  background-color: #ffffff;
}

.json-diff-file-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9em;
  color: #666;
  margin-top: auto; /* Push to bottom if needed */
}

/* Actions Section - Centered or integrated */
.json-diff-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

/* Button Styling To Match QR Code Generator */
.json-diff-actions input[type="submit"],
.json-diff-actions .button {
  background-color: #0d6efd !important;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  
  /* Flexbox alignment fix */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  line-height: 1.2 !important;
  height: auto !important;
  box-sizing: border-box !important;
  margin-top: 0.5rem;
}

.json-diff-actions input[type="submit"]:hover,
.json-diff-actions input[type="submit"]:focus,
.json-diff-actions .button:hover,
.json-diff-actions .button:focus {
  background-color: #0d6efd !important; /* Keep distinct color */
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* Results Section */
.json-diff-results {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.json-diff-summary {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.1em;
}

.json-diff-output {
  white-space: pre-wrap;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  overflow-x: auto;
  color: #333;
}

.json-diff-error {
  color: #d32f2f;
  background-color: #fce4e4;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

.json-diff-empty {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

@media (max-width: 991px) {
  .json-diff-tool {
    flex-direction: column;
  }
  
  .json-diff-column {
    width: 100%;
    min-width: unset;
  }
}

/* CAPTCHA Styling */
.json-diff-tool .captcha {
  margin-top: 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  clear: both;
}

.json-diff-tool .captcha legend,
.json-diff-tool .captcha .captcha__title {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}

.json-diff-tool .captcha .captcha__description {
  color: #a0a0a0;
  font-size: 0.875rem;
  margin-top: 10px;
}

.json-diff-tool .captcha iframe {
  max-width: 100%;
}
