/* styleCode.css */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #0f172a;
  padding-bottom: 40px;
}

.info-section {
  background: white;
  border: 1px solid rgba(0, 0, 143, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
  max-width: 900px;
  margin: 24px auto;
  text-align: center;
}

.info-section h2 {
  margin: 0 0 12px;
  color: #00008f;
  font-size: 1.7rem;
}

.info-section p {
  margin: 0;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
}

.code-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.code-panel {
  background: white;
  border: 1px solid rgba(0, 0, 143, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 16px;
  min-height: 80vh;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

.code-panel h2 {
  margin: 0 0 12px;
  color: #00008f;
  position: sticky;
  top: 0;
  background: white;
  padding: 6px 0;
  z-index: 1;
}

.code-panel pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  font-size: 13px;
}

.code-panel code {
  font-family: Consolas, monospace;
}

.download-section {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.download-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #ff1721;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.3s;
  border: 2px solid transparent;
}

.download-btn:hover {
  transform: translateY(-2px);
  background: #d8141d;
}

.download-section p {
  margin-top: 12px;
  color: #475569;
}

@media (max-width: 900px) {
  .code-layout {
    grid-template-columns: 1fr;
  }

  .code-panel {
    min-height: auto;
    max-height: none;
  }

  .info-section {
    margin: 16px;
    padding: 20px;
  }
}