/* ===== Base Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
  background: #d5d7db;
  color: #222;
  min-height: 100vh;
  padding-top: 90px; /* Space for top nav */
}

/* ===== NAVIGATION (Top Glass Bar) ===== */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-top: 12px;
  backdrop-filter: blur(20px);
}

.glass-nav {
  display: flex;
  background: rgba(255,255,255,0.6);
  border-radius: 30px;
  padding: 8px 14px;
  gap: 1.6rem;
  box-shadow: 0 4px 25px rgba(0,0,0,0.15);
  align-items: center;
  backdrop-filter: blur(25px);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #444;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-tab img {
  opacity: 0.8;
  margin-bottom: 4px;
  width: 22px;
  height: 22px;
}

.nav-tab:hover {
  background: rgba(255,255,255,0.8);
  color: #000;
}

.nav-tab.active {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-tab.active img {
  opacity: 1;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.4rem;
}

/* ===== SECTIONS ===== */
.glass-section {
  background: #fff;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hidden {
  display: none;
}

/* ===== HEADINGS ===== */
h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #111;
  border-left: 4px solid #1976d2;
  padding-left: 8px;
}

/* ===== INPUTS ===== */
input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #f8f9fa;
  color: #222;
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

/* ===== BUTTON ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1976d2, #2196f3);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1565c0, #1e88e5);
}

/* ===== MESSAGE CARD ===== */
.event-card {
  background: #f5f7fa;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

.event-card:hover {
  background: #eef2f7;
  transform: translateY(-2px);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.event-name {
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
}

.badge.registered {
  background: #388e3c;
}

.badge.not-registered {
  background: #d32f2f;
}

/* ===== SUBTEXT ===== */
.countdown {
  color: #555;
  font-size: 0.9rem;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 600px) {
  .glass-nav {
    gap: 0.8rem;
    padding: 6px 10px;
  }

  .nav-tab {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .container {
    padding: 1rem;
  }
}
.btn-danger {
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .5rem 1rem;
  cursor: pointer;
}
.btn-danger:hover { background:#be123c; }

/* === DELETE CONFIRM MODAL === */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;         /* vertical centering */
  justify-content: center;     /* horizontal centering */
  z-index: 9999;
}
.modal-backdrop.hidden { display: none; }

.modal.glass-section {
  background: rgba(40, 45, 58, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.2rem;
  text-align: center;
  color: #f3f4f6;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px); /* optional glass blur effect */
  min-width: 320px;
  max-width: 400px;
}

.modal.glass-section p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* === PILL BUTTONS FOR EDIT / DELETE === */
.btn-secondary,
.btn-danger {
  border: none;
  border-radius: 9999px;       /* full pill shape */
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease-in-out;
}

/* ✏️ Edit button (blue pill) */
.btn-secondary {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.35);
}
.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.25);
}

/* 🗑️ Delete button (red pill) */
.btn-danger {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.35);
}
.btn-danger:hover {
  background: rgba(220, 38, 38, 0.25);
}

/* Optional: match "Active" badge height & spacing */
.event-card .btn-secondary,
.event-card .btn-danger {
  line-height: 1.2;
  height: auto;
}

