@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil:wght@600&display=swap');
	@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@600&display=swap');
        #webmap-title {
            position: absolute;
            width: 280px;
            top: 5px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.6);
            color: black;
            padding: 5px;
            border-radius: 8px;
            font-family: 'Big Shoulders Stencil', sans-serif;
            font-size: 14px;
            font-weight: 900;
            text-align: center;
            font-style: italic;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
            z-index: 2000;
        }
        #time-indicator {
            position: absolute;
            top: 35px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 5px;
            border-radius: 5px;
            font-family: Arial, sans-serif;
            font-size: 12px;
            text-align: center;
            z-index: 1000;
        }
        #map {
            width: 100vw;
            height: 100vh;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 0;
        }

        @media screen and (max-width: 768px) {
            #map { height: 90vh; }
        }
/* HAPUS SEMUA CSS #va-notification dan GANTI DENGAN INI */

/* --- 1. Ikon Notifikasi Gunung Berapi di Peta --- */

/* Keyframes untuk animasi berkedip */
@keyframes blinker {
  50% {
    opacity: 0.3; /* Sedikit meredup, bukan hilang total */
  }
}

/* Style utama untuk marker gunung berapi */
.blinking-volcano-marker {
    /* Membuat bentuk segitiga dengan CSS borders */
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 22px solid #ff0a0a; /* Warna merah terang */
    
    /* Bayangan agar ikon lebih menonjol dari peta */
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.7));
    
    /* Menerapkan animasi berkedip */
    animation: blinker 1s linear infinite;
}

/* Lapisan putih di dalam segitiga untuk efek visual */
.blinking-volcano-marker:after {
    content: '';
    position: absolute;
    left: -12px; 
    top: 0;
    width: 0; 
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 22px solid white;
    transform: scale(0.6);
    opacity: 0.7;
}


/* --- 2. Konten di dalam Pop-up Notifikasi (Leaflet Popup) --- */

/* Kontainer utama untuk tombol-tombol aksi di dalam popup */
.vaa-popup-buttons {
    margin-top: 12px;
    display: flex;
    gap: 8px; /* Jarak antar tombol */
    flex-wrap: wrap; /* Tombol akan turun ke baris baru jika tidak muat */
    justify-content: flex-start; /* Rata kiri */
}

/* Style dasar untuk SEMUA tombol di dalam popup VAA */
.vaa-popup-buttons button {
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

/* Warna spesifik untuk setiap tombol */
.vaa-popup-buttons .download-btn { /* Disarankan menambah class 'download-btn' di JS */
    background-color: #5c6bc0; /* Indigo */
}
.vaa-popup-buttons .download-btn:hover {
    background-color: #3f51b5;
}

.vaa-popup-buttons .view-polygon-btn {
    background-color: #007bff; /* Biru */
}
.vaa-popup-buttons .view-polygon-btn:hover {
    background-color: #0056b3;
}

.vaa-popup-buttons .sigmet-btn {
    background-color: #28a745; /* Hijau */
}
.vaa-popup-buttons .sigmet-btn:hover {
    background-color: #218838;
}


/* Kontainer untuk output SIGMET yang muncul setelah tombol diklik */
.sigmet-output-container {
    margin-top: 15px;
}

/* Textarea untuk menampilkan teks SIGMET */
.sigmet-output-container textarea {
    width: 100%;
    box-sizing: border-box; /* Agar padding tidak merusak layout */
    background-color: #2e2e2e;
    color: #f0f0f0;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
}

/* Tombol "Salin Teks" di bawah textarea */
.sigmet-output-container button {
    width: 100%;
    padding: 8px;
    background-color: #6c757d; /* Abu-abu */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.sigmet-output-container button:hover {
    background-color: #5a6268;
}


/* --- 3. Preview Poligon Abu Vulkanik --- */

/* Style untuk label Flight Level (FLXXX) di atas poligon */
.vaa-polygon-fl-label {
    background-color: rgba(0, 0, 0, 0.75); /* Latar belakang semi-transparan */
    color: #ffffff;
    border: none;
    box-shadow: none;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 7px; /* Sedikit padding */
    border-radius: 4px;
}


/* --- 4. Panel Status Debug --- */

#va-debug-status {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 11px;
    z-index: 9999; /* Pastikan di atas layer peta */
    opacity: 0; /* Awalnya transparan */
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; /* Agar tidak bisa diklik */
}

