@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #111;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  padding: 2rem;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  color: #2b2d42;
}

header p {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: #444;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.card p {
  margin: 0.5rem 0 1.5rem;
  color: #333;
}

textarea {
  width: 100%;
  min-height: 120px;
  margin: 0 0 1rem 0;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: monospace;
  resize: vertical;
  box-sizing: border-box;
}

button {
  background: #2b2d42;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 0 0.25rem;
}

button:hover {
  background: #1a1c2c;
}

input[type="search"] {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.snippet-item {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  text-align: left;
  font-family: monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  position: relative;
}

.snippet-item button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 4px;
  background: #d62828;
}

.snippet-item button:hover {
  background: #b22222;
}

footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* Toast notification */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2b2d42;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#toast.show {
  opacity: 1;
  pointer-events: auto;
}

.transform-tools {
  margin-top: 1.5rem;
  text-align: center;
}

.transform-tools p {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #2b2d42;
}

.transform-tools button {
  margin: 0 0.3rem 0.5rem 0.3rem;
  min-width: 130px;
}

/* Language Switcher styling */
#langSwitcher {
  margin: 0 auto 1.5rem;
  display: block;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  max-width: 200px;
  cursor: pointer;
}

