/* Reset + Base */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #1e1b2e;
  color: #f0f0f0;
  line-height: 1.6;
}


/* Layout */
main {
  margin: 20px auto;
  padding: 10px;
  width: 95%;
  flex: 1;
}

#result {
  margin: 20px auto;
  padding: 10px;
  max-width: 800px;
  flex: 1;
}
.card {
  background: rgba(40, 40, 65, 0.85);
  border: 1px solid #444;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-3px);
}
h2 {
  margin-top: 0;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.status-label {
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 8px;
}

.status-confirmed {
  background: rgba(0, 200, 100, 0.2);
  color: #3bcf7a;
}

.status-candidate {
  background: rgba(200, 50, 50, 0.2);
  color: #ff6b6b;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table th, table td {
  padding: 12px;
  border-bottom: 1px solid #444;
  text-align: left;
}
table th {
  background: rgba(255,255,255,0.05);
  color: #ddd;
  font-weight: 600;
}
table tr:hover {
  background: rgba(255,255,255,0.06);
}

/* Upload Box */
.upload-box {
  border: 2px dashed #666;
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  background: rgba(30, 30, 50, 0.5);
}
.upload-box:hover {
  border-color: #3bc8f5;
  background: rgba(30, 30, 50, 0.7);
}

/* Footer */
footer {
  text-align: center;
  padding: 25px;
  background: rgba(20, 20, 35, 0.95);
  border-top: 1px solid #333;
  margin-top: 50px;
  font-size: 0.85rem;
  color: #aaa;
}

.hidden { display: none; }

#loading {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #000014, #020220, #000);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  font-family: "Orbitron", sans-serif;
}

.loader {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  animation: spinStar 10s linear infinite;
}

.loader::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  background: radial-gradient(circle, #ffd700, #ff8c00);
  border-radius: 50%;
  box-shadow: 0 0 25px 10px rgba(255, 215, 0, 0.6);
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #3cf;
  box-shadow: 0 0 12px rgba(0,255,255,0.7);
  transform-origin: -60px center;
  animation: orbit 3s linear infinite;
}

.planet2 {
  background: #ff4cff;
  box-shadow: 0 0 12px rgba(255,76,255,0.7);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  transform-origin: -90px center;
  animation: orbit 6s linear infinite;
}

@keyframes orbit {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinStar {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.loading-text {
  margin-top: 20px;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-shadow: 0 0 5px #fff, 0 0 10px #0ff;
}

.about-video {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.about-video video {
  width: 100%;
  max-width: 1000px;
  border: 2px solid #0ff;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,255,255,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-video video:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(255,255,255,0.8);
}


/* Tablet and down */
@media (max-width: 768px) {
  main {
    margin: 10px auto;
    width: 100%;
    padding: 10px;
  }

}

/* Small phones */
@media (max-width: 480px) {
  main {
    margin: 5px auto;
    padding: 8px;
  }

  .loading-text {
    font-size: 0.9rem;
  }
}


/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a0a1a;
  padding: 15px 20px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Nav Links */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #4cafef;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle div {
  background: white;
  height: 3px;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(10, 10, 30, 0.95);
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 15px;
    border-radius: 8px 0 0 8px;
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav a:last-child {
    border-bottom: none;
  }
}

/* Animation for ☰ → ✖ */
.menu-toggle.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active div:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active div:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
