body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Custom scrollbar for service list and modal reviews */
.service-list-container::-webkit-scrollbar,
#modal-service-reviews::-webkit-scrollbar,
#my-orders-list::-webkit-scrollbar { /* Tambahkan scrollbar untuk riwayat pesanan */
    width: 8px;
}

.service-list-container::-webkit-scrollbar-track,
#modal-service-reviews::-webkit-scrollbar-track,
#my-orders-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    width: 80%;
}

.service-list-container::-webkit-scrollbar-thumb,
#modal-service-reviews::-webkit-scrollbar-thumb,
#my-orders-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.service-list-container::-webkit-scrollbar-thumb:hover,
#modal-service-reviews::-webkit-scrollbar-thumb:hover,
#my-orders-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#service-list  {
    max-height: 550px;
    overflow-y: auto;
    padding-right: 8px; /* Memberi ruang untuk scrollbar */
}

/* Style for the modal overlay */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Star rating input styles */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-left: 0.5rem; /* Memberi sedikit jarak dari nama jasa */
 }

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem; /* Ukuran bintang */
    color: #ccc; /* Warna bintang kosong */
    cursor: pointer;
    padding: 0 0.1rem;
}

.star-rating input:checked ~ label {
    color: #ffc107; /* Warna bintang terisi */
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

.star-icon {
    color: #ffc107; /* Warna bintang terisi */
    font-size: 1.25rem; /* Ukuran bintang */
    margin-right: 0.1rem;
}

/* Style for order status icon */
.status-icon {
    font-size: 1.5rem; /* Larger icon size */
    margin-left: 0.5rem; /* Margin left for icon next to phone */
}

.service-cards-container::-webkit-scrollbar {
    width: 8px;
}
.service-cards-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.service-cards-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.service-cards-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Styling for the map container */
#map-container {
    width: 100%;
    height: 250px; /* Fixed height for the map image */
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden; /* Ensure image fits within bounds */
}

#map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
}

/* Style for the temporary message box */
#message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 9999px;
    color: white;
    z-index: 100;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.message-card {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.reply-card {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

/* --- STAR RATING --- */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Membalik urutan agar sibling selector bekerja */
    justify-content: center;
    gap: 0.1rem;
    padding-top: 5px; /* Tambahkan sedikit padding atas */
}

/* Sembunyikan Input Radio secara non-invasif */
.star-rating input[type="radio"] {
    opacity: 0 !important;
    position: fixed !important; 
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Gaya Default Label (Bintang Belum Terpilih) */
.star-rating label {
    cursor: pointer !important;
    font-size: 2.5rem !important; /* Ukuran yang lebih besar */
    color: #ccc !important; /* Warna default abu-abu */
    transition: color 0.2s !important;
    line-height: 1 !important; /* Pastikan tidak ada spasi ekstra */
}

/* Efek Checked: Mewarnai bintang yang dipilih (checked) dan semua bintang di bawahnya */
.star-rating input[type="radio"]:checked ~ label {
    color: gold !important; /* Warna bintang yang sudah dipilih */
}

/* Efek Hover: Mewarnai bintang saat mouse di atasnya dan bintang di bawahnya */
/* Selector ini memastikan warna berubah saat di-hover meskipun belum dicek */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: gold !important; /* Warna saat di-hover */
}

/* Overwrite efek hover jika sudah ada yang dipilih, agar hover tetap terlihat */
.star-rating input[type="radio"]:checked ~ label:hover,
.star-rating input[type="radio"]:checked ~ label:hover ~ label {
    color: gold !important; 
}