/* JSON Formatter Tool Styles */

.json-page {
  min-height: 100vh;
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.json-tool-card {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 30px 80px rgba(102, 126, 234, 0.12);
}

.json-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1a1a2e;
}

.json-input {
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  padding: 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: #1f2937;
  resize: vertical;
  background: #f8fbff;
  line-height: 1.6;
  margin-bottom: 22px;
}

.json-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.output-panel {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  background: #0f172a;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #1e293b;
}

.output-header h2 {
  margin: 0;
  color: #f8fafc;
}

.status-message {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.status-message.success {
  color: #7dd3fc;
}

.status-message.error {
  color: #f87171;
}

.output-box {
  padding: 24px;
  min-height: 280px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.json-output {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.json-key { color: #38bdf8; }
.json-string { color: #a7f3d0; }
.json-number { color: #fda4af; }
.json-literal { color: #facc15; }

@media (max-width: 768px) {
  .json-tool-card {
    padding: 24px;
  }

  .json-input {
    min-height: 180px;
  }

  .output-box {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .json-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .output-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}