/* ===========================
   Layout
=========================== */

.grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  align-items: stretch;
  margin: 30px 0;
}

/* ===========================
   Left Panel
=========================== */

.grid > div:first-child {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
  font-size: 15px;
}

input[type="color"] {
  width: 100%;
  height: 55px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 5px;
  background: #fff;
  cursor: pointer;
  transition: 0.25s;
}

input[type="color"]:hover {
  border-color: #2563eb;
}

/* ===========================
   Preview
=========================== */

.preview {
  min-height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
  padding: 25px;
}

/* ===========================
   Result Cards
=========================== */

.result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.card1 {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
  transition: 0.25s;
}

.card1:hover {
  transform: translateY(-3px);
}

.card1:first-child {
  border-top: 4px solid #2563eb;
}

.card1:nth-child(2) {
  border-top: 4px solid #16a34a;
}

.card1:nth-child(3) {
  border-top: 4px solid #9333ea;
}

.card1 {
  color: #475569;
  font-size: 15px;
  font-weight: 600;
}

.card1 div {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
}

/* ===========================
   CSS Output
=========================== */

textarea {
  width: 100%;
  margin-top: 25px;
  padding: 18px;
  height: 120px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #0f172a;
  color: #38bdf8;
  font-family: Consolas, monospace;
  font-size: 14px;
  resize: none;
}

/* ===========================
   Button
=========================== */

button {
  margin-top: 18px;
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

button:active {
  transform: scale(0.98);
}

/* ===========================
   PASS / FAIL
=========================== */

.pass {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  background: #dcfce7;
  color: #15803d;
  font-size: 15px;
  font-weight: 700;
}

.fail {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 15px;
  font-weight: 700;
}

/* ===========================
   Documentation
=========================== */

.doc-section,
.faq-section {
  margin-top: 55px;
  padding-top: 35px;
  border-top: 1px solid #e5e7eb;
}

.doc-section h2,
.faq-section h2 {
  margin-bottom: 18px;
  font-size: 30px;
  color: #0f172a;
}

.doc-section p,
.faq-item p,
.doc-section li {
  line-height: 1.8;
  color: #475569;
}

.doc-section ul {
  padding-left: 20px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-item h3 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 20px;
}

.main_heading {
  font-size: 1.9rem;
}
/* ===========================
   Mobile
=========================== */

@media (max-width: 992px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .preview {
    min-height: 220px;
    font-size: 28px;
  }

  .result {
    grid-template-columns: 1fr;
  }
}
