/* Dashboard Styles */
/* ========================================== */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body.dashboard-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

#site-header {
    display: none;
}

/* Dashboard Layout */
.dashboard-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-content-wrapper {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 80px);
}

.dashboard-main-content {
    flex: 1;
    background-color: #f8f8f8;
    padding: 30px;
    overflow-y: scroll;
    height: 911px;
}

/* Custom Scrollbar for Dashboard */
.dashboard-main-content::-webkit-scrollbar {
    width: 8px;
}

.dashboard-main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dashboard-main-content::-webkit-scrollbar-thumb {
    background: #c5a771;
    border-radius: 4px;
}

.dashboard-main-content::-webkit-scrollbar-thumb:hover {
    background: #b8965f;
}

/* Header Left Section */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.mobile-menu-toggle.active {
    background: #c5a771;
    border-color: #c5a771;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}


.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
.dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 30px;
    height: 90px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: start;
}
.logo-icon img {
    width: 100%;
    max-width: 40%;
}
.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: 0.5px;
}

.search-section {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container input {
    padding: 8px 35px !important;
}

.search-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #C5A771;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 167, 113, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.user-profile-section {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.user-info:hover {
    background-color: #f5f5f5;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.dropdown-arrow {
    color: #666;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding: 30px 0;
    overflow-y: hidden;
    height: calc(100vh - 80px);
}

/* Custom Scrollbar for Sidebar */
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: #c5a771;
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: #b8965f;
}

.sidebar-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 10px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0 0px;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #f5f5f5;
    color: #333;
}

.nav-item.active .nav-link {
    background-color: #C5A771;
    color: #ffffff;
}

/* Dropdown Navigation Styles */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.nav-item-dropdown .dropdown-toggle:hover {
    background-color: #f5f5f5;
    color: #333;
}

.nav-item-dropdown .dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-item-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    overflow: hidden;
}

.nav-item-dropdown.active .dropdown-menu {
    display: block;
    padding: unset;
}

.dropdown-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #c5a771;
}

.dropdown-link.active {
    background: #c5a771;
    color: #ffffff;
}

.dropdown-link.active .dropdown-icon {
    color: #ffffff;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    color: #666;
    transition: color 0.2s ease;
}

.dropdown-link:hover .dropdown-icon {
    color: #c5a771;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
    text-align: left;
}

/* Plan & Billing Section */
.plan-billing-section {
    margin: 0px 0px 0px;
    padding: 20px 20px;
    border-top: 1px solid #e0e0e0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.section-icon {
    width: 16px;
    height: 16px;
    color: #C5A771;
}

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

.plan-item {
    margin-bottom: 8px;
}

