/* ==== Galaxy Background ==== */
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  height: 100vh;
  overflow: hidden;
  color: #fff;
  display: flex;
  justify-content: center;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top, #1e1b4b, #0f172a);
  color: white;
}

.header {
  width: 100%;
  text-align: center;
}

.header p {
  margin-top: 8px;
  color: #c4b5fd;
  font-size: 1rem;
  letter-spacing: 1px;
}

.footer {
  text-align: center;
  padding: 15px 0;
  background: rgba(15, 10, 38, 0.017); /* 🌑 lebih gelap dari sebelumnya */
  backdrop-filter: blur(6px);
  color: white;
  box-shadow: 0 0 15px #4c1d95, 0 0 25px #312e81; /* shadow-nya juga lebih deep */
  text-shadow: 0 0 10px rgba(99,102,241,0.6), 0 0 20px rgba(147,51,234,0.5);
}


.footer-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  text-shadow: 0 0 10px #6366f1, 0 0 20px #9333ea;
}

.main-content {
  flex: 1; /* biar isi mendorong footer ke bawah */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Stars layers */
.stars, .stars2, .stars3 {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  animation: moveStars 200s linear infinite;
}
.stars2 { animation-duration: 100s; opacity: 0.6; }
.stars3 { animation-duration: 50s; opacity: 0.3; }

@keyframes moveStars {
  from {background-position: 0 0;}
  to {background-position: 10000px 5000px;}
}

/* ==== Todo App Container ==== */
.todo-app {
  background: rgba(15, 23, 42, 0.85);
  padding: 20px;
  border-radius: 15px;
  width: 768px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 25px rgba(137, 207, 240, 0.6);
  position: relative;
  z-index: 5;
}

h1 {
  text-align: center;
  color: #c084fc;
  text-shadow: 0 0 10px #a855f7, 0 0 20px #22d3ee;
}

/* ==== Form ==== */
.todo-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.todo-form input {
  padding: 10px;
  border: none;
  border-radius: 8px;
  outline: none;
}

.todo-form input[type="text"] {
  flex: 1;
}

.rocket-btn {
  font-size: 20px;
  background: linear-gradient(90deg, #6366f1, #9333ea);
  border: none;
  border-radius: 8px;
  padding: 0 15px;
  cursor: pointer;
  transition: transform 0.3s;
}

.rocket-btn:hover {
  transform: translateY(-5px) rotate(-15deg);
  box-shadow: 0 0 15px #9333ea, 0 0 30px #6366f1;
}

/* ==== Actions ==== */
.todo-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.todo-actions button {
  background: linear-gradient(90deg, #22d3ee, #9333ea);
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.todo-actions button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #22d3ee;
}

/* ==== Table ==== */
.todo-list table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.todo-list th, .todo-list td {
  padding: 10px;
  text-align: left;
}

.todo-list th {
  background: rgba(55, 65, 81, 0.8);
}

.todo-list td {
  background: rgba(30, 41, 59, 0.8);
}

.empty {
  text-align: center;
  color: #94a3b8;
}

.flying-ast {
  position: fixed;
  top: 10%;
  left: -200px; /* mulai di luar layar kiri */
  width: 150px;
  animation: fly-around 40s linear infinite;
  z-index: 9999;
  pointer-events: none; /* biar gak ganggu klik */
}

@keyframes fly-around {
  0%   { transform: translateX(0) translateY(0) rotateY(0deg); }
  25%  { transform: translateX(110vw) translateY(20vh) rotateY(0deg); }
  26%  { transform: translateX(110vw) translateY(20vh) rotateY(180deg); }
  50%  { transform: translateX(0) translateY(40vh) rotateY(180deg); }
  51%  { transform: translateX(0) translateY(40vh) rotateY(0deg); }
  75%  { transform: translateX(110vw) translateY(60vh) rotateY(0deg); }
  76%  { transform: translateX(110vw) translateY(60vh) rotateY(180deg); }
  100% { transform: translateX(0) translateY(0) rotateY(180deg); }
}
