/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body, html {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #7267cb, #9f6cd3, #ffaad5);
  position: relative;
  color: #fff;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 0;
}

/* LOGIN BOX */
.login-box {
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin: auto;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  padding: 2rem;
}
.login-box h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}
.login-box form {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}
.form-control {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
}
.form-control::placeholder {
  color: rgba(255,255,255,0.7);
}
.btn-primary {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(45deg, #9f6cd3, #d07edb);
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 8px rgba(255,255,255,0.5);
  transition: 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3), 0 0 16px rgba(255,255,255,0.7);
}

/* PANEL */
.panel {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 3rem auto 2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  padding: 2rem;
}
.panel h1 {
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0; transform: translateY(-20px);
  animation: slideDown 1s ease forwards;
}
.btn-logout {
  float: right;
  background: #e74c3c;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: 0.2s;
}
.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.table {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
}
.table thead {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
.table-hover tbody tr:hover {
  background: rgba(118,75,162,0.1);
}
.badge {
  font-size: 0.85rem;
  padding: 0.4em 0.7em;
  border-radius: 0.75rem;
}
.btn-sm {
  transition: 0.2s;
}
.btn-sm:hover {
  transform: translateY(-1px);
}

/* KEYFRAMES */
@keyframes fadeUp {
  to { opacity:1; transform:translateY(0); }
}
@keyframes slideDown {
  to { opacity:1; transform:translateY(0); }
}
