:root {
  --primary: #4F46E5;
  --accent: #10B981;
  --bg: #F9FAFB;
  --text: #111827;
  --shadow: rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  height: 60px;
  transition: transform 0.3s;
}

.logo.large {
  height: 240px;
  margin-bottom: 1rem;
}

.upload-area {
  width: 100%;
  max-width: 400px;
}

.drop-zone {
  border: 2px dashed var(--primary);
  padding: 2rem;
  background: white;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 8px var(--shadow);
}

.drop-zone:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.drop-zone.dragover {
  background: #eef6ff;
  border-color: var(--accent);
}

.browse {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

progress {
  width: 100%;
  margin-top: 1rem;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  display: none;
}

progress::-webkit-progress-bar {
  background-color: #eee;
}

progress::-webkit-progress-value {
  background-color: var(--primary);
}

#result {
  margin-top: 2rem;
  text-align: center;
}

#result img {
  margin: 0.5rem 0;
}

#result a.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

#result a.btn:hover {
  background: var(--accent);
}

footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #666;
  opacity: 0.8;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .drop-zone {
    padding: 1.5rem;
  }

  .logo.large {
    height: 180px;
  }
}