#va-debug-status.visible {
    opacity: 1; /* Tampilkan saat layer VAA aktif */
}

/* --- 5. (Opsional) Style untuk Pop-up Modal Full-Screen --- */
/* Catatan: Kode JavaScript yang diberikan menggunakan pop-up bawaan Leaflet, 
   bukan modal full-screen ini. Anda bisa menyimpan atau menghapusnya
   tergantung pada apakah Anda menggunakannya di bagian lain. */

#vaa-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#vaa-popup-content {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

#vaa-text-display {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 50vh;
    overflow-y: auto;
    margin: 15px 0;
}

#vaa-popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* Style untuk overlay cropping */
        #crop-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 6000; /* Pastikan di atas segalanya */
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        #crop-canvas-container {
            position: relative;
            max-width: 90vw; /* Batasi lebar agar tidak terlalu besar */
            max-height: 80vh; /* Batasi tinggi */
            overflow: auto; /* Jika gambar lebih besar dari container */
            border: 2px solid white;
        }

        #crop-canvas {
            display: block; /* Menghilangkan spasi ekstra di bawah canvas */
            cursor: crosshair;
        }
        #crop-buttons {
            margin-top: 15px;
        }
        #crop-buttons button {
            margin: 0 5px;
            padding: 8px 15px;
        }
	 .shape-btn {
            background-color: #6c757d; /* Abu-abu */
            margin-left: 5px;
        }
        .shape-btn.active {
            background-color: #17a2b8; /* Biru info */
            border: 2px solid white;
        }
/* Tombol Toggle Pencarian */
        .search-toggle {
            position: fixed;
            right: 20px;
            top: 25%;
            transform: translateY(-50%);
            background: transparent;
            color: black;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            z-index: 3000;
            box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
        }
        /* Kotak Pencarian */
        .search-box {
            position: fixed;
            right: 20px;
            top: 25%;
            transform: translateY(-50%);
            background: white;
            padding: 10px;
            border-radius: 5px;
            box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
            width: 250px;
            display: none;
            z-index: 4000 !important;
        }

        /* Input Pencarian */
        .search-box input {
            width: 90%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px;
            outline: none;
        }

        /* Hasil Pencarian */
        #searchResults {
            margin-top: 5px;
            background: #f9f9f9;
            border-radius: 5px;
            max-height: 150px;
            overflow-y: auto;
        }

        #searchResults div {
            display: flex;
            align-items: center;
            padding: 8px;
            cursor: pointer;
            border-bottom: 1px solid #ddd;
        }

        #searchResults div img {
            width: 20px;
            height: 15px;
            margin-right: 10px;
        }

        #searchResults div:hover {
            background: #007bff;
            color: white;
        } 
        #chart-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
            z-index: 5000;
            width: 90%;
            height: 90%;
            max-width: 500px;
            max-height: 50vh;
            overflow-y: auto;
            z-index: 5000;
        }
        #chart-popup canvas { width: 80%; height: 70%; }
        .popup-buttons {
            margin-bottom: 10px;
            display: flex;
            justify-content: center;
            gap: 5px;
        }
        button {
            padding: 8px 12px;
            cursor: pointer;
            border: none;
            background: #007bff;
            color: white;
            border-radius: 5px;
        }
        button:hover { background: #0056b3; }
        .legend {
            position: absolute;
            bottom: 70px;
            right: 10px;
            background: rgba(255, 255, 255, 0.6);
            padding: 10px;
            border-radius: 5px;
            font-family: Arial, sans-serif;
            font-size: 12px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: none;
            flex-direction: column;
            align-items: flex-start;
            max-height: fit-content;
        }
        .legend-container { display: flex; align-items: left; flex-direction: column; }
        .legend-labels {
            display: flex;
            flex-direction: column;
            height: 150px;
            justify-content: space-between;
            position: absolute;
            left: 40px;
            text-align: left;
            font-size: 10px;
        }
        .legend-labels span { position: relative; }
        .gradient-bar {
            width: 20px;
            height: 150px;
            background: linear-gradient(to bottom, 
    	#008000 0%,     /* Hijau Tua (Hujan Sangat Ringan) */
        #00C800 25%,    /* Hijau Terang (Hujan Ringan) */
        #FFFF00 50%,    /* Kuning (Hujan Sedang) */
        #FF7F00 75%,    /* Oranye (Hujan Lebat) */
        #FF0000 95%,    /* Merah (Hujan Sangat Lebat) */
        #C80000 100%    /* Merah Tua (Hujan Ekstrem) */

);            border-radius: 2px;
            border: 0px solid black;
            position: relative;
        }
#irSatelliteLegend strong { /* Pastikan judul utama juga terlihat bagus */
    display: block;
    margin-bottom: 5px;
}

