/* Inherits base styles from styles.css */

.tool-main-content {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.tool-wrapper {
  max-width: 1200px; /* Wider layout for this tool */
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(77, 208, 225, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tool-main-icon {
  font-size: 2.5rem;
  color: #4dd0e1;
  margin-bottom: 1rem;
}

.tool-header h1 {
  font-size: 2.2rem;
}

/* Tool Actions Toolbar */
.tool-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: rgba(77, 208, 225, 0.2);
  color: #4dd0e1;
}

.action-btn:hover {
  background: rgba(77, 208, 225, 0.4);
  color: #fff;
}

.action-btn.clear {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}
.action-btn.clear:hover {
  background: rgba(255, 107, 107, 0.3);
  color: #fff;
}

/* Formatter Panels */
.formatter-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  min-height: 500px;
}

.panel {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: #1c1e29; /* Darker bg for editors */
  border: 1px solid rgba(77, 208, 225, 0.2);
}

#jsonInput,
#jsonOutput {
  width: 100%;
  height: 100%;
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #abb2bf;
  border: none;
  resize: none;
}

#jsonInput {
  background: transparent;
}
#jsonInput:focus {
  outline: none;
}

#jsonOutput {
  white-space: pre;
  overflow: auto;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #4dd0e1;
  color: white;
  border: none;
  padding: 0.5rem 0.7rem;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.copy-btn:hover {
  opacity: 1;
}

/* Status Area */
.status-area {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}
.status-area.valid {
  background-color: rgba(109, 207, 127, 0.1);
  color: #6dcf7f;
}
.status-area.invalid {
  background-color: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}
.status-area.neutral {
  background-color: rgba(77, 208, 225, 0.1);
  color: #4dd0e1;
}

.hidden {
  display: none;
}

/* SEO Content Section */
.content-section {
  max-width: 900px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(77, 208, 225, 0.2);
  color: #e0e0e0;
}
.content-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.content-section p,
.content-section li {
  line-height: 1.7;
  margin-bottom: 1rem;
}
.content-section ul {
  padding-left: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .formatter-container {
    grid-template-columns: 1fr;
    min-height: 700px;
  }
}
