﻿* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5f7;
  color: #222;
  line-height: 1.6;
}

.app-wrapper {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 20px;
}

.app-header,
.section-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.app-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.app-description {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.text-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd6dd;
  border-radius: 10px;
  font-size: 16px;
}

.text-input:focus {
  outline: 2px solid #8ab4f8;
  border-color: #4d8df7;
}

.upload-area {
  border: 2px dashed #aeb8c2;
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  background: #fafbfd;
  transition: 0.2s;
}

.upload-area.drag-over {
  background: #eef6ff;
  border-color: #1f6feb;
}

.upload-text {
  margin: 0 0 14px;
  color: #555;
  font-size: 15px;
}

.file-input {
  width: 100%;
  max-width: 340px;
  font-size: 14px;
}

.button-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.14);
}

.button-primary {
  background: #1f6feb;
  color: #ffffff;
}

.button-secondary {
  background: #eef2f7;
  color: #222;
}

.result-card {
  border-left: 6px solid #1f6feb;
}

.result-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.result-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f9fb;
  border-radius: 10px;
}

.result-row dt {
  font-weight: 700;
  color: #333;
}

.result-row dd {
  margin: 0;
  min-height: 24px;
  color: #222;
}

.status-area {
  padding: 13px 14px;
  border-radius: 10px;
  background: #f7f9fb;
  border-left: 5px solid #9aa7b5;
  color: #444;
  font-size: 14px;
  white-space: pre-line;
}

.status-success {
  background: #eefaf1;
  border-left-color: #2da44e;
}

.status-warning {
  background: #fff8e6;
  border-left-color: #bf8700;
}

.status-error {
  background: #fff1f1;
  border-left-color: #d1242f;
}

@media (max-width: 480px) {
  .app-wrapper {
    padding: 14px;
  }

  .app-header,
  .section-card {
    padding: 16px;
  }

  .app-title {
    font-size: 24px;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.hidden {
  display: none !important;
}