.ir-legend-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px; /* Jarak setelah judul "Clouds" */
    font-size: 13px; /* Sedikit lebih besar */
}

.ir-legend-content {
    display: flex;
    flex-direction: column; /* Bar di atas, label di bawah */
    align-items: center; /* Pusatkan bar dan label jika lebarnya tidak 100% */
}

.ir-color-bar {
    display: flex;          /* Membuat span warna berbaris horizontal */
    width: 100%;            /* Lebar penuh kontainer .ir-legend-content */
    height: 20px;           /* Tinggi bar warna */
    border: 1px solid #bbb; /* Border tipis di sekitar bar */
    margin-bottom: 5px;     /* Jarak antara bar dan label horizontal */
    border-radius: 2px;
}

.ir-color-bar span {
    flex-grow: 1;           /* Setiap blok warna mengambil ruang yang sama */
}

.ir-labels-horizontal {
    display: flex;
    justify-content: space-between; /* "Low" di kiri, "High" di kanan */
    width: 100%;            /* Lebar penuh kontainer .ir-legend-content */
    font-size: 10px;
}

.ir-labels-horizontal span:first-child {
    text-align: left;
}

.ir-labels-horizontal span:last-child {
    text-align: right;
}
/* --- Styling untuk Judul Utama Legenda WV --- */
#wvSatelliteLegend strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px; /* Ukuran font judul utama */
    
}

/* --- Styling untuk Konten Spesifik Legenda WV --- */
.wv-legend-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 12px;
    
}

.wv-legend-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wv-color-bar {
    display: flex;
    width: 100%;
    height: 20px;
    border: 1px solid #bbb;
    margin-bottom: 5px;
    border-radius: 2px;
}

.wv-color-bar span {
    flex-grow: 1;
    /* border-right: 1px solid #eee; */ /* Dihapus karena kita akan set border spesifik per warna gelap */
}
/* .wv-color-bar span:last-child {
    border-right: none;
} */ /* Tidak perlu jika border diatur inline */


.wv-labels-horizontal {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 10px;
    
}

.wv-labels-horizontal span:first-child {
    text-align: left;
}