.plan-link {
    display: block;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.plan-link:hover {
    background-color: #f5f5f5;
    color: #333;
}

.plan-price {
    display: block;
    padding: 0px 16px;
    color: #C5A771;
    font-size: 13px;
    font-weight: 600;
}

/* Support Section */
.support-section {
    margin: 0px;
    padding-top: 0px;
    border-top: 1px solid #e0e0e0;
}

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

.support-item {
    margin-bottom: 4px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.support-link:hover {
    background-color: #f5f5f5;
    color: #333;
}

.logout-item .support-link {
    color: #e74c3c;
}

.logout-item .support-link:hover {
    background-color: #fdf2f2;
    color: #c0392b;
}

.support-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Dashboard Content */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #c5a771 !important;
    margin: 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: flex;
    gap: 24px;
    margin-bottom: 0px;
}

/* Dashboard Columns */
.dashboard-left-column {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-right-column {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.page-title {
    color: #C5A771 !important;
}
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dashboard-card.agent-profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-icon {
    width: 20px;
    height: 20px;
    color: #666;
}

.card-actions {
    display: flex;
    align-items: center;
}

.action-icon {
    width: 20px;
    height: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-icon:hover {
    background-color: #f5f5f5;
    color: #333;
}

.card-content {
    padding: 20px 24px 24px;
}
.dashboard-card.leads-overview-card .card-content {
    background: #fff;
    border-radius: 12px;
}

/* Agent Profile Card */
.agent-profile-card {
    grid-column: span 1;
}
.agent-profile-content {
    display: flex;
    gap: 20px;
    align-items: center;
}
.agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
}

.agent-details {
    text-align: center;
}

.agent-zip-codes {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
}

.smart-agent-section {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-direction: column;
}

.smart-agent-text {
    font-size: 14px;
    font-weight: 600;
    color: #C5A771;
}

.edit-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #C5A771;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-profile-btn:hover {
    background: #b8985f;
    transform: translateY(-1px);
}

/* Leads Overview Card */
.leads-overview-card {
    grid-column: span 1;
}

.leads-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stats-section {
    display: flex;
    gap: 22px;
}

.dashboard-card.leads-overview-card, .dashboard-card.agent-profile-card, .dashboard-card.transaction-history-card, .dashboard-card.notifications-card, .dashboard-card.map-view-card, .listings-carousel .listing-card, .listings-carousel-container {
    box-shadow: 10px 30px 70px 0px rgba(255, 91, 25, 0.1);
}
.dashboard-card.leads-overview-card {
    width: 50%;
}

.dashboard-card.transaction-history-card {
    width: 50%;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.stat-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.stat-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Transaction History Card */
.transaction-history-card {
    grid-column: span 1;
}

.transaction-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.transaction-date {
    color: #666;
}

.transaction-amount {
    color: #333;
    font-weight: 500;
}

/* Notifications Card */
.notifications-card {
    grid-column: span 1;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.notification-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.notification-time {
    font-size: 12px;
    color: #666;
    margin-left: 12px;
}

/* Map View Card */
.map-view-card {
    grid-column: span 1;
}

.map-container {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Listings Section */
.listings-section {
    grid-column: span 2;
    position: relative;
}


.listing-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-2px);
}

.listing-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-details {
    padding: 16px;
}

.listing-title {
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.listing-price {
    font-size: 18px;
    font-weight: 700;
    color: #C5A771;
    margin: 0 0 8px 0;
}
.property-features {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.property-features .feature svg {
    width: 20px;
}

.property-features span.feature {
    width: 39%;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.listing-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.location-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Featured Listing Card */
.featured-listing-content {
    display: flex;
    gap: 40px;
}
.featured-listing-card {
    grid-column: span 2;
}
.featured-listing-gallery {
    width: 50%;
}

.featured-listing-details {
    width: 50%;
    position: relative;
}
.featured-listing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-direction: column;
}

.featured-price {
    font-size: 24px;
    font-weight: 700;
    color: #C5A771;
}

.featured-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.wishlist-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
}

.wishlist-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 91, 25, 0.3));
}

.wishlist-icon svg {
    width: 100%;
    height: 100%;
}

.featured-listing-gallery {
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-images {
    display: flex;
    gap: 8px;
}

/* Featured listing thumbnail carousel */
.thumbnail-carousel-container {
    position: relative;
}

.thumbnail-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.thumbnail-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.thumbnail-nav-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.thumbnail-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    padding: 0px 10px;
}

.thumbnail-nav-btn:hover {
    background: #f5f5f5;
    border-color: #c5a771;
    color: #c5a771;
}

.thumbnail {
    width: 111px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex: 0 0 111px;
}

.thumbnail:hover {
    opacity: 0.8;
}
.overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.property-overview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #666;
    width: 45%;
}

.overview-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #C5A771;

}

