/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* === Body === */
body {
  font-family: "Poppins", sans-serif;
  color: #e5e7eb;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}
/* === Background Layer (parallax on desktop/Android, fallback on iOS) === */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("https://res.cloudinary.com/db8mcyukl/image/upload/v1774395187/IMG_4643_gn1nxi.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
  -webkit-transform: translateZ(0); /* ✅ Safari fix */
  transform: translateZ(0); /* ✅ helps on iOS */
}
/* === Dark Overlay === */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}
/* === Page Container === */
.page-container {
  max-width: 1100px;
  width: 100%;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* === Headings === */
h1, h2, h3 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-align: center;
}
.page-container h1 {
  font-size: 2rem;
  font-weight: 700;
}
.page-container h1 br {
  content: "";
  display: block;
  margin: 0.2rem 0;
}
/* === Wrapper / Card === */
.wrapper, .card {
    width: 100%;
    background: transparent;
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid #ffffff80;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    animation: fadeIn 0.6s ease;
}
/* === Search Bar === */
.search-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 1.5rem auto;
  position: relative;
}
#searchInput {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  outline: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
#searchInput:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  background: rgba(15, 23, 42, 0.8);
}
/* Search icon */
.search-container::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.8;
  pointer-events: none;
}
/* Mobile tweak */
@media (max-width: 480px) {
  #searchInput {
    height: 40px;
    font-size: 0.9rem;
  }
}
/* === No Results Message === */
.no-results {
  display: none;
  text-align: center;
  margin: 12px 0 6px;
  font-size: 0.95rem;
  color: #f87171;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.no-results.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
/* === Search Highlight === */
.highlight {
  background: rgba(59, 130, 246, 0.45);
  padding: 2px 4px;
  border-radius: 4px;
  color: #fff;
}
/* === Inputs === */
.input-field input {
    width: 100%;
    height: 40px;
    color: #fff;
    background: white;
    border: none;
    outline: none;
    font-size: 16px;
}
.input-field input:focus~label,
.input-field input:valid~label {
    font-size: 0.8rem;
    top: 10px;
    transform: translateY(-120%);
}
/* === Tables === */
.table-container {
  width: 100%;
  overflow-x: auto;
}
button {
    background: rgba(15, 23, 42, 1);
    color: #fff;
    font-weight: 550;
    border: none;
    width: 150px;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    border: 2px solid transparent;
    transition: 0.3s ease;
}
.newsletter-row {
    display: flex;
    flex-direction: row;
    max-width: 460px;
    grid-template-columns: 1fr auto; /* input grows, button hugs */
    align-items: center;
    justify-content: center;
    gap: 10px; /* space between input and button */
    margin: 15px 0;
    width: 100%;
}
.newsletter-row {
  display: flex;
  flex-direction: row;
  max-width: 460px;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: center; /* centers input and button horizontally */
  gap: 10px;
  margin: 15px auto; /* centers the row itself in its parent */
  width: 100%;
}
.newsletter-row input {
  flex: 1;
  min-width: 185px;
  height: 40px;
  padding: 0 10px;
  border: 2px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
  outline: none;
  color: black;
}
.newsletter-row button {
  height: 40px;
  padding: 0 20px;
  background: #000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #000;
  border-radius: 3px;
  transition: 0.3s ease;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 600px;
  margin-top: 1rem;
}
thead {
  background: #1e3a8a;
  color: #fff;
  text-align: center;
}
th, td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.85);
}
tbody tr:hover {
  background: rgba(59, 130, 246, 0.2);
}
/* === Checkbox === */
input[type="checkbox"] {
  transform: scale(1.3);
  accent-color: #10b981;
  cursor: pointer;
}
/* === Horizontal Rule === */
hr {
    width: 100vw;
    height: 1px;
    margin: 20px 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
/* === Footer === */
footer {
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 1rem;
}
/* === Animations === */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}
/* === Responsive Fixes === */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  .page-container h1 {
    font-size: 1.5rem;
  }
  table {
    min-width: 400px;
    font-size: 0.85rem;
  }
  th, td {
    padding: 0.6rem;
  }
}

/* =========================
   CENTERED POP-UP NOTIFICATION (Only addition)
========================= */
#notification-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
}

.notification {
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 380px;
  text-align: center;
  backdrop-filter: blur(12px);
  animation: popUp 0.4s ease forwards;
  pointer-events: auto;
}

.notification.success {
  border-left: 5px solid #22c55e;
}

.notification.error {
  border-left: 5px solid #ef4444;
  background: rgba(40, 10, 10, 0.95);
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#notification-container.show {
  display: flex;
}