body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: Arial, sans-serif;
  background: url('../assets/bg2.png') no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

header {
  margin-top: 50px;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1rem;
  opacity: 0.8;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  margin-bottom: 30px;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 30px;
}

footer a:last-child {
  margin-right: 0;
}

footer .logo {
  height: 20px;
  vertical-align: middle;
  margin-left: 10px;
}

.card {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#linksContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 15px;
}

.link-item a {
  color: #fff;
  text-decoration: none;
  word-break: break-all;
}

.link-item button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.add-link-row {
  display: flex;
  gap: 10px;
}

.add-link-row input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.add-link-row button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.upload-section {
  border: 2px dashed rgba(255, 255, 255, 0.4);
  padding: 40px;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 20px;
}

#checkBtn {
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

#result {
  margin-top: 20px;
  font-weight: bold;
}

#gauge {
  position: relative;
  width: 200px;
  height: 100px;
  margin: 0 auto 10px;
}

#gauge svg {
  width: 100%;
  height: auto;
}

#gauge h1 {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
}

#gauge p {
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.9;
}

.actions {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
}

.actions a {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  border: 2px solid #fff;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.actions a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.result-layout {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.result-left {
  flex: 1;
  text-align: center;
}

.result-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.actions .primary-btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 999px;
  background: #1e1e1e;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background 0.3s ease;
}

.actions .primary-btn:hover {
  background: #000;
}

.actions .link-btn {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}

.actions .link-btn:hover {
  text-decoration: none;
}

.flags {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.flag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.flag-item span {
  font-size: 1rem;
}

.flag-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #a0a0ff;
}

#candidateName {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0.9;
}

/* loader animation */ 
.loader {
  display: none; 
  margin: 20px auto;
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}