/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #25D366;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

body {
    font-family: 'Inter', 'SolaimanLipi', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ============================================
   HEADER BANNER
   ============================================ */
.main-header {
    background: #ffffff;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-image {
    width: 15%; 
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.main-nav {
    background: #f5f5f5;
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle i {
    font-size: 14px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--secondary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a, .nav-menu button {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 5px;
}

.nav-menu a:hover, 
.nav-menu button:hover {
    color: var(--secondary-color);
    background: rgba(231, 76, 60, 0.1);
}

/* Active menu state - matching the image */
.nav-menu a.active {
    color: var(--secondary-color);
    background: rgba(231, 76, 60, 0.15);
    font-weight: 600;
}

.search-toggle {
    font-size: 18px;
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.main-content {
    padding: 30px 0;
}

/* ============================================
   SEARCH SECTIONS - UPDATED FOR COMPACT DESIGN
   ============================================ */
.search-section,
.phone-search-section {
    background: white;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-family: 'SolaimanLipi', serif;
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--text-dark);
    text-align: center;
    font-weight: 600;
}

.section-title.center {
    text-align: center;
}

.search-form-container {
    max-width: 420px;
    margin: 0 auto;
}

.search-form-container.center {
    text-align: center;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.all-master-link {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.all-master-link a {
    color: #222;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    position: relative;
    animation: shake 3s ease-in-out infinite;
}

.all-master-link a::before,
.all-master-link a::after {
    content: "➤";
    font-size: 20px;
    color: var(--secondary-color);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.all-master-link a::after {
    content: "➤";
    transform: rotate(180deg);
    animation: arrowPulse 1.5s ease-in-out infinite 0.75s;
}

.all-master-link a:hover {
    color: var(--secondary-color);
    transform: scale(1.08);
    animation: shake 0.5s ease-in-out infinite;
}

.all-master-link a:hover::before,
.all-master-link a:hover::after {
    animation: arrowBounce 0.6s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

/* Shake animation off state */
.all-master-link a.shake-off {
    animation: none !important;
}

.all-master-link a.shake-off::before,
.all-master-link a.shake-off::after {
    animation: none !important;
}


/* ============================================
   AGENT TABLES
   ============================================ */
.agent-tables {
    margin-top: 30px;
}

.agent-table-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    overflow: hidden;
}

.table-title {
    background: var(--bg-light);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    margin: 0;
    text-align: center;
}

.agent-table {
    width: 100%;
    border-collapse: collapse;
}

.agent-table thead th {
    background: #f8f9fa;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
}

.agent-table tbody td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.agent-table tbody tr:hover {
    background: #f8f9fa;
}

.agent-table tbody tr:nth-child(odd) {
    background: rgba(230, 255, 223, 0.4);
}

.agent-table tbody tr:nth-child(odd):hover {
    background: rgba(230, 255, 223, 0.7);
}

/* Agent table links */
.agent-table a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: color 0.3s ease;
}

.agent-table a:hover {
    color: var(--secondary-color);
}

/* WhatsApp icons in table */
.agent-table .fab.fa-whatsapp {
    background: var(--accent-color);
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.agent-table .fab.fa-whatsapp:hover {
    transform: scale(1.1);
}

/* App badges */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.app-badge .check-icon {
    color: var(--accent-color);
    font-size: 14px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    overflow: hidden;
}

.widget-title {
    background: #c1c1c1;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.widget-content {
    padding: 20px;
}

/* Quick Agent Widget */
.quick-agent-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.quick-agent-item:last-child {
    border-bottom: none;
}

.quick-agent-id {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.quick-agent-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.quick-agent-apps span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
}

.quick-agent-apps .check-icon {
    color: var(--accent-color);
    font-size: 12px;
}

.quick-agent-phone {
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: underline;
    font-size: 14px;
}

/* Chat Widget */
.chat-image-container {
    position: relative;
    padding: 0;
}

.chat-image-container a {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-image-container a:hover {
    transform: scale(1.02);
}

.chat-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 8px 8px;
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

/* ============================================
   INFO SECTIONS
   ============================================ */
.info-section,
.clean-platform,
.offer-section,
.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.info-section h2,
.clean-platform h2,
.offer-section h2,
.contact-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.info-section p,
.clean-platform p,
.offer-section p,
.contact-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.clean-platform span,
.offer-section span {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-disclaimer,
.footer-copyright {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-row {
    animation: fadeIn 0.5s ease-in-out;
    background-color: #fff9a8 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .nav-menu {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .header-image {
        width: 40%;
    }
    
    /* Remove background from main-nav on mobile */
    .main-nav {
        padding: 0;
        background: transparent;
        border-bottom: none;
    }
    
    .main-nav .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Show mobile menu toggle button with full width bg */
    .mobile-menu-toggle {
        display: flex;
        background: var(--primary-color);
        width: 100%;
    }
    
    /* Hide menu by default on mobile */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        background: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-width: 100%;
        margin: 0;
        gap: 0;
    }
    
    /* Show menu when active */
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a, .nav-menu button {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        border-radius: 0;
        font-size: 13px;
    }
    
    .nav-menu a:hover, 
    .nav-menu button:hover {
        background: var(--bg-light);
    }
    
    .nav-menu a.active {
        background: rgba(231, 76, 60, 0.15);
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .search-section,
    .phone-search-section {
        padding: 18px 15px;
    }
    
    .search-form-container {
        max-width: 100%;
    }
    
    .floating-chat-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .header-image {
        width: 60%;
    }
    
    .agent-table {
        font-size: 12px;
    }
    
    .agent-table thead th,
    .agent-table tbody td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .search-section,
    .phone-search-section {
        padding: 15px 12px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 14px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-control {
        padding: 11px 11px;
        font-size: 13px;
    }
    
    .btn-submit {
        padding: 9px;
        font-size: 14px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }