* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  padding: 30px;
  transition: 0.3s;
}

body.dark {
  background: #0f172a;
  color: #fff;
}

body.light {
  background: #f8fafc;
  color: #000;
}

.container {
  max-width: 600px;
  margin: auto;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

textarea,
input {
  background: #eee;
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: none;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: inherit;
  padding-bottom: 10px;
}

#themeToggle {
  display: none;
}

#fontList {
  margin-top: 15px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
  scrollbar-width: thin;
}

.font-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

body.light .font-card {
  background: #e5e7eb;
}

.font-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.font-name {
  font-weight: bold;
}

.output {
  font-size: 18px;
  margin: 8px 0;
  word-wrap: break-word;
}

.actions button {
  margin-right: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.actions button:active {
  transform: scale(0.9);
}

button {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
}

button.copy {
  padding: 8px;
}