body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #eef5ff, #f8fbff);
  color: #12314f;
}

.container {
  max-width: 1100px;
  margin: 16px auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.08);
}

h1, h2, h3 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 600;
}

input, select, button {
  padding: 10px;
  border: 1px solid #bdd3f1;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

button {
  cursor: pointer;
  background: #1455cc;
  color: #fff;
  border: 0;
  padding: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

button.secondary {
  background: #3f6fbf;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th, td {
  border: 1px solid #e2e8f0;
  padding: 8px;
  text-align: left;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

a.button-link {
  display: block;
  padding: 15px 14px;
  margin: 0;
  background: #1455cc;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  transition: background 0.3s ease;
}

.required-note {
  margin-top: -2px;
  margin-bottom: 6px;
  color: #315d98;
  font-size: 0.9rem;
}

.required-label::after {
  content: " *";
  color: #d1203f;
  font-weight: 700;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.radio-group label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.radio-group input[type="radio"] {
  width: auto;
}

.message {
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 10px;
  border-radius: 6px;
}

.error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 10px;
  border-radius: 6px;
}

a.button-link {
  display: block;
  padding: 15px 14px;
  margin: 0 0 10px 0;
  background: #1455cc;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  transition: background 0.3s ease;
  font-weight: 500;
}

a.button-link:hover {
  background: #0d47a1;
}

.top-panel {
  background: #ffffff;
  border-bottom: 1px solid #d7e6ff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 14px 4px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-slot {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
}

.logo-slot img {
  max-height: 64px;
  max-width: 64px;
}

.title-slot {
  text-align: center;
}

.title-slot h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #124aaf;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: #1455cc;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

.top-nav {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
  padding: 8px 14px 12px;
}

.top-nav a {
  text-decoration: none;
  color: #0f3f92;
  background: #e7f0ff;
  border: 1px solid #c6dbff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: block;
}

.logout-form {
  margin: 0;
}

.logout-btn,
.login-link {
  background: #1455cc;
  color: #fff !important;
  border-radius: 10px;
  padding: 8px 12px;
  border: 0;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 38, 79, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 80;
}

.auth-card {
  width: min(90vw, 360px);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
}

.auth-actions {
  display: flex;
  gap: 8px;
}

.hidden {
  display: none !important;
}

.map-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-holder {
  background: #f0f6ff;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #c6dbff;
}

.map-box {
  width: 100%;
  height: 300px;
  border-radius: 10px;
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 49, 79, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-content {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(29, 78, 216, 0.15);
  text-align: center;
}

.modal-content p {
  margin: 0 0 20px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #12314f;
}

.modal-message {
  border-left: 4px solid #22c55e;
}

.modal-error {
  border-left: 4px solid #ef4444;
}

.modal-confirm {
  border-left: 4px solid #3b82f6;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal button {
  width: 100%;
}

.btn-primary {
  background: #1455cc;
  color: #fff;
}

.btn-secondary {
  background: #6b7280;
  color: #fff;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.summary-box {
  text-align: center;
  padding: 20px;
  background: #e7f0ff;
  color: #0f3f92;
  border: 2px solid #c6dbff;
}

@media (max-width: 760px) {
  .container {
    margin: 10px;
    padding: 14px;
    border-radius: 10px;
  }

  .brand-row {
    padding: 8px 10px;
  }

  .logo-slot {
    width: 42px;
    height: 42px;
  }

  .logo-slot img {
    max-width: 40px;
    max-height: 40px;
  }

  .title-slot h1 {
    font-size: 2.1rem;
  }

  .top-nav {
    padding: 6px 10px 10px;
  }

  .top-nav a {
    font-size: 0.84rem;
    padding: 7px 9px;
  }

  .logout-form {
    margin-left: 0;
  }
}

@media (min-width: 761px) {
  .row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.powered-by {
  display: none !important;
}

.bottom-panel {
  background: #ffffff;
  border-top: 1px solid #d7e6ff;
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  color: #555;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 14px;
}

.footer-content p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #666;
}


/* Container styling */
.convenor-section {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #f0f6ff;
  border-radius: 10px;
  border: 1px solid #c6dbff;
}

/* Row layout */
.convenor-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

/* Column */
.convenor-col {
  flex: 1;
}

/* Mobile group (number + button) */
.mobile-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

/* Labels */
.convenor-section label {
  font-size: 0.9rem;
  color: #315d98;
  display: block;
  margin-bottom: 4px;
}

/* Inputs */
.convenor-section input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #c6dbff;
  background: #e7f0ff;
  color: #0f3f92;
}

/* Button */
#dialButton {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #2f5fb3;
  color: white;
  cursor: pointer;
  white-space: nowrap;
}

/* 📱 Mobile Responsive */
@media (max-width: 600px) {
  .convenor-row {
    flex-direction: column;
  }

  .mobile-group {
    flex-direction: column;
    align-items: stretch;
  }

  #dialButton {
    width: 100%;
    margin-top: 8px;
  }
}
/*media*/