/* ----------------------------------------------------
   GLOBAL RESET + BASE
---------------------------------------------------- */
* {
  box-sizing: border-box;
  font-family: 'Poppins', system-ui, sans-serif;
}

body {
  margin: 0;
  background: #eef2f7;
  color: #333;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   HEADER
---------------------------------------------------- */
header {
  background: #1f3c88;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

nav a {
  color: #fff;
  margin-left: 1.2rem;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
  text-shadow: 0px 0px 6px rgba(255,255,255,0.8);
}

/* ----------------------------------------------------
   CONTAINER + CARD
---------------------------------------------------- */
.container {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  backdrop-filter: blur(6px);
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* ----------------------------------------------------
   FORM INPUTS
---------------------------------------------------- */
input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #d0d4e4;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #1f3c88;
  box-shadow: 0px 0px 6px rgba(31,60,136,0.4);
  transform: scale(1.02);
}

/* ----------------------------------------------------
   BUTTONS
---------------------------------------------------- */
button {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  background: #1f3c88;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  background: #162d66;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Ripple effect */
button:active {
  transform: scale(0.95);
}

button.secondary {
  background: #e6ebff;
  color: #1f3c88;
}

button.secondary:hover {
  background: #d8e3ff;
}

/* ----------------------------------------------------
   RESULT CARDS
---------------------------------------------------- */
.result-box {
  margin-top: 1.3rem;
}

.result-card {
  border: 1px solid #dce2f5;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.result-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #1f3c88;
}

/* ----------------------------------------------------
   ADMIN TABLE
---------------------------------------------------- */
#listContainer table {
  width: 100%;
  border-collapse: collapse;
}

#listContainer th,
#listContainer td {
  padding: 0.8rem;
  border-bottom: 1px solid #e4e8f3;
  text-align: left;
  transition: 0.2s ease;
}

#listContainer th {
  background: #1f3c88;
  color: #fff;
}

#listContainer tr:hover td {
  background: #f2f5ff;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #777;
  animation: fadeIn 0.8s ease;
}

/* ----------------------------------------------------
   HIDDEN
---------------------------------------------------- */
.hidden {
  display: none;
}
