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

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(120deg, #1e3c72, #2a5298);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
  padding: 10px;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: fadeIn 0.7s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

h1 {
  color: #2a5298;
  margin-bottom: 10px;
  font-size: 26px;
}

p {
  margin-bottom: 20px;
  color: #333;
}

input[type="date"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 15px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s;
}

input:focus {
  border-color: #2a5298;
  outline: none;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

button {
  flex: 1;
  margin: 0 5px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #2a5298;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #1e3c72;
}

.theme-toggle {
  text-align: right;
  margin-bottom: 10px;
}

.theme-toggle button {
  padding: 6px 10px;
  font-size: 13px;
  background-color: #eee;
  color: #333;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.share-btn {
  margin-top: 20px;
  background-color: #4caf50;
}

#result,
#breakdown,
#countdown,
#funFact,
#aiPredict,
#lifeStats,
#planetAge,
#personality,
#milestones,
#copyMsg {
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

/* Dark mode */
body.dark-mode {
  background: linear-gradient(120deg, #121212, #1e1e1e);
  color: #eee;
}

body.dark-mode .card {
  background: #1e1e1e;
  color: #eee;
}

body.dark-mode input {
  background: #2c2c2c;
  border: 1px solid #444;
  color: #fff;
}

body.dark-mode button {
  background-color: #333;
  color: #fff;
}

body.dark-mode button:hover {
  background-color: #555;
}

body.dark-mode .theme-toggle button {
  background-color: #333;
  color: #fff;
}

/* Mobile responsiveness */
@media screen and (max-width: 480px) {
  h1 {
    font-size: 22px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }

  #result,
  #breakdown,
  #countdown,
  #funFact,
  #aiPredict,
  #lifeStats,
  #planetAge,
  #personality,
  #milestones {
    font-size: 14px;
  }
}
