/**
 * All Profiles Component Styles
 */

.custom-filter-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    width: 100% !important;
    min-height: 28px !important;
}

.custom-filter-row label {
    margin-bottom: 0 !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    flex-grow: 1 !important;
    color: #334155 !important;
    /* Unified Slate Color */
}

.custom-filter-row .text-muted {
    color: #64748b !important;
}

.custom-filter-row .form-check-input {
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 1rem !important;
    height: 1rem !important;
    align-self: center !important;
}

/* Cinematic Plus-Minus Toggle Animation */
.plus-minus-toggle {
    cursor: pointer !important;
    position: relative !important;
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
    margin-right: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.plus-minus-toggle::before,
.plus-minus-toggle::after {
    content: "" !important;
    position: absolute !important;
    background-color: #334155 !important;
    /* Visible Slate Color */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 1px !important;
}

/* Horizontal bar (The Minus) */
.plus-minus-toggle::before {
    width: 12px !important;
    height: 2px !important;
}

/* Vertical bar (Disappears for Minus) */
.plus-minus-toggle::after {
    width: 2px !important;
    height: 12px !important;
}

.plus-minus-toggle.active::after {
    transform: rotate(90deg) !important;
    opacity: 0 !important;
    /* Elegant fade for vertical bar */
}

.plus-minus-toggle:hover::before,
.plus-minus-toggle:hover::after {
    background-color: #2a6f7a !important;
}

/* Ensure Plus/Minus Toggle Logic stays clean */
.city-collapse-container {
    display: none;
    padding-left: 10px;
    border-left: 1px solid #f1f5f9;
    margin-left: 8px;
    margin-top: 2px;
}

.city-collapse-container.show {
    display: block;
}

/* Header & Sorting */
.profile-page-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.sort-wrapper {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-wrapper select {
    padding-right: 40px !important;
    /* min-width: 160px !important; */
    background-position: right 12px center !important;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.base-text-2 {
    width: 110px;
    flex-shrink: 0;
    font-size: 12px;
}

.base-text {
    font-size: 12px;
}

.sort-text {
    font-size: 0.875rem;
    color: #64748b;
}

/* Profile Card Customizations */
.business-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    padding-top: 0px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 6px;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0 !important;
}

.card-top-left-indicators {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.card-top-right-indicators {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Professional Profile Card Overrides */
.card-description-text {
    line-height: 1.6;
    font-size: 0.875rem;
}

.power-highlight-badge {
    font-size: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px !important;
}

.authority-badge-success {
    font-size: 10px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 6px !important;
}

.sidebar-scroll-container {
    max-height: 400px;
    overflow-y: auto;
}

.profile-info-mini .profile-name {
    max-width: 100%;
}

/* GLOBAL DASHBOARD-WEBSITE UI SYNC */
.website-profile-wrapper .section-edit-link,
.website-profile-wrapper .visibility-toggle,
.website-profile-wrapper .photo-controls,
.website-profile-wrapper .header-action-btns,
.website-profile-wrapper .mini-add-btn {
    display: none !important;
}

.website-profile-wrapper .profile-section-card {
    border: 1px solid #edf2f7 !important;
    border-radius: 6px !important;
}

.profile-thumb-mini img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.2px;
}

.profile-bookmark-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e2e8f0;
    /* Faded/Light color */
}

.profile-bookmark-toggle.active i {
    color: #9eb86e;
}

.premium-badge-mini {
    background: #fffdf5;
    color: #d97706;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fffbeb;
    /* Faded border */
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.premium-badge-mini i {
    color: #fbbf24;
    margin-right: 3px;
}

.online-indicator-dot {
    animation: pulse-blink 1.5s infinite;
}

@keyframes pulse-blink {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vt-logo-badge {
    background: #fff;
    border: 1px solid #f1f5f9;
    padding: 2px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.business-card:hover .vt-logo-badge {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.profile-logo-mini {
    height: 14px;
    width: auto;
    opacity: 0.8;
}

.profile-meta-mini i {
    width: 16px;
    text-align: center;
    opacity: 0.5;
    /* Faded icons as requested */
}

.profile-meta-mini .fa-industry {
    color: #94a3b8;
}

.profile-meta-mini .fa-map-marker-alt {
    color: #94a3b8;
}

.breadcrumb-lite {
    font-size: 13px;
    margin-bottom: 25px;
}

.breadcrumb-lite a {
    color: #2a6f7a;
    text-decoration: none;
}

/* Force hide dashboard-only controls on website detail view */
.website-profile-wrapper .header-action-btns,
.website-profile-wrapper .photo-controls,
.website-profile-wrapper .section-edit-link,
.website-profile-wrapper .visibility-toggle,
.website-profile-wrapper .btn-premium-edit,
.website-profile-wrapper .mini-add-btn {
    display: none !important;
}

.website-profile-wrapper .profile-info-bar {
    padding: 0 40px 15px !important;
}

.website-profile-wrapper .contact-details-bar {
    padding: 12px 30px !important;
}

.website-profile-wrapper .profile-dashboard-wrapper {
    margin: 0;
}

/* Mobile Filter Button (List View) */
.mobile-filter-btn button {
    position: fixed;
    bottom: 0px;
    right: 40vh;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-logo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    background: #fff;
}

/* Online Indicator Dot (Inline to External) */
.online-indicator-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: pulse-blink 1.5s infinite;
}

.verified-badge-premium {
    color: #0ea5e9;
    font-size: 14px;
    filter: drop-shadow(0 0 2px rgba(14, 165, 233, 0.1));
}

.profile-info-mini .text-primary {
    font-size: 11px;
    font-weight: 600;
    /* Subtle weight, not heavy bold */
    letter-spacing: 0.5px;
    opacity: 0.9;
}

@media (max-width:1440px) {
    .base-text {
        font-size: 9px;
    }

    .base-text-2 {
        width: 65px;
        flex-shrink: 0;
        font-size: 9px;
    }

}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        width: 280px;
        background: #fff;
        z-index: 1050;
        padding: 20px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .mobile-filter-btn button {
        position: fixed;
        bottom: 0px;
        right: 15vh;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    body.filter-active .filter-overlay {
        display: block;
    }
}

/* Website Sidebar Listing Cards - Premium UI */
.website-listing-card {
    background: #fff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    cursor: pointer !important;
    margin-bottom: 20px !important;
}

.website-listing-card:hover {
    transform: translateY(-5px) !important;
    border-color: #2a6f7a !important;
    box-shadow: 0 12px 25px rgba(42, 111, 122, 0.12) !important;
}

.website-listing-card .sidebar-type-icon {
    width: 48px !important;
    height: 48px !important;
    background: #f0f7f8 !important;
    color: #2a6f7a !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}

.website-listing-card:hover .sidebar-type-icon {
    background: #2a6f7a !important;
    color: #fff !important;
    transform: rotate(-10deg) scale(1.1) !important;
}

.website-listing-card .sidebar-card-label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
}

.website-listing-card .sidebar-card-manage {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 800 !important;
    margin-top: 4px !important;
    display: inline-block !important;
}

.website-listing-card .stat-group-row {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px dashed #e2e8f0 !important;
}

.website-listing-card .stat-num.active {
    font-size: 2rem !important;
    font-weight: 950 !important;
    color: #2a6f7a !important;
    line-height: 1 !important;
}

.website-listing-card .stat-tag {
    font-size: 10px !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin-top: 8px !important;
}

/* Read More / Line Clamp Utility */
.summary-item-text.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px !important;
}

.read-more-btn {
    display: inline-block;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #2a6f7a !important;
    text-decoration: underline !important;
}

.profile-logo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    background: #fff;
}

@media (max-width: 768px) {
    .profile-logo {
        width: 140px;
        height: 140px;
        object-fit: cover;
        background: #fff;
    }
}

@media (max-width: 399px) {

    .mobile-filter-btn button {
        position: fixed;
        bottom: 0;
        right: 78px;
    }


}