html, body, #map {
    height: 100%;
    margin: 0;
}

/* Blinking or pulsing effect for orange circles */
@keyframes blink {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.orange-blink {
    color: rgb(255, 255, 255);
    animation: blink 1s infinite;
}

#map {
    height: 100vh; /* Full viewport height */
    width: 100%; /* Full width */
    position: relative; /* Allow positioning of dropdown inside map */
}

#area-dropdown {
    top: 10px;
    left: 150px;
    position: absolute;
    background: white;
    padding: 6px;
    border: 1px solid #ccc;
    font-family: 'calibri', 'sans serif';
    z-index: 1000;
    font-weight: bold;
    border-radius: 0%;
    border-color: gray;
    border-width: 0.2dvh;
}

#status-info, #down-info, #fit-screen-button, #show-report-btn {
    position: absolute;
    background: white;
    padding: 5px;
    border: 1px solid #ccc;
    font-family: 'calibri', 'sans serif';
    z-index: 1000;
}

#coordinate-info { 
    position: absolute;
    padding: 6px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 0%;
    border-color: gray;
    border-width: 0.2dvh;
    top: 10px;
    left: 310px;
    z-index: 1000;
}

#status-info {
    bottom: 50px;
    right: 10px;
}

#down-info {
    top: 10px;
    right: 10px;
    max-height: 200px;
    overflow-y: auto;
}

#fit-screen-button {
    top: 10px;
    left: 60px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 0%;
    border-color: gray;
    border-width: 0.2dvh;
}

#show-report-btn {
    top: 10px;
    left: 244px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 0%;
    border-color: gray;
    border-width: 0.2dvh;
}

#ap-details {
    display: none;
    position: absolute; /* Ensure it appears over the map */
    bottom: 50px; /* Position it at the bottom of the viewport */
    left: 10px; /* Adjust the position from the left edge */
    background: white; /* Background color for readability */
    padding: 10px; /* Padding for spacing */
    border: 1px solid #ccc; /* Border for visual separation */
    z-index: 1000; /* Ensure it appears above other elements */
    width: calc(100% - 250px); /* Full width minus padding */
    max-height: 200px; /* Limit height for overflow */
    overflow-y: auto; /* Add scroll if content exceeds max height */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
}

#site-button {
    background-color: #4CAF50; /* Warna hijau */
    color: white;
    bottom: 50px;
    left: 10px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    position: absolute;
    padding: 5px;
    border: 1px solid #ccc;
    font-family: 'calibri', 'sans serif';
    z-index: 1000;
}

#site-button:hover {
    background-color: #45a049;
}

#brand-legend {
    bottom: 50px;
    left: 50%;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    position: absolute;
    padding: 5px;
    border: 1px solid #ccc;
    font-family: 'calibri', 'sans serif';
    z-index: 1000;
}

.legend-item {
    margin: 4px 0;
    display: flex;
    align-items: center;
}

.legend-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.brand-count-info {
    margin-top: 10px;
    font-size: 12px;
    color: #333;
}


#ap-info {
    font-family: 'calibri', 'sans-serif';
    font-size: 14px; /* Adjust as needed */
    color: #333; /* Dark text color for readability */
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
}
/* Countdown Timer Styling */
#countdown-timer {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: white; /* White text color */
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 10px;
    z-index: 1000; /* Ensure it stays on top */
    font-family: Arial, sans-serif; /* Optional: Set a font */
}

.ap-detail-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.status-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.expandable {
    cursor: pointer;
}

.expandable-content {
    display: none;
}

.expanded .expandable-content {
    display: block;
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top of the map and other elements */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Center modal content */
.modal-content {
    background-color: #fff; /* White background for modal content */
    margin: auto; /* Center horizontally */
    padding: 20px;
    border: 1px solid #ccc; /* Border for modal */
    border-radius: 5px; /* Rounded corners */
    width: 80%; /* Adjust width as needed */
    max-height: 80%; /* Limit the height of the modal */
    overflow-y: auto; /* Scroll if content exceeds max height */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
    
    /* Flexbox to center content vertically and horizontally */
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    position: absolute; /* Position it relative to the modal */
    top: 50%; /* Move it down to 50% of the screen height */
    left: 50%; /* Move it right to 50% of the screen width */
    transform: translate(-50%, -50%); /* Adjust position to truly center */
}

/* Close button styling */
.close {
    color: #aaa; /* Close button color */
    float: right; /* Position close button to the right */
    font-size: 28px; /* Font size for close button */
    font-weight: bold; /* Bold text for visibility */
}

.close:hover,
.close:focus {
    color: black; /* Change color on hover */
    text-decoration: none; /* Remove underline */
    cursor: pointer; /* Pointer cursor on hover */
}

/* Additional styles for table and content */
table {
    width: 100%; /* Full width for the table */
    margin-top: 20px; /* Space above the table */
    border-collapse: collapse; /* Collapse borders for a cleaner look */
}

th, td {
    padding: 10px; /* Padding for table cells */
    text-align: center; /* Center text in table */
    border: 1px solid #ddd; /* Light gray border for cells */
}

th {
    background-color: #f2f2f2; /* Light gray background for headers */
    color: #333; /* Dark text color for readability */
}

tr:nth-child(even) {
    background-color: #f9f9f9; /* Alternate row color for better readability */
}

tr:hover {
    background-color: #e1e1e1; /* Highlight row on hover */
}

/* Optional: Style for the modal header */
.modal-content h2 {
    text-align: center; /* Center header text */
    margin-bottom: 15px; /* Space below header */
}