.wv-labels-horizontal span:last-child {
    text-align: right;
}
        @media screen and (max-width: 768px) { #legend { bottom:80px; right: 10px; } }
        #legend { display: block; z-index: 2000; }
        #precip-owm { display: none; z-index:1500; }
        #pressure-owm { display: none; }
        #topo-legend, #lulc-legend {
            display: none;
            position: absolute;
            top: 150px;
            right: 10px;
            background: rgba(255, 255, 255, 0.8);
            padding: 10px;
            border-radius: 5px;
            font-family: Arial, sans-serif;
            font-size: 10px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
            z-index: 3000;
            flex-direction: column;
            align-items: flex-start;
            max-height: fit-content;
        }
        #maptiler { position: absolute; top: 0; bottom: 0; width: 100%; }
        #layerSelector {
            position: absolute;
            top: 25%;
            left: 10px;
            transform: translateY(-50%);
            z-index: 2000;
            background: rgba(255, 255, 255, 0.6); /* Ubah opacity menjadi 0.7 (lebih transparan) */
            padding: 5px;
            border-radius: 5px;
            font-size: 10px;
	    font-weight: bold;
            gap: 1px;
            font-family: Roboto, sans-serif;
            box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);}
	#layerSelector label {
    	margin: 1px 0; /* Jarak lebih rapat */
    	padding: 1px;} /* Padding lebih kecil */
	.button { cursor: pointer; width: auto; padding: 8px; border-radius: 3px; font-size: 10px; text-align: center; color: #fff; background: #3174ff; font-family: sans-serif; font-weight: bold; }
        #time-info { position: absolute; width: 60vw; bottom: 0; z-index: 1; margin: 10px; text-shadow: 0px 0px 5px black; color: white; font-size: 18px; font-weight: 500; text-align: center; left: 0; right: 0; margin: auto; padding: 20px; }
        #time-slider { width: 100%; height: fit-content; left: 0; right: 0; z-index: 1; filter: drop-shadow(0 0 7px #000a); margin-top: auto; }
        #time-text { font-size: 12px; font-weight: 600; }
        #pointer-data { z-index: 1; position: fixed; font-size: 15px; font-weight: 900; margin: 35px 0px 0px 10px; color: #fff; text-shadow: 0px 0px 10px #0007; }
        #variable-name { z-index: 1; position: fixed; font-size: 15px; font-weight: 600; margin: 20px 0px 0px 10px; color: #fff; text-shadow: 0px 0px 10px #0007; }
	.popup-tropical img {
            width: 300px;
            height: auto;
            display: block;
	    z-index: 4000;
            margin: 5px auto;
            cursor: pointer;}
        .popup-buttons {
            text-align: center;
            margin-top: 5px;}
        .popup-buttons button {
            margin: 2px;
            padding: 5px 10px;
            cursor: pointer;
            background-color: blue;
            color: white;
            border: none;
            border-radius: 5px;}
        .leaflet-popup-close-button {
            background-color: red !important;
            color: white !important;
            font-weight: bold;
            padding: 0px;
            border-radius: 5px;}
        .fullscreen-img {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 4000;}
        .fullscreen-img img {
            max-width: 90%;
            max-height: 90%;
	    z-index: 4000;}
        .fullscreen-img .close-btn {
            position: absolute;
            top: 40px;
            right: 20px;
            background: red;
            color: white;
            padding: 10px;
            cursor: pointer;
            border: none;
            font-size: 16px;
	    z-index: 4000;
            border-radius: 5px;}
	.awos-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;}
        .awos-content {
            background: white;
            width: 90%;
            height: 90%;
            position: relative;
            border-radius: 10px;
            overflow: hidden;}
        .awos-content iframe {
            width: 100%;
            height: 100%;
            border: none;}
        .awos-close {
            position: fixed;
            top: 10px;
            right: 10px;
            background: red;
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            border-radius: 5px;}
  .awos-link {
    display: block;
    text-align: center;
    background: blue;
    color: white !important; /* Paksa warna teks menjadi putih */
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
    font-size: 10px; 
  }
.hidden { display: none !important; }
.custom-control-container {
    padding: 10px;
    background-color: rgba(40, 40, 40, 0.85);
    color: #fff;
    border-radius: 5px;
    border: 1px solid #555;
    z-index: 1000;
    box-sizing: border-box;
}
#fl-selector-container {
    position: absolute;
    top: 80px;
    left: 10px;
}
#fl-selector {
    background-color: #333;
    color: #fff;
    border: 1px solid #777;
    border-radius: 4px;
    padding: 5px;
    font-size: 10px;
}

