/* ========================================
   BROKER LEAD SYSTEM - GLOBAL STYLES
   ======================================== */

/* ========================================
   1. BROKER SIGNUP FORM
   ======================================== */

/* Form Container */
.broker-forms {
    margin: 40px auto 60px !important;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Section Headers */
.broker-forms h3 {
    color: #3a868f;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.broker-forms h3:first-of-type {
    margin-top: 0;
}

/* Form Labels */
.broker-forms label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
}

/* Input Fields */
.broker-forms input, .broker-forms textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background: #f7fafc !important;
}

.broker-forms input:focus {
    outline: none;
    border-color: #3a868f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Password Toggle Container */
.broker-forms .password-toggle-container {
    position: relative;
    margin-bottom: 20px;
}

.broker-forms .password-toggle-container input {
    padding-right: 45px !important;
    margin-bottom: 0 !important;
}

.broker-forms .password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #718096;
    font-size: 20px;
    transition: color 0.2s ease;
}

.broker-forms .password-toggle-icon:hover {
    color: #3a868f;
}

/* File Upload Styling */
.broker-forms input[type="file"] {
    padding: 10px;
    background: #ffffff;
    cursor: pointer;
}

.broker-forms input[type="file"]::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    border: none;
    border-radius: 6px;
    background: #3a868f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.broker-forms input[type="file"]::file-selector-button:hover {
    background: #3a868f;
}

/* Horizontal Rule */
.broker-forms hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0;
}

/* Submit Button */
.broker-forms input[type="submit"] {
    width: 100% !important;
    padding: 14px 24px !important;
    margin-top: 10px !important;
    background:#3a868f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3) !important;
}

.broker-forms input[type="submit"]:hover {
    background: #3a868f;
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
    transform: translateY(-2px);
}

.broker-forms input[type="submit"]:active {
    transform: translateY(0);
}

/* Error Messages */
.broker-forms .error-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    border-radius: 6px;
    color: #c53030;
    font-size: 14px;
}

/* Success Messages */
.broker-forms .success-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #f0fff4;
    border-left: 4px solid #68d391;
    border-radius: 6px;
    color: #2f855a;
    font-size: 14px;
}

/* Required Field Indicator */
.broker-forms label::after {
    content: ' *';
    color: #fc8181;
}




/* ========================================
   3. BROKER DASHBOARD
   ======================================== */
   
 .dashboard-section .broker-forms {
    margin: 0px !important;
    padding: 0px !important;
    background: none !important;
    box-shadow: none !important;
}

/* Dashboard Wrapper */
.broker-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f7fafc;
}

/* Header */
.broker-dashboard-header {
    background: #ffffff;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.broker-dashboard-header h1 {
    color: #3a868f;
    margin: 0;
    font-size: 24px;
}

/* Sidebar */
.broker-sidebar {
    width: 280px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.broker-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.broker-sidebar-menu li {
    margin: 5px 0;
}

.broker-sidebar-menu a,
.broker-sidebar-menu button {
    display: block;
    padding: 15px 25px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.broker-sidebar-menu a:hover,
.broker-sidebar-menu button:hover {
    background: #f0f9fa;
    color: #3a868f;
    border-left: 4px solid #3a868f;
    padding-left: 21px;
}

.broker-sidebar-menu a.active,
.broker-sidebar-menu button.active {
    background: #f0f9fa;
    color: #3a868f;
    border-left: 4px solid #3a868f;
    padding-left: 21px;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #3a868f;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(58, 134, 143, 0.3);
}

/* Main Content Area */
.broker-main-content {
    flex: 1;
    padding: 0px 30px;
    max-width: 100%;
}

/* Dashboard Sections */
.dashboard-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.dashboard-section h2 {
    color: #3a868f;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.dashboard-section h3 {
    color: #3a868f;
    margin: 25px 0 15px 0;
    font-size: 18px;
}

/* Profile Image */
.broker-profile-image {
    text-align: center;
    margin-bottom: 30px;
}

.broker-profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #3a868f;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(58, 134, 143, 0.2);
}

/* Lead Status Tabs */
.lead-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.lead-tabs a {
    padding: 10px 20px;
    background: #ffffff;
    color: #2d3748;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    white-space: nowrap;
}

.lead-tabs a:hover {
    background: #3a868f;
    color: #ffffff;
    border-color: #3a868f;
}

.lead-tabs a.active {
    background: #3a868f;
    color: #ffffff;
    border-color: #3a868f;
}

/* Lead Boxes */
.lead-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lead-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.lead-box:hover {
    border-color: #3a868f;
    box-shadow: 0 4px 12px rgba(58, 134, 143, 0.15);
    transform: translateY(-2px);
}

.lead-box strong {
    color: #3a868f;
    display: inline-block;
    min-width: 80px;
}

.lead-box br {
    margin-bottom: 8px;
}

.lead-box a {
    color: #3a868f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lead-box a:hover {
    color: #2d3748;
    text-decoration: underline;
}

/* Commission Table */
.dashboard-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dashboard-section table th,
.dashboard-section table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-section table th {
    background: #f7fafc;
    color: #3a868f;
    font-weight: 600;
}

.dashboard-section table tr:hover {
    background: #f7fafc;
}





/* ========================================
   4. ADMIN DASHBOARD
   ======================================== */

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-table thead {
    background: #3a868f;
    color: #ffffff;
}

.admin-table thead th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: #f7fafc;
}

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

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    background: #c6f6d5;
    color: #22543d;
}

