* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

/* Top Logo Section */
.top-logo-section {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo-container {
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

/* Navigation Menu */
.navigation {
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #212529;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #dee2e6;
}

.search-icon {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
}

button#mobileMenuClose {
    display: none;
}

/* Main Content Area */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-title {
    font-size: 36px;
    font-weight: 400;
    color: #212529;
    text-align: center;
    font-family: 'Georgia', serif;
    margin-bottom: 20px;
}

/* Form Card */
.form-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 30px;
}

.form-title {
    font-size: 24px;
    color: #212529;
    margin-bottom: 20px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

select,
input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-family: 'Noto Sans Bengali', Arial, sans-serif;
    appearance: none;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

select:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

input[type="text"]::placeholder {
    color: #adb5bd;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #212529;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #000;
}

/* Divider */
.divider {
    height: 1px;
    background: #dee2e6;
    margin: 30px 0;
}

/* Link Section */
.link-section {
    text-align: center;
    margin-top: 30px;
}

.link-section a {
    color: #212529;
    text-decoration: underline;
    font-size: 16px;
}

.link-section a:hover {
    color: #007bff;
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-header {
    background: #e9ecef;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.sidebar-content {
    padding: 7px;
}

/* Agent Item */
.agent-item {
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 15px;
    border-radius: 4px;
}

.agent-item:last-child {
    margin-bottom: 0;
}

.agent-name {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.agent-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.platform-tag {
    font-size: 14px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.platform-tag:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
}

.platform-tag.velki {
    background: #d4edda;
    color: #155724;
}

.platform-tag.velki:hover {
    background: #c3e6cb;
}

/* .platform-tag.xbet,
.platform-tag.9xbet {
    background: #d1ecf1;
    color: #0c5460;
}

.platform-tag.xbet:hover,
.platform-tag.9xbet:hover {
    background: #bee5eb;
} */

.platform-tag.baaji,
.platform-tag.baajiwala,
.platform-tag.baaji365 {
    background: #fff3cd;
    color: #856404;
}

.platform-tag.baaji:hover,
.platform-tag.baajiwala:hover,
.platform-tag.baaji365:hover {
    background: #ffeeba;
}

.check-icon {
    color: #28a745;
    font-weight: bold;
}

.agent-phone {
    font-size: 13px;
    font-weight: 700;
    color: #212529;
}

/* Table Styles */
.table-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.table-header {
    background: #e9ecef;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.agent-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.agent-table thead th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.agent-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 13px;
    color: #212529;
    font-weight: bold;
    word-break: break-word;
}

.agent-table tbody tr:last-child td {
    border-bottom: none;
}

.agent-table tbody tr:hover {
    background: #f8f9fa;
}

.platform-tag-small {
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 3px;
}

.action-btn {
    padding: 6px 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.action-btn:hover {
    background: #c82333;
}

/* Agent-table card layout on small screens */
@media (max-width: 600px) {
    .table-container {
        overflow-x: unset;
    }

    .agent-table {
        min-width: unset;
        width: 100%;
    }

    .agent-table thead {
        display: none;
    }

    .agent-table tbody tr {
        display: block;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 6px 10px;
        background: white;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    }

    .agent-table tbody tr:hover {
        background: #f8f9fa;
    }

    .agent-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 9px 4px;
        border-bottom: 1px dashed #e9ecef;
        font-size: 13px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .agent-table tbody td:last-child {
        border-bottom: none;
    }

    .agent-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #495057;
        font-size: 11px;
        text-transform: uppercase;
        min-width: 80px;
        flex-shrink: 0;
    }

    /* customer-service table special: keep normal on small too via scroll */
    .customer-service-table {
        display: table;
        min-width: 340px;
    }

    .customer-service-table thead {
        display: table-header-group;
    }

    .customer-service-table tbody tr {
        display: table-row;
        border: none;
        border-radius: 0;
        margin-bottom: 0;
        padding: 0;
        box-shadow: none;
    }

    .customer-service-table tbody td {
        display: table-cell;
        border-bottom: 1px solid #dee2e6;
        padding: 10px 8px;
    }

    .customer-service-table tbody td::before {
        display: none;
    }
}

/* Customer Service Table */
.customer-service-table td {
    text-align: center;
    vertical-align: middle;
}

.cs-number {
    font-weight: 700;
    width: 50px;
}

.cs-name {
    font-weight: 600;
    text-align: left;
}

.cs-whatsapp {
    width: 60px;
}

.whatsapp-btn {
    display: inline-block;
    transition: transform 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.cs-phone {
    font-weight: 700;
    color: #0c5460;
}

/* Search Result Page */
.result-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 40px;
    margin-top: 20px;
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table td {
    padding: 15px;
    border: 1px solid #dee2e6;
    font-size: 16px;
}

.result-table td:first-child {
    background: #f8f9fa;
    font-weight: 700;
    width: 40%;
    text-align: left;
}

.result-table td:last-child {
    text-align: left;
}

@media (max-width: 500px) {

    .result-table,
    .result-table tbody,
    .result-table tr,
    .result-table td {
        display: block;
        width: 100%;
    }

    .result-table tr {
        margin-bottom: 12px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        overflow: hidden;
    }

    .result-table td:first-child {
        width: 100%;
        background: #e9ecef;
        padding: 10px 15px;
        font-size: 13px;
        border-bottom: none;
        border-radius: 0;
    }

    .result-table td:last-child {
        padding: 12px 15px;
        font-size: 14px;
        border-top: none;
    }
}

.result-platform-link {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    text-decoration: underline;
    color: #007bff;
}

.result-platform-link:hover {
    color: #0056b3;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

.not-found {
    text-align: center;
    padding: 40px;
}

.not-found-title {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 20px;
}

.not-found-message {
    font-size: 16px;
    color: #212529;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-link {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.contact-link:hover {
    background: #0056b3;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-text {
    font-size: 13px;
    color: #6c757d;
}

/* Chat Icon */
.chat-icon a {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    line-height: 48px;
    background: #031f4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
}


.chat-icon img {
    width: 24px;
    height: 24px;
}

/* Search Popup Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.search-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-popup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-close-btn:hover {
    color: #212529;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 16px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-family: 'Noto Sans Bengali', Arial, sans-serif;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-submit-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s;
}


/* Responsive */
@media (max-width: 980px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }

    button#mobileMenuClose {
        display: block !important;
    }

    .nav-menu a {
        padding: 12px 15px;
        font-size: 13px;
    }

    .page-title {
        font-size: 28px;
    }

    .form-card {
        padding: 20px;
    }

    .result-container {
        padding: 20px;
    }

    .result-table td {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        max-width: 100%;
        padding: 10px;
    }

    .nav-menu a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .page-title {
        font-size: 24px;
    }

    .main-content {
        padding: 0 15px;
        margin: 20px auto;
    }

    .result-title {
        font-size: 18px;
    }

    .result-table td:first-child {
        width: 100%;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #212529;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #212529;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        z-index: 1000;
        overflow-y: auto;
        padding: 80px 0 20px 0;
    }

    .nav-menu.mobile-active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }

    .nav-menu a {
        padding: 20px;
        font-size: 18px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 36px;
        background: none;
        border: none;
        cursor: pointer;
        color: #212529;
    }

    .search-icon {
        font-size: 20px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
    }

    .right-sidebar {
        order: 2;
    }

    .left-column {
        order: 1;
    }
}