#turbulence-legend {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
}
#turbulence-legend h4 {
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 10px;
}
#turbulence-legend .legend-scale {
    display: flex;
    margin: 0 auto;
    width: 500px;
}
#turbulence-legend .legend-color {
    width: 50px;
    height: 25px;
    border: 1px solid #000;
    margin-right: -1px;
}
/* Aturan ini SEKARANG HANYA BERLAKU UNTUK LEGENDA TURBULENCE */
#turbulence-legend .legend-labels {
    position: relative;
    width: 500px;
    height: 20px;
    margin: 0 auto;
    font-size: 10px;
}
#turbulence-legend .legend-labels span {
    position: absolute;
    transform: translateX(-50%);
}
#turbulence-legend .legend-labels span:nth-child(1) { left: 30px; }
#turbulence-legend .legend-labels span:nth-child(2) { left: 100px; }
#turbulence-legend .legend-labels span:nth-child(3) { left: 170px; }
#turbulence-legend .legend-labels span:nth-child(4) { left: 240px; }
#turbulence-legend .legend-labels span:nth-child(5) { left: 310px; }
#turbulence-legend .legend-labels span:nth-child(6) { left: 400px; }

#turbulence-legend .legend-units {
    text-align: center;
    font-size: 10px;
    color: #ccc;
    margin-top: 2px;
}

