/* Secara default nonaktifkan select di seluruh halaman */
body {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* Chrome & modern browser */
}

/* Tapi izinkan select di input, textarea, dan elemen contenteditable */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}


.page-content {
    display: flex;
    /* harus ada untuk flexbox */
    flex-direction: column;
    /* opsional, untuk susunan vertikal */
    justify-content: center;
    /* tengah vertical */
    align-items: center;
    /* tengah horizontal */
    min-height: calc(100vh - 60px);
    /* tinggi layar dikurangi navbar/footer */
    overflow-y: auto;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    /* agar padding tidak menambah lebar */

}

/* HP */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}


.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Tengah horizontal */
    justify-content: center;
    /* Tengah vertikal jika perlu */
    flex: 1;
    font-size: 12px;
    color: #333;
    text-decoration: none;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    /* Jarak antara icon dan teks */
    color: #444;
}

.nav-item:hover,
.nav-item.active {
    color: #e74c3c;
    font-weight: bold;
}

.nav-item:hover i,
.nav-item.active i {
    color: #e74c3c;
}



/* FULL SCREEN NOTIF (BOTTOM SHEET STYLE) */
.fullscreen-notif {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    /* otomatis sesuai isi */
    min-height: 100px;
    /* batas minimum */
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    /* sembunyi di bawah */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.5s ease;
    z-index: 9999;
    padding: 24px 20px;
    /* spasi nyaman */
    box-sizing: border-box;
}

.fullscreen-notif.show {
    transform: translateY(0);
    /* naik */
    opacity: 1;
}

.fullscreen-notif h2 {
    font-size: 22px;
    font-weight: 700;
    color: #16a085;
    /* warna Alfa Go */
    margin-bottom: 10px;
}

.fullscreen-notif p {
    font-size: 16px;
    color: #555;
    max-width: 90%;
}


.card-option-customer {
    background: #27ae60;
    color: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-option-customer:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #16a085, #2ecc71);
}

.card-option-customer img {
    width: 70px;
    margin-bottom: 15px;
}

.card-option-customer h3 {
    font-size: 18px;
    font-weight: 600;
}


.pac-container {
    background-color: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    font-size: 14px;
    z-index: 99999 !important;
    /* supaya tidak ketutup navbar */
}

.pac-item {
    padding: 10px;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.pac-item:hover {
    background-color: #f0f0f0;
}

.pac-icon {
    display: none;
    /* sembunyikan icon default Google */
}

/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    backdrop-filter: blur(2px);
}

.modal-overlay.show {
    display: flex;
}

/* Box Modal */
.modal-box {
    background: #fff;
    color: #333;
    border-radius: 15px;
    padding: 20px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeUp 0.3s ease;

    text-align: right;
    /* ✅ ubah jadi kiri */
}

@keyframes fadeUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header (ikon + judul sejajar kiri) */
/* Header (ikon + judul) */
.modal-header {
    /* display: flex; */
    align-items: flex-start;
    /* 🔥 agar teks mulai dari atas, sejajar dengan icon */
    gap: 8px;
    margin-bottom: 10px;
    /* background: #290909; */

}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
    align-items: flex-start;
}

.modal-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.modal-icon.info {
    color: #3498db;
}

.modal-icon.success {
    color: #27ae60;
}

.modal-icon.warning {
    color: #f39c12;
}

.modal-icon.error {
    color: #e74c3c;
}


/* Garis pemisah */
.modal-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0 15px;
}

/* Pesan (boleh tetap kiri agar rapi) */
.modal-box p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #555;
    text-align: left;
    /* ✅ pastikan kiri */
}

/* Tombol di kanan */
.modal-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.modal-actions1 {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions1 button {
    padding: 8px 18px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

#modalCancel {
    background: #ccc;
    color: #333;
}

#modalCancel:hover {
    background: #bbb;
}

#modalOk {
    background: #16a085;
    color: #fff;
}

#modalOk:hover {
    background: #138d75;
}

/* Overlay penuh layar */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    /* default sembunyi */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 20000;
    /* di atas semua UI */
    backdrop-filter: blur(2px);
    /* efek blur */
}

/* Spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #16a085;
    /* warna utama */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}


.hidden {
    display: none !important;
}