* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #0f0f0f;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  background: #0f0f0f;
  border: 2px solid #e3e3e3;
  overflow: hidden;
}

.header {
  background: #0f0f0f;
  color: #e3e3e3;
  padding: 24px 30px;
  border-bottom: 2px solid #e3e3e3;
  text-align: left;
}

.header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.header p {
  font-size: 0.875rem;
  color: #999;
  font-weight: 400;
}

.content {
  padding: 30px;
}

.input-section label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #e3e3e3;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 1px solid #e3e3e3;
  background: #0f0f0f;
  color: #e3e3e3;
  font-family: "Courier New", monospace;
  font-size: 13px;
  resize: vertical;
  transition: none;
}

textarea:focus {
  outline: none;
  border-color: #e3e3e3;
  box-shadow: inset 0 0 0 1px #e3e3e3;
}

textarea::placeholder {
  color: #666;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #e3e3e3;
  background: #0f0f0f;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

input[type="checkbox"]:checked {
  background: #0f0f0f;
  border-color: #e3e3e3;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #e3e3e3;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

button {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e3e3e3;
  background: #0f0f0f;
  color: #e3e3e3;
  cursor: pointer;
  transition: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover:not(:disabled) {
  background: #e3e3e3;
  color: #0f0f0f;
}

button:disabled {
  background: #1a1a1a;
  color: #666;
  border-color: #333;
  cursor: not-allowed;
}

.btn-primary {
  background: #e3e3e3;
  color: #0f0f0f;
  flex: 1;
}

.btn-primary:hover:not(:disabled) {
  background: #d0d0d0;
}

.btn-secondary {
  background: #0f0f0f;
  color: #e3e3e3;
}

.btn-success {
  background: #0f0f0f;
  color: #e3e3e3;
}

.progress {
  margin-top: 20px;
  padding: 16px;
  background: #0f0f0f;
  border: 1px solid #e3e3e3;
}

.progress-text {
  font-weight: 500;
  margin-bottom: 8px;
  color: #e3e3e3;
  font-size: 0.875rem;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #1a1a1a;
  border: 1px solid #e3e3e3;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #e3e3e3;
  transition: width 0.3s ease;
}

.results {
  margin-top: 30px;
}

.results h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: #e3e3e3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-output {
  background: #0f0f0f;
  border: 1px solid #e3e3e3;
  padding: 20px;
}

.text-output h3 {
  margin-bottom: 15px;
  color: #e3e3e3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-output-content {
  background: #0f0f0f;
  border: 1px solid #e3e3e3;
  padding: 15px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #e3e3e3;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.6;
}

.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f0f0f;
  color: #e3e3e3;
  padding: 12px 20px;
  border: 1px solid #e3e3e3;
  z-index: 1000;
  font-size: 0.875rem;
}

.card-item {
  background: #0f0f0f;
  border: 1px solid #e3e3e3;
  padding: 16px;
  margin-bottom: 12px;
}

.card-item:hover {
  border-color: #e3e3e3;
}

.card-item.error {
  border-color: #e3e3e3;
  background: #1a1a1a;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e3e3e3;
}

.card-mana {
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f0f0f;
  padding: 4px 8px;
  background: #e3e3e3;
  border: 1px solid #e3e3e3;
}

.card-type {
  font-size: 0.875rem;
  color: #999;
  font-style: italic;
  margin-bottom: 12px;
}

.card-text {
  line-height: 1.6;
  color: #e3e3e3;
  white-space: pre-wrap;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #e3e3e3;
  font-size: 0.875rem;
}

.error-message {
  background: #0f0f0f;
  border: 1px solid #e3e3e3;
  color: #e3e3e3;
  padding: 15px;
  margin: 20px 0;
  font-size: 0.875rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state svg {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.sample-text {
  font-size: 0.75rem;
  color: #999;
  margin-top: 8px;
}

.stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-box {
  background: #0f0f0f;
  padding: 12px 16px;
  border: 1px solid #e3e3e3;
  flex: 1;
  min-width: 120px;
}

.stat-label {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e3e3e3;
}

.tab-buttons {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e3e3e3;
}

.tab-button {
  padding: 10px 20px;
  background: #0f0f0f;
  border: 1px solid #e3e3e3;
  border-bottom: none;
  font-weight: 500;
  color: #e3e3e3;
  cursor: pointer;
  transition: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: -1px;
}

.tab-button.active {
  background: #e3e3e3;
  color: #0f0f0f;
}

.tab-button:hover:not(.active) {
  background: #1a1a1a;
}

.version-number {
  text-align: center;
  padding: 16px;
  color: #666;
  font-size: 0.75rem;
  border-top: 1px solid #e3e3e3;
  background: #0f0f0f;
}
