:root {
  --primary: #4361ee;
  --primary-light: #e0e7ff;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --success: #22c55e;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo-icon {
  font-size: 1.75rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.input-wrap {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--gray-light);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1rem;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #3a56d4;
}

.btn:disabled {
  background: var(--gray-light);
  color: var(--gray);
  cursor: not-allowed;
}

.alert {
  padding: 0.9rem;
  border-left: 4px solid var(--danger);
  background: #fee2e2;
  color: var(--danger);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hidden {
  display: none;
}

.progress-box {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gray);
}

.progress-bar {
  height: 6px;
  background: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar div {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.upload-status {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: var(--gray);
}

.status-success {
  color: var(--success);
}

.status-error {
  color: var(--danger);
}

.result-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--dark);
}

.info-box {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.info-box pre {
  background: #f6f8fa;
  padding: 0.7rem;
  border-radius: 0.4rem;
  overflow: auto;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: -9999px;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 2px dashed var(--primary);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 0.25rem;
}

.file-input-label:hover {
  background: var(--primary);
  color: white;
}

.file-input-label.has-file {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.file-name {
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  margin-top: 0.2rem;
}

.file-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}
