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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  width: 500px;
  /* 400px -> 500px */
  min-height: 350px;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 48px;
  height: 48px;
}

.header h1 {
  font-size: 24px;
  /* 18px -> 24px */
  font-weight: 700;
  color: #667eea;
  margin: 0;
}

.content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: white;
}

.section {
  margin-bottom: 16px;
}

.label {
  display: block;
  font-size: 14px;
  /* 12px -> 14px */
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 18px;
  /* 14px -> 18px */
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}

.textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-box {
  padding: 14px;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  word-wrap: break-word;
  line-height: 1.6;
  font-size: 18px;
  /* 14px -> 18px */
  min-height: 80px;
  max-height: 250px;
  overflow-y: auto;
}

.original-text {
  color: #666;
}

.translated-text {
  color: #333;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 16px 0;
}

.button-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.button-group-inline {
  display: flex;
  gap: 8px;
}

.btn {
  flex: 1;
  padding: 14px 20px;
  /* Larger padding */
  border: none;
  border-radius: 8px;
  font-size: 16px;
  /* 14px -> 16px */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 239, 125, 0.4);
}

.mt-12 {
  margin-top: 12px;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e8e8e8;
}

.btn-secondary:active {
  background: #e0e0e0;
}

.hidden {
  display: none !important;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.error-message {
  padding: 12px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  color: #c33;
  font-size: 13px;
  margin-bottom: 16px;
}

.translation-result {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}