/* Center and responsive map container */
#map {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: auto;
}

/* Make SVG responsive inside #map */
#map svg {
    width: 100%;
    height: auto;
    display: block;
}

/* District name
.district-name {
    position: absolute;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: bold;
    color: #000;
    pointer-events: none;
    white-space: nowrap;
} */

.district-name {
    position: absolute;
    font-family: Helvetica, sans-serif;
    /*font-weight: bold;*/
    color: #000;
    pointer-events: none;
    white-space: nowrap;

    /* Change font-size to be proportional to map width */
    font-size: calc(0.4vw + 2px); /* map shrink হলে নামও shrink হবে */
}



/* Popup box */
.popup {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, 20px) scale(0.95);
    opacity: 0;
    width: 210px;
    min-height: 210px;
    padding: 30px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Smooth animation */
.popup.show {
    display: inline-block;
    opacity: 1;

    /* এখানে ↑ value পরিবর্তন করা হয়েছে */
    transform: translate(-50%, -85px) scale(1);

    transition: transform 0.3s ease;
    pointer-events:none;
}

/* Corner badge (top-right circle) */
.popup .short-name {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 50px;
    height: 50px;
    background: #0b851e;
    color: white;
    border-radius: 50% 0 50% 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

/* Popup content formatting */
.popup-content {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
    color: #333;
    word-wrap: break-word;
}

.popup-content .popup-block {
    margin: 0 0 0.1em 0;
}

.popup-content .popup-block strong {
    display: block;
    margin-bottom: 0.0em;
}


/* District shortname badge on map 
.district-shortname {
    position: absolute;
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: bold;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}*/

/* ---------- View List / Table styles (new) ---------- */

/* ---------------- Top Buttons ---------------- */
/* ---------------- Top Buttons ---------------- */
#idm-top-controls .idm-btn {
    background: #E6E8EA;
    color: #000;
    border: 1px solid #0b851e;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 6px;
    transition: all 0.25s ease;
}
#idm-top-controls .idm-btn.active {
    background: #0b851e;
    color: #fff;
    border-color: #0b851e;
}

/* ---------------- Toolbar ---------------- */
#idm-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#idm-list-toolbar .left-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
#idm-list-toolbar .right-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
#idm-list-toolbar input,
#idm-list-toolbar select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}
#idm-list-toolbar input:focus,
#idm-list-toolbar select:focus {
    border-color: #0b851e;
    box-shadow: 0 0 10px rgba(11,133,30,0.2);
}
#idm-list-toolbar input::placeholder {
    color: #aaa;
    font-style: italic;
}
#idm-list-toolbar select {
    appearance: none;
    -webkit-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%230b851e" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

/* ---------------- Table ---------------- */
.idm-smart-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-top: 6px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.idm-smart-table thead {
    background: #0b851e;
    color: #fff;
}
.idm-smart-table thead th {
    text-align: left;
    padding: 12px;
    font-size: 14px;
}
.idm-smart-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.idm-smart-table tbody tr:hover {
    background: #f0f8f0;
}

/* ---------------- Pagination ---------------- */
#idm-pagination {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}
#idm-pagination .idm-page-btn {
    background: #958d8d;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
#idm-pagination .idm-page-btn:hover:not([disabled]) {
    background: #0b851e;
    color: #fff;
    border-color: #0b851e;
}
#idm-pagination .idm-page-btn.active {
    background: #0b851e;
    color: #fff;
    border-color: #0b851e;
}
#idm-pagination .idm-page-btn[disabled] {
    opacity: 0.5;
    color : #000;
    cursor: default;
}

/* ---------------- Responsive ---------------- */
@media (max-width:800px) {
    #idm-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    #idm-list-toolbar .left-controls,
    #idm-list-toolbar .right-controls {
        width: 100%;
        justify-content: flex-start;
    }
    .idm-smart-table thead { display: none; }
    .idm-smart-table tbody td { display: block; width: 100%; }
    .idm-smart-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
    }
}
