
        body {
            font-family: Arial, sans-serif;
            color: #333;
            margin: 0;
            padding: 10px;
            background-color: #f4f4f4;
        }

        /* Default style (fallback jika media query tidak didukung) */
        body {
            font-size: 15px; /* Ukuran default untuk laptop */
        }

        /* Media query untuk HP (lebar layar maksimal 600px) */
        @media only screen and (max-width: 600px) {
            body {
                font-size: 12px; /* Ukuran huruf untuk HP */
            }
            /* Sesuaikan ukuran input & tombol untuk HP */
             input[type="text"], input[type="datetime-local"], .select-input { font-size: 16px; padding: 6px; }
             .elegant-button, .elegant-button2, .elegant-button3, .midnight-btn, .utc-btn, .btn { font-size: 12px; height: auto; min-height: 28px; padding: 4px 8px;}
             h1 { font-size: 1.5em; } h3 {font-size: 1.1em;}
             .dialogBox { width: 90%; left: 5%; top: 10%; max-height: 80vh; padding: 15px;} /* Dialog box di HP */
             #InputTable th, #InputTable td { padding: 4px;} /* Padding tabel input */
             #AstroDataTable th, #AstroDataTable td { padding: 4px; } /* Padding tabel astro */
             .footer p small { font-size: 0.8em;}
        }

        /* Media query untuk Tablet (lebar layar antara 601px dan 1024px) */
        @media only screen and (min-width: 601px) and (max-width: 1024px) {
            body {
                font-size: 13px; /* Ukuran huruf untuk Tablet */
            }
             input[type="text"], input[type="datetime-local"], .select-input { font-size: 17px; padding: 7px; }
             .dialogBox { width: 80%; left: 10%; top: 12%;}
        }

        /* Media query untuk Laptop (lebar layar lebih dari 1024px) */
        @media only screen and (min-width: 1025px) {
            body {
                font-size: 15px; /* Ukuran huruf untuk Laptop */
            }
        }

        h1,
        h2 {
            text-align: center;
            color: #333;
        }

        h3 {
            text-align: center;
            color: #000;
            margin-top: 15px; /* Beri jarak atas */
            margin-bottom: 10px; /* Beri jarak bawah */
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            margin-top: 15px; /* Kurangi margin atas */
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            background-color: #fff;
            border: 1px solid #eee;
            font-size: inherit; /* Warisi font size dari body */
        }
         #locationTable { font-size: 12px; } /* Ukuran khusus tabel besar */

        table th,
        table td {
            padding: 6px 8px; /* Sedikit lebih lega */
            text-align: left;
            border: 1px solid #ddd;
            vertical-align: middle; /* Teks di tengah vertikal */
        }

        table th {
            background-color: #333;
            color: #fff;
            cursor: pointer;
            position: relative; /* Untuk panah sort */
        }
         /* Style untuk panah sort */
         table th .sort-arrow {
             font-size: 0.8em;
             margin-left: 5px;
             display: inline-block; /* Agar tidak turun baris */
             color: #aaa; /* Warna panah abu-abu */
         }
         table th.sort-asc .sort-arrow { color: #fff; } /* Warna panah aktif */
         table th.sort-desc .sort-arrow { color: #fff; } /* Warna panah aktif */

        table tr:nth-child(even) td {
            background-color: #f9f9f9;
        }

        input[type="text"] {
            width: 100%; /* Responsif */
            max-width: 250px;
            padding: 8px;
            margin: 5px 0;
            font-size: 1.1em; /* Relatif thd body */
            font-family: monospace;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        input[type="datetime"],
        input[type="datetimebox"],
        input[type="datetime-local"] {
            width: 100%;
            max-width: 320px;
            padding: 8px;
            margin: 5px 0;
            font-size: 1.1em; /* Relatif thd body */
            font-family: monospace;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        input[type="checkbox"] {
            margin-right: 5px;
            vertical-align: middle;
        }

        label {
            font-weight: bold;
            vertical-align: middle;
        }

        .Numeric, .Numeric2, .Numeric3, .dp2 {
            font-family: monospace;
            font-size: 1.1em; /* Relatif */
            text-align: right;
            padding-right: 10px;
        }
         .Numeric2 { color: black; background-color: lightgreen; }
         .Numeric3 { color: #333; text-decoration: underline; }
         #Sun_alt, #Moon_alt, #elongation { text-align: center; padding-right: 0; font-weight: bold;}
         #elongation { color: red; background-color: lightblue; vertical-align: middle;}
         #Moon_alt { color: red; background-color: lightblue; }


        .pointer { cursor: pointer; color: red; }
        .tebal { font-weight: bold; }
        .kiri { text-align: left; }
        .kanan { text-align: right; }
        .tengah { text-align: center; }

        .link { text-align: left; margin-top: 10px; }
        .link a { color: blue; }
        .link a:hover { text-decoration: underline; }

        .select-input {
             width: 100%;
             padding: 8px;
             border: 1px solid #ccc;
             text-align: left;
             font-size: 1.1em; /* Relatif */
             margin: 5px 0;
             background-color: lightgreen;
             color: darkblue;
             border-radius: 4px;
             box-sizing: border-box;
        }

        .nowrap { white-space: nowrap; }

        .midnight-btn, .utc-btn {
            padding: 8px 12px;
            margin-left: 5px;
            cursor: pointer;
            color: #fff;
            border: none;
            border-radius: 4px;
            font-size: 0.9em; /* Relatif */
            vertical-align: middle;
        }
         .midnight-btn { background-color: #333; }
         .midnight-btn:hover { background-color: #555; color: #fff; }
         .utc-btn { background-color: #ffc107; color: #333; }
         .utc-btn:hover { background-color: #e0a800; color: #000; }

        .elegant-button, .elegant-button2, .elegant-button3, .btn-sm { /* Tambah btn-sm */
            background-color: #28a745; color: white;
            padding: 5px 10px; text-align: center;
            height: auto; /* Tinggi auto */
            min-height: 30px; /* Tinggi minimum */
            line-height: normal; /* Hapus line height */
            border: none; border-radius: 5px;
            font-size: 14px; font-weight: bold; cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
            box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
            margin: 3px; vertical-align: middle;
        }
         /* Ukuran lebih kecil */
         .btn-sm { padding: 3px 8px; font-size: 12px; min-height: 26px;}

         .elegant-button:hover { background-color: #218838; transform: translateY(-1px); }
         .elegant-button:active { background-color: #1e7e34; transform: translateY(0); }
         .elegant-button2 { background-color: darkblue; }
         .elegant-button2:hover { background-color: lightblue; transform: translateY(-1px); color: darkblue; }
         .elegant-button2:active { background-color: #000080; transform: translateY(0); }
         .elegant-button3 { background-color: darkgreen; }
         .elegant-button3:hover { background-color: lightgreen; transform: translateY(-1px); color: darkblue; }
         .elegant-button3:active { background-color: #005000; transform: translateY(0); }

         /* Style tombol dari Bootstrap */
         .btn { display: inline-block; font-weight: 400; text-align: center; vertical-align: middle; user-select: none; background-color: transparent; border: 1px solid transparent; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; border-radius: .25rem; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; }
         .btn-primary { color: #fff; background-color: #007bff; border-color: #007bff; }
         .btn-primary:hover { color: #fff; background-color: #0056b3; border-color: #0056b3; }
         .btn-warning { color: #212529; background-color: #ffc107; border-color: #ffc107; }
         .btn-warning:hover { color: #212529; background-color: #e0a800; border-color: #d39e00; }
         .btn-success { color: #fff; background-color: #28a745; border-color: #28a745; }
         .btn-success:hover { color: #fff; background-color: #1e7e34; border-color: #1c7430; }
         .btn-info { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }
         .btn-info:hover { color: #fff; background-color: #117a8b; border-color: #10707f; }
         .btn-sm { padding: .25rem .5rem; font-size: .875rem; line-height: 1.5; border-radius: .2rem; }


        .footer {
            width: 96%; margin: 20px auto 10px auto;
            border: 0px solid #ccc; background-color: #333; color: white;
            white-space: normal; text-align: center;
            padding: 15px; border-radius: 5px;
        }

        #scatterplot {
            width: 100% !important; text-align: center !important; display: none;
            transition: all 0.3s ease; border: 1px solid #ddd;
            background-color: #fff; min-height: 400px;
        }

        .content { margin-top: 15px; font-size: inherit; color: darkblue; text-align: left; line-height: 1.6; }
        #caranyaContent { font-size: 0.95em; } /* Sedikit lebih kecil */

        .hidden { display: none; }

        .dialog { display: none; background-color: white; border: 1px solid #ccc; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 20px; width: 100%; }
        .dialog.active { display: block; }
        .dialog-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; } /* Tambah border & margin */
        .dialog-header h3 { margin: 0; color: #333; font-size: 1.2em; }
        .close-btn { cursor: pointer; font-size: 24px; color: #aaa; background: none; border: none; padding: 0 5px; }
        .close-btn:hover { color: #777; }

        .download-button { /* Style sudah OK */ }

        .dialogBox {
            position: fixed; top: 15%; left: 15%; width: 70%;
            background-color: white; border: 2px solid #28a745; border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 9999; padding: 25px;
            display: none; max-height: 70vh; overflow-y: auto;
        }
        .dialogBox.active { display: block; }
         /* Dialog Box content styling */
         #isiDialogManual ul { list-style: disc; margin-left: 20px; margin-bottom: 15px;}
         #isiDialogManual li { margin-bottom: 5px; }
         #isiDialogManual p b { color: #0056b3; } /* Warna biru untuk judul analisis */

        fieldset {
            position: relative; overflow: visible; /* Ubah ke visible agar legend tidak terpotong */
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); border-radius: 8px;
            border: 1px solid #ccc; padding: 20px; margin-bottom: 15px;
            background-color: rgba(255, 255, 255, 0.8);
        }
         fieldset > * { position: relative; z-index: 1; }
         fieldset legend {
            font-size: 1em; font-weight: bold; color: #333;
            padding: 0 10px; width: auto; border-bottom: none;
            margin-bottom: 10px; background-color: inherit; /* Warna sama dgn fieldset */
            /* Posisi relatif agar di atas border fieldset */
             position: relative; top: -0.8em; left: 10px;
         }

         /* Kustomisasi Fieldset Info Kota Pertama */
         #firstCityInfoContainer fieldset { border-color: blue; background-color: #e9f5ff; }
         #firstCityInfoContainer legend { color: blue; }

        .boundary-line {
            position: absolute;
            background-color: ;
            z-index: 1000;
            box-shadow: ;
            pointer-events: none;
        }
        
        .boundary-line-horizontal {
            height: 0px;
            width: 0%;
            left: 0;
        }
        
        .boundary-line-vertical {
            width: 0px;
            height: 0%;
            top: 0;
        }
