/* Inherits base styles from styles.css */

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

.tool-wrapper {
  max-width: 900px;
  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: 2.5rem;
}

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

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

.tool-header p {
  font-size: 1.1rem;
  color: #b0b0b0;
}

/* Main tool layout */
.tool-interface {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Form elements styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ccc;
  font-weight: 500;
}

.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid rgba(77, 208, 225, 0.3);
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(15, 15, 35, 0.8);
  color: #ffffff;
  resize: vertical;
  transition: all 0.3s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: #4dd0e1;
  box-shadow: 0 0 0 3px rgba(77, 208, 225, 0.2);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

input[type="color"] {
  width: 100%;
  height: 40px;
  border: none;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
  background-color: transparent;
}

input[type="range"] {
  width: 100%;
  cursor: pointer;
}

/* Output column styling */
.output-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#qrCodeContainer {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  background: rgba(10, 10, 20, 0.5);
  border-radius: 15px;
  border: 2px dashed rgba(77, 208, 225, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: border-color 0.3s ease;
}

#qrCodeContainer.has-code {
  border-color: #4dd0e1;
  border-style: solid;
  padding: 1rem; /* Padding for the generated code */
  background: #fff; /* QR Code lib needs light background */
}

#qrCodeContainer img {
  max-width: 100%;
  border-radius: 10px;
}

.placeholder-text {
  color: #b0b0b0;
  text-align: center;
}

#downloadBtn {
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

/* Utility & Error */
.hidden {
  display: none !important;
}

#errorArea {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tool-interface {
    grid-template-columns: 1fr;
  }
  .output-column {
    margin-top: 2rem;
  }
}
