/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(45deg, #6a0572, #29093a, #6a0572, #520b4a);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.container {
  background: rgba(60, 60, 116, 0.9);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  width: 350px;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

h1, h2 {
  color: #f0f0f0;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #ddd;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #4b4b8a;
  color: #ffffff;
  transition: border 0.3s;
}

input:focus {
  outline: none;
  border: 2px solid #8b79c4;
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(45deg, #6a60a9, #b298dc);
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s, transform 0.3s;
}

button:hover {
  background: linear-gradient(45deg, #5a4e9a, #a284d0);
  transform: translateY(-2px);
}

#nic-display, #error-message {
  margin-top: 20px;
}

#download-svg, #download-pdf {
  background: linear-gradient(45deg, #5a4e9a, #a284d0);
  margin-top: 10px;
  transition: background 0.3s, transform 0.3s;
}

#download-svg:hover, #download-pdf:hover {
  background: linear-gradient(45deg, #483b7e, #846bb2);
  transform: translateY(-2px);
}

.hidden {
  display: none;
}

.small {
  font-size: 0.8em;
  color: #b0b0b0;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Background gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Input placeholder style */
::placeholder {
  color: #ccc;
}
