/* ───────────────────────────────
   Custom Leaflet Button Styles
──────────────────────────────── */
.custom-leaflet-button {
    color: #ffffff;
    background-color: #1e3775;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 2;
  }
  .custom-leaflet-button:hover {
    background-color: #162c5f;
  }
  
  /* ───────────────────────────────
     Sliding Panel Container
  ──────────────────────────────── */
  .custom-control-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* ───────────────────────────────
     Sliding Panel Styles
  ──────────────────────────────── */
  .custom-sliding-panel {
    position: absolute;
    bottom: calc(100% + 12px); /* 12px above the button */
    left: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 16px;
    width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 999;
  }
  
  .custom-sliding-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .custom-sliding-panel label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
  }
  
  /* ───────────────────────────────
     Leaflet Popup Styling
  ──────────────────────────────── */
  .leaflet-popup-content-wrapper {
    background-color: #ffffff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    border: 1px solid #ccc;
  }
  
  .leaflet-popup-content {
    margin: 12px 16px;
    color: #333;
  }
  
  .leaflet-popup-tip {
    background: #ffffff;
  }
  
  .leaflet-container {
    cursor: crosshair;
    transition: filter 0.3s ease;
  }
  
/* NEW */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
  
    color: #333;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    
  }
  
  .form-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
  }
  
  h2 {
    margin-bottom: 24px;
    font-size: 24px;
    color: #1e3775;
  }
  
  .form-group {
    margin-bottom: 18px;
  }
  
  label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
  }
  
  input[type="text"],
  input[type="url"],
  input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border 0.2s;
  }
  
  input:focus {
    outline: none;
    border-color: #1e3775;
  }
  
  .submit-btn {
    background-color: #1e3775;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
  }
  
  .submit-btn:hover {
    background-color: #162c5f;
  }
 
  .map-preview {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ccc;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .form-card {
      padding: 20px;
    }
  
    h2 {
      font-size: 20px;
    }
  }

  #confirmationModal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* semi-transparent black overlay */
  }
  
  #confirmationModal .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    max-width: 400px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
  }
  
  #confirmationModal .modal-content p {
    margin-bottom: 24px;
    font-size: 18px;
    color: #1e3775;
    font-weight: 600;
  }
  
  #confirmationModal .modal-content button {
    background-color: #1e3775;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
  }
  
  #confirmationModal .modal-content button:hover {
    background-color: #162c5f;
  }

  

  /* Login form container */
.login-container {
  max-width: 400px;
  margin: 60px auto;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  box-sizing: border-box;
}

/* Heading */
.login-container h2 {
  margin-bottom: 24px;
  font-size: 24px;
  color: #1e3775;
  font-weight: 600;
  text-align: center;
}

/* Inputs */
.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin-bottom: 18px;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
  outline: none;
  border-color: #1e3775;
  box-shadow: 0 0 8px rgba(30, 55, 117, 0.3);
}

/* Submit button */
.login-container button {
  width: 100%;
  background-color: #1e3775;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.login-container button:hover {
  background-color: #162c5f;
}

/* Optional: Add subtle spacing between inputs and button */
.login-container input:last-of-type {
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 600px) {
  .login-container {
    padding: 20px;
    margin: 40px 16px;
  }

  .login-container h2 {
    font-size: 20px;
  }
}