#time-slider-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 800px;
}
#time-display { text-align: center; font-size: 10px; font-weight: bold; margin-bottom: 15px; }
.slider-controls { display: flex; align-items: center; }
.slider-arrow { background: #555; color: #fff; border: 1px solid #777; border-radius: 4px; cursor: pointer; font-size: 10px; padding: 5px 10px; }
.slider-arrow:hover { background: #777; }
.slider-main { flex-grow: 1; margin: 0 10px; }
#time-slider { width: 100%; cursor: pointer; }
#slider-ticks { display: flex; justify-content: space-between; font-size: 10px; color: #ccc; margin-top: 5px; }
/* ======================================================= */

@media screen and (max-width: 768px) {
	 #sigmet-tool {
        display: none !important;}
            #fl-selector-container { top: auto; bottom: 180px; left: 50%; transform: translateX(-50%); width: 50vw; }
            #fl-selector { width: 100%; }
            #turbulence-legend { bottom: 90px; width: 90vw; padding: 5px; }
            #turbulence-legend .legend-scale, #turbulence-legend .legend-labels { width: 90%; }
            #turbulence-legend .legend-color { flex-grow: 1; width: auto; height: 20px; }
            #turbulence-legend .legend-labels span:nth-child(1) { left: 2%; }
            #turbulence-legend .legend-labels span:nth-child(2) { left: 15%; }
            #turbulence-legend .legend-labels span:nth-child(3) { left: 30%; }
            #turbulence-legend .legend-labels span:nth-child(4) { left: 45%; }
            #turbulence-legend .legend-labels span:nth-child(5) { left: 60%; }
            #turbulence-legend .legend-labels span:nth-child(6) { left: 75%; }
            #time-slider-container { width:90vw; bottom: 10px; padding: 8px; }
            #time-display, #slider-ticks span { font-size: 9px; }
            #slider-ticks { overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-bottom: 5px; white-space: nowrap; }
            #slider-ticks span { flex-shrink: 0; margin-right: 15px; }
            .leaflet-control-layers-expanded { max-height: 40vh; overflow-y: auto; }
        
            }
        /* === CSS UNTUK ALAT SIGMET === */
        #sigmet-tool {
            position: absolute; /* PENTING: Agar tombol X bisa diposisikan di dalamnya */
            /* ... sisa aturan #sigmet-tool tetap sama ... */
            top: 80px; right: 10px; width: 350px;
            background: rgba(255, 255, 255, 0.9); color: #333; z-index: 4001;
            padding: 15px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
            font-size: 12px; max-height: 85vh; display: flex; flex-direction: column;
        }


        #sigmet-tool-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
            line-height: 1; /* Mencegah tinggi baris ekstra */
        }
        #sigmet-tool-close-btn:hover {
            color: #333; /* Warna menjadi lebih gelap saat disentuh mouse */
        }
        #sigmet-tool h3 { text-align: center; margin: 0 0 15px 0; font-size: 16px; color: #0056b3; }
        .sigmet-form-group { margin-bottom: 10px; }
        .sigmet-form-group label { display: block; margin-bottom: 4px; font-weight: bold; }
        .sigmet-form-group input[type="text"], .sigmet-form-group select {
            width: 100%; padding: 6px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
        }
        .sigmet-form-inline { display: flex; gap: 10px; align-items: flex-end; /* align-items: end agar tombol sejajar bawah */ }
        .sigmet-form-inline > div { flex: 1; } /* div akan mengambil ruang yang sama */
        #sigmet-add-4h-btn {
            flex-shrink: 0; /* Mencegah tombol menciut */
            padding: 6px 10px;
            height: 30px; /* Samakan tinggi dengan input */
        }
        #sigmet-output { width: 100%; height: 150px; font-family: 'Courier New', Courier, monospace; font-size: 11px; border: 1px solid #ccc; border-radius: 4px; margin-top: 10px; white-space: pre; overflow-x: auto; }
        .sigmet-button-group { display: flex; gap: 10px; margin-top: 15px; }
        .sigmet-button-group .btn { flex-grow: 1; padding: 10px; border-radius: 5px; border: none; color: white; cursor: pointer; font-weight: bold; }
        .btn-draw { background-color: #28a745; }
        .btn-clear { background-color: #ffc107; color: #333; }
        .btn-generate { background-color: #007bff; }
        .btn-copy { background-color: #6c757d; }
        /* === CSS BARU UNTUK TOMBOL GEOLOKASI === */
        #locate-btn {
            position: absolute;
            top: 120px; /* Posisikan di bawah judul */
            right: 25px;
            z-index: 2000;
            background: rgba(255, 255, 255, 0.8);
            width: 34px;
            height: 34px;
            border-radius: 5px;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
            /* Untuk memposisikan simbol di tengah tombol */
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
        }
        #locate-btn:hover {
            background: #f4f4f4; /* Efek hover agar lebih interaktif */
        }
        /* === PERBAIKAN TAMPILAN POPUP SIGMET === */
        .custom-sigmet-popup .leaflet-popup-content-wrapper {
            width: 350px; /* Atur lebar tetap untuk popup */
            border-radius: 8px; /* Sudut lebih tumpul agar modern */
        }
        
        .custom-sigmet-popup .leaflet-popup-content {
            margin: 0; /* Hapus margin default agar header bisa penuh */
            width: 100% !important; /* Pastikan konten mengisi wrapper */
        }
        
        .sigmet-popup-header {
            padding: 8px 12px;
            background-color: #3388ff; /* Warna default jika tidak di-set*/
            color: white;
            font-weight: bold;
            font-size: 14px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        .sigmet-popup-body {
            padding: 12px;
        }
        
        .sigmet-level-info {
            font-size: 13px;
            margin-bottom: 8px;
        }

        .sigmet-raw-text pre {
            margin: 0;
            white-space: pre-wrap; /* Agar teks panjang otomatis turun baris */
            word-wrap: break-word; /* Memastikan kata yang sangat panjang tidak keluar box */
            font-family: 'Courier New', Courier, monospace;
            font-size: 12px;
            color: #333;
        }

        .custom-sigmet-popup hr {
            border: 0;
            border-top: 1px solid #eee;
            margin: 8px 0;
        }
