/* assets/css/style.css */

/* Menggunakan font yang lebih modern seperti Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Transisi halus untuk interaksi */
a, button, input, select, textarea {
    transition: all 0.2s ease-in-out;
}

/* Gaya untuk peta Leaflet */
#map {
    height: 300px; /* Default height */
    border-radius: 0.5rem; /* rounded-lg */
    z-index: 0; /* Memastikan peta di bawah elemen lain seperti popup */
}

/* Custom class untuk notifikasi/alert */
.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left-width: 4px;
    border-radius: 0.25rem;
}
.alert-success {
    background-color: #f0fdf4; /* green-50 */
    border-color: #22c55e; /* green-500 */
    color: #15803d; /* green-800 */
}
.alert-danger {
    background-color: #fef2f2; /* red-50 */
    border-color: #ef4444; /* red-500 */
    color: #b91c1c; /* red-800 */
}
.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
}
.alert-close:hover {
    opacity: 1;
}


/* Styling untuk modal agar lebih konsisten */
.modal {
    position: fixed;
    z-index: 50;
    inset: 0;
    overflow-y: auto;
    display: none; /* Defaultnya tersembunyi */
}
.modal-bg {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 24, 39, 0.75); /* gray-900 with opacity */
}
.modal-box {
    position: relative;
    margin: 2rem auto;
    width: 95%;
    max-width: 32rem; /* max-w-lg */
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease-out;
}
.modal.active .modal-box {
    transform: translateY(0);
    opacity: 1;
}
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb; /* gray-50 */
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Styling untuk info box di peta jika koordinat tidak ada */
.map-info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}
.map-info h4 {
    margin: 0 0 5px;
    color: #777;
}
