/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
}

h1 {
  margin-bottom: 20px;
  font-size: 2rem;
  text-align: center;
}

#startBtn {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#startBtn:hover {
  background: #e68900;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

#output {
  width: 100%;
  max-width: 1000px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  min-height: 150px;
}

h3 {
  margin: 15px 0;
  font-size: 1.5rem;
  color: #ffd54f;
}

.loading {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  color: #ffd54f;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

/* Card layout */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.card {
  background: #222831;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  color: #DFD0B8;
}

.card:hover {
  transform: translateY(-5px);
}

.success {
  text-align: center;
  color: #7CFC00;
  font-weight: bold;
  margin-top: 20px;
}

.error {
  color: red;
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
}
