:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

p {
  margin: 0;
  color: #4b5563;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.output {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  color: #111827;
}

.modal-content p {
  margin-bottom: 16px;
  color: #4b5563;
}

.modal-content input {
  margin-bottom: 24px;
}

.modal-content button {
  width: 100%;
  justify-content: center;
}

.btn-small {
  display: inline-flex;
  padding: 8px 12px;
  font-size: 0.875rem;
  background: #6b7280;
  margin-left: auto;
}

.btn-small:hover {
  background: #4b5563;
}
