/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* BODY */
body {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  min-height: 100vh;
  color: #333;
}

/* CONTAINER */
.container {
  padding: 30px;
}

/* NAVBAR */
.navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-links a.active {
  background: white;
  color: #4f46e5;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  background: white;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
}

.logo-text {
  font-size: 2rem; /* responsive */
  color: white;
}
/* ICON = solid (NO transparency) */
.logo-icon {
  font-size: 32px;

  /* force normal rendering */
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  opacity: 1 !important;
  filter: none !important;
  font-size: 2.2rem;
}

.logo svg {
  color: #facc15; /* yellow */
  width: 30px;
  height: 30px;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 5px 15px rgba(255,255,255,0.5);
}

@keyframes glow {
  0% { text-shadow: 0 0 5px rgba(255,255,255,0.3); }
  50% { text-shadow: 0 0 20px rgba(255,255,255,0.8); }
  100% { text-shadow: 0 0 5px rgba(255,255,255,0.3); }
}

.logo {
  animation: glow 3s infinite;
}

/* HEADINGS */
h1 {
  color: white;
  margin-bottom: 20px;
}

/* FORM CARD */
.form-container {
  max-width: 600px;   /* width control */
  margin: 40px auto;  /* center + top gap */
  padding: 30px;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-container input,
.form-container select {
  margin-bottom: 15px;
}

.form-container h2 {
  margin-bottom: 20px;
}

/* INPUTS */
input, textarea, select {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.8);
  font-size: 15px;
}

input:focus, textarea:focus {
  background: white;
  box-shadow: 0 0 0 2px #4f46e5;
}

/* BUTTONS */
button {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* TABLE CARD */
.table-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.2);
}

.table-section h2 {
  color: #1e1b4b;
  margin-bottom: 20px;
  font-size: 28px;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.35);
  border-radius: 16px;
  overflow: hidden;
}

th {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
}

td, th {
  padding: 18px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

tr:hover {
  background: rgba(255,255,255,0.25);
}

/* SEARCH BOX */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input,
.search-box select {
  flex: 1;
}

/* RESULT COUNT */
#resultCount {
  color: white;
  margin-bottom: 10px;
}

/* DASHBOARD */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

/* hover effect 🔥 */
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card h2 {
  font-size: 38px;
  font-weight: bold;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p {
  margin-top: 10px;
  font-size: 16px;
  color: #444;
  letter-spacing: 0.5px;
}

.card i {
  width: 35px;
  height: 35px;
  margin-bottom: 10px;
  color: #4f46e5;
}

/* OVERDUE */
.overdue-row {
  background-color: #ffe5e5;
}

.overdue-text {
  color: red;
  font-weight: bold;
}

tr:hover {
  background: #f3f4f6;
}

.form-container input,
.form-container textarea {
  margin-bottom: 16px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.2);
}

/* HERO SECTION */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
  max-width: 600px;
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  background: white;
  color: #4f46e5;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  background: #f3f4f6;
}

/*logout button */
#logoutBtn {
  background: crimson;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 10px;
}

#logoutBtn:hover {
  background: darkred;
}

#welcomeAdmin {
  color: white;
}

.success-message {
  background: #d1fae5;   /* light green bg */
  color: #065f46;        /* dark green text */
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 600;
}

.error-message {
  background: #fee2e2;   /* light red bg */
  color: #7f1d1d;        /* dark red text */
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 600;
}