/* ===== CodePear Universal Styles ===== */
/* Created by Durgesh Kalya — 2025 */

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #f8fafc, #eef1f5);
  color: #333;
  text-align: center;
  padding: 60px 20px 80px;
  margin: 0;
}

/* Header & Logo */
header {
  text-align: center;
  margin-bottom: 30px;
}

header img {
  width: 160px;
  height: 160px;
  margin-top: 10px;
  border-radius: 4px;
}

header h1 {
  font-size: 2.4em;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.tagline {
  font-size: 1.1em;
  color: #666;
  margin-top: 6px;
  margin-bottom: 25px;
  font-style: italic;
}

/* Navigation */
nav {
  margin-bottom: 20px;
}
nav a {
  font-size: 1em;
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  text-decoration: underline;
}

/* Paragraphs */
p {
  font-size: 1.25em;
  color: #555;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6em;
}

/* Home Page Tools Layout */
.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.tool-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  width: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}
a.tool-card {
  text-decoration: none;
  color: inherit;
}
.tool-card h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
}

/* Forms (for tool pages) */
.form-container {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  width: 360px;
  margin: 0 auto 30px;
  text-align: left;
}

.form-container label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 0.9em;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 4px;
}

.form-container textarea {
  resize: vertical;
}

.form-container button {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  border: none;
  background-color: #007bff;
  color: #fff;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.form-container button:hover {
  background-color: #0056b3;
}

/* QR Display Section */
#qrcode-container {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#qrcode {
  margin-top: 25px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
#downloadButton,
#copyButton {
  margin-top: 10px;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  border: none;
  background: none;
  font-size: 0.95em;
  cursor: pointer;
}
#mobileTip {
  margin-top: 6px;
  font-size: 0.85em;
  color: #555;
}

/* Footer */
footer {
  margin-top: 60px;
  font-size: 0.85em;
  color: #666;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  line-height: 1.6em;
}