/* Location Detection Button */
.btn-outline-small {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.btn-outline-small:hover {
    background: #D4AF37;
    color: white;
}

/* ZIP Code Placeholder */
.zip-placeholder {
    color: #999;
    font-style: italic;
}

/* Required Field Indicator */
.form-group label[for="zip_codes"]::after {
    content: " *";
    color: #c33;
}

/* SweetAlert2 Custom Styling */
.swal2-popup-custom {
    border-radius: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.swal2-confirm-custom {
    background-color: #D4AF37 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm-custom:hover {
    background-color: #B8860B !important;
    transform: translateY(-1px) !important;
}

.swal2-cancel-custom {
    background-color: #6c757d !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel-custom:hover {
    background-color: #5a6268 !important;
    transform: translateY(-1px) !important;
}

/* Photo Upload Styling */
#photo-upload {
    display: none;
}

.change-avatar-btn {
    background: #D4AF37;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.change-avatar-btn:hover {
    background: #B8860B;
    transform: translateY(-1px);
}

.profile-avatar {
    text-align: center;
}

.profile-avatar .avatar-img {
    border-radius: 50%;
    border: 3px solid #D4AF37;
    transition: all 0.3s ease;
}

.profile-avatar .avatar-img:hover {
    transform: scale(1.05);
}

/* Password Toggle Icons */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-input-wrapper .password-toggle:hover {
    color: #D4AF37;
}

.password-input-wrapper .password-toggle svg {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .listings-section,
    .featured-listing-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 40%;
        position: fixed;
        top: 69px;
        left: -100%;
        height: calc(100vh - 80px);
        z-index: 1000;
        transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .dashboard-sidebar.sidebar-open {
        left: 0;
    }
    
    .dashboard-main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
    }
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active {
    opacity: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .dashboard-header {
        padding: 0 20px;
        height: 70px;
    }

    .header-left {
        gap: 15px;
    }

    .header-right {
        gap: 10px;
    }

    .logo-icon img {
        height: 60px;
    }
    .logo-icon img {
        width: 100%;
        max-width: 100%;
    }
    .dashboard-main-content {
        padding: 20px;
    }
    
    .dashboard-grid {
        flex-wrap: wrap;
    }
    .dashboard-left-column {
        width: 100%;
    }
    .dashboard-right-column {
        width: 100%;
    }
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .property-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .search-section {
        margin: 0 20px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .dashboard-main-content {
        padding: 16px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .card-header {
        padding: 16px 20px 12px;
    }
    
    .card-content {
        padding: 16px 20px 20px;
    }
    
    .property-overview {
        grid-template-columns: 1fr;
    }
}

/* ========================================== */
/* Template Parts Styles */
/* ========================================== */

/* Analytics Page Styles */
.analytics-page-content {
    max-width: 100%;
}

.analytics-page-content .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.analytics-page-content .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.analytics-page-content .page-actions {
    display: flex;
    gap: 12px;
}

.analytics-page-content .btn-outline,
.analytics-page-content .btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.analytics-page-content .btn-outline {
    background: #ffffff;
    color: #666;
    border: 1px solid #e0e0e0;
}

.analytics-page-content .btn-outline:hover {
    background: #f5f5f5;
    color: #333;
}

.analytics-page-content .btn-primary {
    background: #C5A771;
    color: #ffffff;
}

.analytics-page-content .btn-primary:hover {
    background: #b8985f;
    transform: translateY(-1px);
}

.analytics-overview {
    margin-bottom: 30px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #C5A771;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.metric-change {
    font-size: 12px;
    font-weight: 500;
}

.metric-change.positive {
    color: #27ae60;
}

.metric-change.negative {
    color: #e74c3c;
}

.charts-section {
    margin-bottom: 30px;
}

.chart-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart-placeholder {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reports-section {
    margin-bottom: 30px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.report-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.report-card:hover {
    transform: translateY(-2px);
}

.report-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #C5A771;
}

.report-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.report-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.report-actions {
    display: flex;
    gap: 12px;
}

/* Leads Page Styles */
.leads-page-content {
    max-width: 100%;
}

.leads-page-content .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.leads-page-content .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.leads-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C5A771;
    flex-shrink: 0;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.leads-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #333;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 250px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.search-btn {
    padding: 10px 12px;
    background: #C5A771;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leads-table-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-actions {
    display: flex;
    gap: 12px;
}

.table-wrapper {
    overflow-x: auto;
}

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

.leads-table th,
.leads-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.leads-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.leads-table td {
    font-size: 14px;
    color: #333;
}

.lead-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.lead-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-info .name {
    font-weight: 500;
    color: #333;
}

.lead-info .location {
    font-size: 12px;
    color: #666;
}

.source-badge,
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.source-badge.website {
    background: #e3f2fd;
    color: #1976d2;
}

.source-badge.referral {
    background: #f3e5f5;
    color: #7b1fa2;
}

.source-badge.social {
    background: #e8f5e8;
    color: #388e3c;
}

.status-badge.new {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.contacted {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.converted {
    background: #e8f5e8;
    color: #388e3c;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

/* Listings Page Styles */
.listings-page-content {
    max-width: 100%;
}

.listings-page-content .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.listings-page-content .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.listings-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.listings-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.listings-grid-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 27px;
}

.listing-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge.featured {
    background: #C5A771;
    color: #ffffff;
}

.badge.status.active {
    background: #e8f5e8;
    color: #fff;
}

.badge.status.pending {
    background: #fff3e0;
    color: #f57c00;
}

.badge.status.sold {
    background: #e3f2fd;
    color: #fff;
}

.listing-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.spec {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.listing-actions {
    display: flex;
    gap: 8px;
}

.listing-actions .action-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.listing-actions .action-btn:hover {
    background: #f5f5f5;
}

/* Billing Page Styles */
.billings-page-content {
    max-width: 100%;
}

.billings-page-content .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.billings-page-content .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.billing-overview {
    margin-bottom: 30px;
}

.billing-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.plan-details {
    text-align: center;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #C5A771;
    margin-bottom: 0px;
}

.plan-status .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.plan-status .status-badge.active {
    background: #e8f5e8;
    color: #388e3c;
}

.billing-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.billing-item:last-child {
    border-bottom: none;
}

.billing-item .label {
    font-weight: 500;
    color: #333;
}

.billing-item .value {
    color: #666;
}

.payment-history {
    margin-bottom: 30px;
}

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

.billing-table th,
.billing-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.billing-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.status-badge.paid {
    background: #e8f5e8;
    color: #388e3c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-link {
    background: none;
    border: none;
    color: #C5A771;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.btn-link:hover {
    color: #b8985f;
}

.billing-settings {
    margin-bottom: 30px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.setting-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.payment-method,
.billing-address {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-type {
    font-weight: 600;
    color: #333;
}

.card-number {
    font-size: 14px;
    color: #666;
}

.card-expiry {
    font-size: 12px;
    color: #999;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-line {
    font-size: 14px;
    color: #333;
}

.auto-renewal,
.email-notifications {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 20px;
    position: relative;
    transition: background 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #C5A771;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.help-text {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.notification-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #C5A771;
    border-color: #C5A771;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.plan-management {
    margin-bottom: 30px;
}

.plan-options {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.current-plan {
    flex: 1;
}

.current-plan h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.plan-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.plan-card.current {
    border-color: #C5A771;
    background: #fffbf5;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.plan-header .plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.plan-header .plan-price {
    font-size: 20px;
    font-weight: 700;
    color: #C5A771;
    margin: 0;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.plan-features li {
    padding: 4px 0;
    font-size: 14px;
    color: #333;
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-danger {
    background: #e74c3c;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Services Page Styles */
.services-page-content {
    max-width: 100%;
}

.services-page-content .page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.services-page-content .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.services-page-content .page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.services-overview {
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: #f8f9fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #C5A771;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.service-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-status .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.service-status .status-badge.active {
    background: #e8f5e8;
    color: #388e3c;
}

.service-status .status-badge.inactive {
    background: #ffebee;
    color: #d32f2f;
}

.service-management {
    margin-bottom: 30px;
}

.service-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.control-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.toggle-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.service-stats {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.stat-progress {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #C5A771;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Profile Page Styles */
.profile-page-content {
    max-width: 100%;
}

.profile-page-content .page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-page-content .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.profile-page-content .page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.profile-info-card,
.agent-info-card,
.smart-agent-card,
.security-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.profile-avatar {
    position: relative;
    margin-bottom: 16px;
}

.profile-avatar .avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #C5A771;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-avatar-btn:hover {
    background: #b8985f;
}

.profile-form,
.agent-details-form,
.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #C5A771;
    box-shadow: 0 0 0 3px rgba(197, 167, 113, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
#listingForm .checkbox-group {
    display: flex;
    gap: 12px;
    align-items: center;
}
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.plan-status .plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.plan-status .plan-price {
    font-size: 20px;
    font-weight: 700;
    color: #C5A771;
    margin: 0;
}

.plan-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.plan-status-badge.active {
    background: #e8f5e8;
    color: #388e3c;
}

.plan-features h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 4px 0;
    font-size: 14px;
    color: #333;
}

.plan-actions {
    display: flex;
    gap: 12px;
}

.security-settings {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.password-section,
.two-factor-section {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.password-section:last-child,
.two-factor-section:last-child {
    border-bottom: none;
}

.password-section h4,
.two-factor-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.two-factor-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-text {
    font-size: 14px;
    color: #666;
}

/* Responsive Design for Template Parts */

@media (max-width: 1200px) {
    .metrics-grid,
    .reports-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        overflow-y: scroll;
    }
}
@media (max-width: 1024px) {
    .plan-price {
        font-size: 16px;
    }
    .dashboard-sidebar {
        width: 250px;
    }
    .dashboard-card.agent-profile-card {
        padding: 30px;
    }
    .avatar-img {
        object-fit: contain;
    }
    .agent-profile-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .agent-profile-content h3.agent-name {
        margin: 0px;
    }
    .stats-section {
        flex-direction: column;
    }
    .agent-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .dashboard-grid {
        flex-direction: column;
    }
    .dashboard-card.agent-profile-card .card-content {
        padding: 0px;
    }
    .agent-avatar, .agent-zip-codes {
        margin: 0px;
    }
    p.agent-zip-codes br {
        display: none;
    } 
    .smart-agent-section {
        align-items: center;
    }
    .dashboard-card.leads-overview-card, 
    .dashboard-card.transaction-history-card, 
    .dashboard-left-column, 
    .dashboard-right-column {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .analytics-page-content .page-header,
    .leads-page-content .page-header,
    .listings-page-content .page-header,
    .billings-page-content .page-header,
    .services-page-content .page-header,
    .profile-page-content .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .leads-filters,
    .listings-filters {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-group,
    .search-group {
        min-width: 100%;
    }
    
    .billing-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-options {
        flex-direction: column;
        gap: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    .stats-section, 
    .dashboard-right-column {
        flex-direction: row;
    }
    .dashboard-card.leads-overview-card,
    .dashboard-card.transaction-history-card,
    .dashboard-card.notifications-card,
    .dashboard-card.map-view-card {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .analytics-page-content .page-title,
    .leads-page-content .page-title,
    .listings-page-content .page-title,
    .billings-page-content .page-title,
    .services-page-content .page-title,
    .profile-page-content .page-title {
        font-size: 24px;
    }
    .dashboard-card.lead-replacement-card .card-header {
        flex-wrap: wrap;
    }
    .dashboard-content-wrapper .card-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .dashboard-grid {
        flex-wrap: wrap;
    }
    .dashboard-left-column {
        width: 100%;
    }
    .dashboard-right-column {
        width: 100%;
    }
    .metric-value {
        font-size: 24px;
    }
    
    .leads-table {
        font-size: 12px;
    }
    
    .leads-table th,
    .leads-table td {
        padding: 12px 8px;
    }
    .dashboard-card.agent-profile-card .card-content {
        padding: 0;
    }
    .dashboard-card.agent-profile-card .agent-avatar {
        margin: 0px;
        width: unset;
        height: unset;
    }
    .dashboard-card.agent-profile-card .agent-info {
        width: 100%;
        text-align: center;
    }
    .dashboard-card.agent-profile-card h3.agent-name {
        margin-bottom: 4px;
    }
    .stats-section, .featured-listing-content {
        flex-direction: column;
    }
    .dashboard-card.leads-overview-card, .dashboard-card.transaction-history-card, .featured-listing-gallery, .featured-listing-details {
        width: 100%;
    }
    .stat-icon {
        width: 38px;
        height: 38px;
    }
    .dashboard-sidebar {
        width: 60%;
        overflow-y: scroll;
    }
    .property-overview .overview-grid .overview-item {
        font-size: 14px;
    }
}

@media (max-width: 425px) {
    .dashboard-card.agent-profile-card {
        padding: 12px;
        flex-direction: column;
    }
    .avatar-img {
        width: 50%;
        height: 100%;
    }
    .listings-section {
        margin-bottom: 40px;
    }
    .listings-carousel .listing-card {
        flex: 0 0 calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        min-width: 220px;
    }
    .featured-listing-content {
        gap: 0;
    }
    .dashboard-right-column {
        flex-direction: column;
    }
    .dashboard-card.notifications-card, 
    .dashboard-card.map-view-card {
        width: 100%;
    }
}

/* Listings Carousel Styles */
.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    padding: 0px 10px;
}

.carousel-btn:hover {
    background: #f5f5f5;
    border-color: #c5a771;
    color: #c5a771;
}

.carousel-btn:active {
    transform: scale(0.95);
}

.listings-carousel-container {
    overflow: hidden;
    position: relative;
}

.listings-carousel {
    display: flex;
    transition: transform 0.3s ease;
    gap: 14px;
}


.listings-carousel .listing-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 270px;
    max-width: calc(33.333% - 14px);
}

/* Responsive carousel */
@media (max-width: 1200px) {
    .listings-carousel .listing-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .listings-carousel .listing-card {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
        min-width: 280px;
    }
    
    .carousel-controls {
        gap: 4px;
        position: absolute;
        bottom: -50px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
}

@media (max-width: 480px) {
    .listings-carousel .listing-card {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
        min-width: 250px;
    }
    
    .listings-carousel {
        justify-content: center;
        gap: 14px;
    }
}

/* Featured Listing Thumbnail Styles */
.thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
}

.thumbnail:hover {
    border-color: #c5a771;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(197, 167, 113, 0.3);
}

.featured-img {
    transition: opacity 0.3s ease;
}

/* Listing Upload Button */
.listings-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-listing-btn {
    background: #D4AF37;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.upload-listing-btn:hover {
    background: #B8941F;
    transform: translateY(-1px);
}

.upload-listing-btn svg {
    width: 16px;
    height: 16px;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    padding: 0px 10px;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.wishlist-btn svg {
    width: 16px;
    height: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.wishlist-btn.featured svg {
    color: #c5a771;
    fill: #fff;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 50%;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #C5A771;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Listing Form Styles */
.listing-form {
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Form group styles consolidated - using definitions from Profile Page Styles section */

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Button styles consolidated - using definitions from Profile Page Styles section */

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
}

/* Checkbox Styles for Parking Field */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    background-color: #fff;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #e91e63;
    border-color: #e91e63;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: #e91e63;
}

/* Empty Listings State Styling */
.empty-listings-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin: 20px 0;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.empty-listings-state:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.1);
}

.empty-listings-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out;
}

.empty-listings-icon {
    margin-bottom: 24px;
    color: #6c757d;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.empty-listings-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-listings-description {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-upload-listing {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-decoration: none;
}

.btn-upload-listing:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-upload-listing:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-upload-listing svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-upload-listing:hover svg {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .empty-listings-content {
        padding: 30px 20px;
    }
    
    .empty-listings-title {
        font-size: 24px;
    }
    
    .empty-listings-description {
        font-size: 14px;
    }
    
    .btn-upload-listing {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Lead Status Buttons */
.status-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.status-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.status-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.contacted-btn {
    background: #28a745;
}

.contacted-btn:hover {
    background: #218838;
}

.converted-btn {
    background: #ffc107;
    color: #333;
}

.converted-btn:hover {
    background: #e0a800;
}

/* No Leads Message */
.no-leads-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-leads-icon {
    color: #6c757d;
    margin-bottom: 20px;
}

.no-leads-message h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-leads-message p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Status Badge Updates - consolidated with Leads Page Styles section */

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Success Message for Actions */
.success-message {
    display: inline-flex;
    align-items: center;
    background: #d4edda;
    color: #155724;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.success-icon {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 6px;
    font-weight: bold;
}

.success-text {
    font-size: 11px;
    font-weight: 500;
}

/* Lead Replacement Form CSS */