/* --------------------------------------------------
   1) Global Reset & Base
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body, #root {
    width: 100%;
    height: 100%;
    overflow: hidden; /* ביטול גלילה בדפדפן */
  }
  
  body {
    font-family: 'Helvetica', 'Arial', sans-serif;
  }
  
  html, body {
    font-family: "Open Sans", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
  }
  
  a {
    color: #2d7dd2;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  button {
    cursor: pointer;
    font-family: inherit;
  }
  
  /* Utility classes (mini-tailwind style) */
  .mt-2 { margin-top: 0.5rem; }
  .mt-4 { margin-top: 1rem; }
  .mb-2 { margin-bottom: 0.5rem; }
  .mb-4 { margin-bottom: 1rem; }
  .p-4 { padding: 1rem; }
  .flex { display: flex; }
  .flex-col { flex-direction: column; }
  .flex-wrap { flex-wrap: wrap; }
  .justify-end { justify-content: flex-end; }
  .justify-between { justify-content: space-between; }
  .items-center { align-items: center; }
  .gap-2 { gap: 0.5rem; }
  .gap-4 { gap: 1rem; }
  
  /* --------------------------------------------------
     2) Top Bar (שורה עליונה) - MissionPlanner
  -------------------------------------------------- */
  .top-bar {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  /* תוכן פנימי של השורה העליונה (כפתורים + טופס) */
  .top-bar-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }
  
  .buttons-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  /* --------------------------------------------------
     3) MissionPlanner Layout (מפה גדולה מתחת לשורה)
  -------------------------------------------------- */
  .mission-planner {
    display: flex;
    flex-direction: column;
    height: 100vh; /* ממלא את כל המסך אנכית */
    background-color: #f5f7fa;
  }
  
  /* אזור המפה שמתחת לשורה העליונה */
  .map-fullscreen {
    flex: 1;               /* ממלא את כל הגובה שנותר */
    position: relative;
    overflow: hidden;
    padding: 1rem;
  }
  
  /* --------------------------------------------------
     4) GovMap Interface
  -------------------------------------------------- */
  .map-container {
    width: 100%;
    height: 100%;
    background-color: #eef1f5; /* רקע fallback */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }
  
  .measure-button {
    position: absolute;
    top: 74px; /* כי ה-Header גובהו בערך 64px + רווח */
    right: 10px;
    z-index: 1000;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .measure-button:hover {
    background-color: #0056b3;
  }
  
  .scale-box {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 0.6vh 1.2vh;
    border-radius: 6px;
    font-size: 1.8vh;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .floating-confirm-buttons {
    position: absolute;
    top: 11vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1vh 2vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .my-location-button {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 3000 !important;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .my-location-button:hover {
    background-color: #0056b3 !important;
  }
  
  /* --------------------------------------------------
     5) Dashboard Page (אם תרצה גם דשבורד)
  -------------------------------------------------- */
  .dashboard-container {
    padding: 2rem;
  }
  
  .dashboard-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #2d7dd2;
  }
  
  .dashboard-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem;
    flex: 1;
    min-width: 200px;
  }
  
  .stat-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
  }
  
  /* --------------------------------------------------
     6) MissionForm
  -------------------------------------------------- */
  .mission-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .mission-form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .mission-form input,
  .mission-form textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    font-family: inherit;
  }
  
  .mission-form button {
    align-self: flex-start;
  }
  
  /* --------------------------------------------------
     7) UI Components: Alert, Button, Card
  -------------------------------------------------- */
  
  /* Alert */
  .alert {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    background-color: #eff8ff;
    color: #2d7dd2;
    border: 1px solid #bcdcff;
  }
  
  .alert-destructive {
    background-color: #ffecec;
    color: #d93025;
    border: 1px solid #f5b4b4;
  }
  
  /* Button */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #2d7dd2;
    color: #fff;
    transition: background-color 0.2s ease;
  }
  
  .btn:hover {
    background-color: #1855a4;
  }
  
  .btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  
  .btn-outline {
    background-color: #fff;
    color: #2d7dd2;
    border: 1px solid #2d7dd2;
  }
  
  .btn-outline:hover {
    background-color: #eef1f5;
  }
  
  /* Card */
  .card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem;
  }
  
  .card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-weight: 600;
    margin: 0;
    color: #333;
  }
  
  .card-content {
    /* תוכן הכרטיס */
  }
  
  /* ---------- Header.css ---------- */
  .header {
    height: 10vh;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    direction: rtl;
    gap: 24px;
  }
  
  .search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
  }
  
  .search-input {
    padding: 1.3vh 2.6vh;
    font-size: 1.8vh;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 12vw;
    direction: rtl;
  }
  
  .button-bar {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .logo {
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: auto;
  }
  
  .logo-img {
    height: 80%;
    width: auto;
  }
  
  .primary-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 1.3vh 2.6vh;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1.8vh;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .primary-button:hover {
    background-color: #0056b3;
  }
  
  .cancel-button {
    background-color: #c50808;
  }
  .cancel-button:hover {
    background-color: #960101;
  }
  
  .secondary-button {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1.3vh 2.6vh;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1.8vh;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .secondary-button:hover {
    background-color: #e6e6e6;
  }

