:root {
  --bg-light: #e0e5ec; /* Soft Neumorphic background */
  --card: #e0e5ec; /* Card surface */
  --muted: #555; /* Softer gray for text */
  --accent: #00aaff; /* Accent Blue */
  --accent2: #ff4da6; /* Accent Pink */
  --shadow-dark: #b8bcc2;
  --shadow-light: #ffffff;
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
    "Sebastian Mono", monospace;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: #2e2e2e;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 16px;
}

/* Wrapper */
main.wrap {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
}

.wrap {
  width: 100%;
  max-width: 980px;
}

/* Header Section */
header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  text-align: center;
  justify-content: center;
}

.logo_WC {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

h1 {
  font-size: 22px;
  margin: 0;
  color: var(--accent);
}

p.lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}

@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }
  textarea {
    min-height: 240px;
  }
}

/* Neumorphic Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeIn 0.6s ease forwards;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

/* Textarea */
textarea {
  width: 100%;
  min-height: 300px;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  background: var(--card);
  color: #2e2e2e;
  font-size: 15px;
  resize: vertical;
  font-family: var(--mono);
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  transition: all 0.2s ease;
}
textarea:focus {
  outline: none;
  box-shadow: inset 2px 2px 6px var(--shadow-dark),
    inset -2px -2px 6px var(--shadow-light), 0 0 0 2px var(--accent);
}

/* Controls */
.controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--card);
  color: #2e2e2e;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
}
button.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 600;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.stat {
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  animation: slideUp 0.5s ease forwards;
}
.stat h3 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
}
.stat p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Preview Box */
.preview {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  min-height: 96px;
  white-space: pre-wrap;
  overflow: auto;
  color: #444;
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
}

/* Footer inside card */
.footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
