body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  display: flex;
  height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px;
  background: #2a4f7c;
  color: white;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 40px;
}

.menu-item {
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 8px;
}

.menu-item:hover,
.menu-item.active {
  background: #1f3f64;
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  padding: 32px;
}

.card {
  background: white;
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  text-align: center;
}

h2 {
  color: #2a4f7c;
  margin-bottom: 10px;
}

.desc {
  font-size: 14px;
  color: #555;
}

label {
  display: block;
  text-align: left;
  margin-top: 18px;
  font-weight: bold;
  color: #2a4f7c;
}

input[type="file"] {
  width: 100%;
  margin-top: 8px;
  padding: 6px;
}

button {
  margin-top: 26px;
  width: 100%;
  background: #2a4f7c;
  color: white;
  padding: 12px;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background: #1f3f64;
}

#status {
  margin-top: 16px;
  font-size: 14px;
  color: #333;
  min-height: 20px;
}

.loading {
  margin-top: 12px;
  width: 30px;
  height: 30px;
  border: 4px solid #d1d9e6;
  border-top-color: #2a4f7c;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: none;
  margin-left: auto;
  margin-right: auto;
}

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