* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f7f8fc 0%, #eef2f7 100%);
  color: #1f2937;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.brand h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
}

.brand p {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 24px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.dropzone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: scale(1.01);
}

.dropzone-content {
  text-align: center;
}

.dropzone-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

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

.dropzone-subtitle {
  margin: 10px 0;
  color: #6b7280;
}

.file-name {
  margin-top: 16px;
  font-size: 14px;
  color: #374151;
  word-break: break-word;
}

.actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.primary-btn {
  background: #2563eb;
  color: #ffffff;
  padding: 14px 24px;
  min-width: 220px;
}

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

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

.secondary-btn {
  background: #e5e7eb;
  color: #111827;
  padding: 12px 18px;
}

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

.message {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  display: none;
  font-size: 14px;
  line-height: 1.5;
}

.message.info,
.message.success,
.message.error {
  display: block;
}

.message.info {
  background: #eff6ff;
  color: #1d4ed8;
}

.message.success {
  background: #ecfdf5;
  color: #047857;
}

.message.error {
  background: #fef2f2;
  color: #b91c1c;
}

.rules {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.rules h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.rules ul {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .card {
    padding: 22px;
    border-radius: 16px;
  }

  .brand h1 {
    font-size: 26px;
  }

  .primary-btn {
    width: 100%;
  }
}