* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #ff7b00, #ff4d4d);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #111;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo { font-size: 26px; font-weight: bold; }
.logo span { color: #ff7b00; }

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
nav a {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover { color: #ff7b00; }

main {
  flex: 1;
  text-align: center;
  padding: 40px 20px;
}
h1 { margin-bottom: 30px; }

.upload-btn {
  background: #ff7b00;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-right: 10px;
}
.upload-btn:hover { background: #ff5500; }

button {
  background: #222;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}
button:hover { background: #444; }

.progress {
  width: 90%;
  max-width: 500px;
  margin: 30px auto;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  overflow: hidden;
}
.progress-bar {
  width: 0;
  height: 100%;
  background: limegreen;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  color: #111;
  transition: width 0.2s ease;
}

#uploadStatus { margin-top: 20px; font-size: 16px; }

.result {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
}
.result input {
  width: 90%;
  max-width: 400px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  text-align: center;
}
.result button {
  margin-top: 10px;
  background: #ff7b00;
}
.result button:hover { background: #ff5500; }

footer {
  background: #111;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 600px) {
  nav { flex-direction: column; gap: 10px; }
  .logo { margin-bottom: 10px; }
}