@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Container */
.bmd-directory-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    position: relative;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 16px;
}

.bmd-directory-container::before {
    content: "Search Directory";
    display: block;
    background-color: #2e597c;
    color: #F6D6A7;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: default;
}

.bmd-search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.bmd-search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.bmd-search-bar button {
    background-color: #e3a943;
    color: #333;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bmd-search-bar button:hover {
    background-color: #d19a3a;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Table area */
.bmd-table-container {
    position: relative;
    overflow-x: auto;
}

.bmd-dimmed {
    opacity: 0.5;
    pointer-events: none;
}

.bmd-table {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 0;
}

.bmd-table thead tr th {
    background-color: #2e597c;
    color: #F6D6A7;
    font-family: 'Poppins', sans-serif;
    padding: 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.bmd-table thead tr th:first-child {
    border-radius: 20px 0 0 20px;
}

.bmd-table thead tr th:last-child {
    border-radius: 0 20px 20px 0;
}

.bmd-table tbody tr {
    background-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.bmd-table tbody tr:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.bmd-table tbody tr:nth-child(odd) {
    background-color: #f3f6fa;
}

.bmd-table tbody tr td {
    padding: 15px 20px;
    /*text-align: center;*/
    vertical-align: middle;
    border: none;
    color: #666;
    transition: all 0.3s ease;
}

.bmd-table tbody tr td:first-child {
    border-radius: 20px 0 0 20px;
}

.bmd-table tbody tr td:last-child {
    border-radius: 0 20px 20px 0;
}

.bmd-view-btn {
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 24px;
    border-radius: 30px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bmd-view-btn:hover {
    transform: translateY(-2px);
    background-color: #fdfdfd;
}

/* Pagination */
.bmd-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.bmd-pagination a,
.bmd-pagination span {
    color: #333;
    text-decoration: none;
    padding: 8px 14px;
    background: #fff;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.bmd-pagination a:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border-color: #ccc;
}

.bmd-pagination .current {
    font-weight: bold;
    color: #fff;
    background: #2e597c;
    border-color: #2e597c;
    box-shadow: 0 4px 8px rgba(20, 50, 80, 0.2);
}

/* Loader */
.bmd-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.bmd-loader .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2e597c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: bmd-spin 1s linear infinite;
}

@keyframes bmd-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal Styling */
.bmd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bmd-modal-content {
    background-color: #fdfdfd;
    border-radius: 20px;
    padding: 35px;
    max-width: 650px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.bmd-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: black;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid white;
}

.bmd-modal-body {
    display: flex;
    gap: 35px;
    align-items: center;
}

.bmd-modal-left {
    flex: 0 0 170px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bmd-modal-left img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.bmd-modal-right {
    flex: 1;
}

.bmd-modal-right h2 {
    margin-top: 0;
    color: #2e597c;
    font-size: 32px;
    margin-bottom: 25px;
    font-family: inherit;
    font-weight: 700;
}

.bmd-modal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.bmd-modal-table tr {
    background: #fff;
}

.bmd-modal-table tr:nth-child(even) {
    background: #fafafa;
}

.bmd-modal-table td {
    padding: 16px 20px;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #eaeaea;
}

.bmd-modal-table tr:last-child td {
    border-bottom: none;
}

.bmd-modal-table td:first-child {
    font-weight: 600;
    color: #222;
    background: #f7f9fb;
    width: 35%;
    border-right: 1px solid #eaeaea;
}

@media (max-width: 600px) {
    .bmd-search-bar {
        flex-direction: column;
    }

    .bmd-modal-body {
        flex-direction: column;
    }

    .bmd-modal-left {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}