.status-rejected {
    background: #fed7d7;
    color: #742a2a;
}

.status-pending {
    background: #feebc8;
    color: #7c2d12;
}

.status-progress {
    background: #bee3f8;
    color: #2c5282;
}

.status-completed {
    background: #d4f4dd;
    color: #1e4620;
}

.status-payment {
    background: #faf089;
    color: #744210;
}

/* Status Dropdown */
.status-dropdown {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-dropdown:focus {
    outline: none;
    border-color: #3a868f;
    box-shadow: 0 0 0 3px rgba(58, 134, 143, 0.1);
}

/* Admin Buttons */
.admin-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn-primary {
    background: #3a868f;
    color: #ffffff;
}

.admin-btn-primary:hover {
    background: #2d6b74;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(58, 134, 143, 0.3);
}



/* ========================================
   5. COMMON/SHARED STYLES
   ======================================== */

/* Password Toggle (All Forms) */
.password-toggle-container { 
    position: relative; 
    display: inline-block;
    width: 100%;
}

.password-toggle-container input { 
    padding-right: 40px !important; 
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    z-index: 10;
    font-size: 20px;
    color: #718096;
    transition: color 0.2s ease;
}

.password-toggle-icon:hover {
    color: #3a868f;
}


/* ========================================
   6. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1600px) {
    
}
@media (max-width: 1440px) {
		
}
@media (max-width: 1366px) {
	.lead-tabs a {
    font-size: 13px !important;
}	
}
@media (max-width: 1280px) {
    
}
@media (max-width: 1024px) {}
@media (max-width: 966px) {}
@media (max-width: 820px) {}
@media (max-width: 768px) {
        .broker-dashboard-wrapper {
        flex-direction: column;
    }

    .broker-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        width: 280px;
    }

    .broker-sidebar.open {
        left: 0;
    }

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

    .broker-main-content {
        padding: 80px 15px 20px;
    }

    .lead-list {
        grid-template-columns: 1fr;
    }

    .lead-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .dashboard-section {
        padding: 20px;
    }
    
        .admin-table {
        font-size: 12px;
    }
    
    .admin-table thead th,
    .admin-table tbody td {
        padding: 8px 6px;
    }
    
    .status-dropdown {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .admin-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
@media (max-width: 600px) {}
@media (max-width: 520px) {}
@media (max-width: 480px) {}
@media (max-width: 414px) {}
@media (max-width: 375px) {}
@media (max-width: 360px) {}
/* ========================================
   7. UTILITY CLASSES
   ======================================== */

/* Loading State */
.loading input[type="submit"] {
    background: #cbd5e0;
    cursor: not-allowed;
    pointer-events: none;
}

.loading input[type="submit"]::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.broker-buttons{
    padding: 11px 30px;
    border-radius: 100px !important;
    font-size: 16px;
    opacity: 1;
    background: #3a868f;
}

div#broker-buttons-box {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}


.broker-buttons span {
    color: white;
}
.noaccess-page {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.noaccess-page h2 {
    color: #3a868f;
}
.broker-dashboard-wrapper {
    margin-bottom: 60px !important;
}
/* Disable Sidebar in Edit Mode */
body.edit-mode .broker-sidebar {
    pointer-events: none;
    opacity: 0.5;
}

body.edit-mode .sidebar-link {
    cursor: not-allowed;
}

body.edit-mode .mobile-menu-toggle {
    pointer-events: none;
    opacity: 0.5;
}
#section-edit-lead a.broker-buttons {
    margin-top: 20px !important;
    display: block;
    width: fit-content;
}

/* Broker Status Messages */
.broker-status-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.broker-status-rejected {
    background: #fff5f5;
    border-color: #fc8181;
    color: #c53030;
      margin-top: 50px;
}

.broker-status-pending {
    background: #fffaf0;
    border-color: #f6ad55;
    color: #c05621;
    margin-top: 50px;
}

.broker-status-message p {
    margin: 0;
    font-size: 15px;
}

.broker-status-message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}