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

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

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 520px;
  padding: 40px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 28px;
}

.drop-zone {
  border: 2px dashed #d0d5dd;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #1F4E79;
  background: #f8faff;
}

.drop-zone-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.drop-zone-text {
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.drop-zone-hint {
  color: #999;
  font-size: 13px;
  margin-top: 6px;
}

.hidden {
  display: none !important;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8faff;
  border-radius: 10px;
  margin-top: 20px;
}

.file-info-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-info-size {
  font-size: 12px;
  color: #999;
}

.status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status.loading {
  background: #f0f7ff;
  color: #1F4E79;
}

.status.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.status.error {
  background: #fce4ec;
  color: #c62828;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d0d5dd;
  border-top-color: #1F4E79;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.result-item {
  background: #f8faff;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.result-item-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.result-item-value {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

.result-item-value.positive { color: #2e7d32; }
.result-item-value.negative { color: #c62828; }

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 20px;
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.btn-primary {
  background: #1F4E79;
  color: #fff;
}

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

.btn-primary {
  background: #1F4E79;
  color: #fff;
}

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

.btn-outline {
  background: #fff;
  color: #1F4E79;
  border: 2px solid #1F4E79;
}

.btn-outline:hover:not(:disabled) {
  background: #f8faff;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-group .btn {
  margin-top: 0;
  flex: 1;
}

.filter-section {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding: 14px 16px;
  background: #f8faff;
  border-radius: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1F4E79;
  cursor: pointer;
}
