﻿:root {
    --primary-green: #075e54;
    --accent-green: #25D366;
    --dark-text: #111b21;
    --muted-text: #667781;
    --wheat-bg: #f0f2f5;
}

.signin-page-wrapper {
    background: radial-gradient(circle at 50% 30%, #f7f9fa 0%, var(--wheat-bg) 100%) !important;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

#mesh-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.signin-bg-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

    .signin-bg-icons i {
        position: absolute;
        color: #075e54;
        opacity: 0.12 !important;
        font-size: 1.8rem;
    }

.bg-ic-1 {
    top: 6%;
    left: 8%;
    font-size: 2.2rem !important;
}

.bg-ic-2 {
    top: 12%;
    left: 28%;
}

.bg-ic-3 {
    top: 8%;
    left: 50%;
    font-size: 2.5rem !important;
}

.bg-ic-4 {
    top: 15%;
    left: 75%;
}

.bg-ic-5 {
    top: 6%;
    right: 8%;
    font-size: 2rem !important;
}

.bg-ic-6 {
    top: 38%;
    left: 4%;
    font-size: 2.4rem !important;
}

.bg-ic-7 {
    top: 30%;
    left: 22%;
}

.bg-ic-8 {
    top: 40%;
    right: 18%;
    font-size: 2.2rem !important;
}

.bg-ic-9 {
    top: 32%;
    right: 6%;
}

.bg-ic-10 {
    bottom: 15%;
    left: 10%;
    font-size: 2.5rem !important;
}

.bg-ic-11 {
    bottom: 25%;
    left: 30%;
}

.bg-ic-12 {
    bottom: 10%;
    left: 52%;
    font-size: 2rem !important;
}

.bg-ic-13 {
    bottom: 20%;
    right: 28%;
}

.bg-ic-14 {
    bottom: 12%;
    right: 8%;
    font-size: 2.3rem !important;
}

.whatsapp-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(7, 94, 84, 0.08), 0 6px 18px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    z-index: 10 !important;
    padding: 2.5rem 2rem 2rem 2rem !important;
}

.logo-rectangle-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .logo-rectangle-box img {
        height: 70px;
        width: auto;
        object-fit: contain;
    }

.card-title-text {
    color: var(--dark-text) !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem;
}

.card-sub-text {
    color: var(--muted-text) !important;
    font-size: 0.88rem !important;
    font-weight: 400;
    margin-bottom: 1.8rem;
}

.btn-google-login {
    background-color: #ffffff !important;
    border: 1px solid #e1e4e8 !important;
    color: #3c4043 !important;
    font-weight: 500 !important;
    padding: 12px 16px;
    border-radius: 12px !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

    .btn-google-login:hover {
        background-color: #f8f9fa !important;
        border-color: #cbd0d6 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transform: translateY(-1px);
    }

/*    footer*/
.card-footer-mini {
    font-size: 0.68rem !important;
    color: #94a3b8 !important;
    border-color: #f0f2f5 !important;
    line-height: 1.4;
}

    .card-footer-mini .dev-link {
        color: var(--primary-green) !important;
        font-weight: 400;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .card-footer-mini .dev-link:hover {
            color: var(--accent-green) !important;
            text-decoration: underline !important;
        }


/*start for the Import Google Contacts*/

.google-contacts-btn {
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .google-contacts-btn img {
        background: #fff;
        border-radius: 3px;
        vertical-align: middle;
    }

    .google-contacts-btn:hover {
        background: linear-gradient(90deg, #4285F4, #ea4335db, #FBBC05, #34A853);
        color: #fff;
        border-color: transparent;
    }

    .google-contacts-btn:active {
        background: linear-gradient(90deg, #4285F4, #ea4335db, #FBBC05, #34A853) !important;
        color: #fff !important;
        transform: scale(0.97);
        box-shadow: 0 0 10px rgba(66, 133, 244, 0.35);
    }

    .google-contacts-btn:focus-visible {
        outline: 2px solid #4285F4;
        outline-offset: 2px;
    }
/*end for the Import Google Contacts*/

/*start for chat assign to user*/
.assign-menu {
    min-width: 240px;
}

.assign-list {
    max-height: 240px;
    overflow-y: auto;
}

.assign-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .9rem;
    cursor: pointer;
}

    .assign-item .assign-name {
        font-size: .8125rem;
        line-height: 1.2;
    }

    .assign-item .assign-mail {
        font-size: .7rem;
        color: var(--vz-secondary-color,#878a99);
    }

    .assign-item .assign-check {
        margin-left: auto;
        color: var(--vz-success,#0ab39c);
        visibility: hidden;
    }

    .assign-item.is-selected .assign-check {
        visibility: visible;
    }

.assign-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
}

    .assign-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .assign-avatar.muted {
        background: transparent;
        border: 1px dashed #adb5bd;
        color: #878a99;
    }

.assign-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    border: 1px dashed #adb5bd;
    background: transparent;
}

    .assign-circle.assigned {
        border: 0;
    }

    .assign-circle:not(.assigned) {
        color: #878a99;
    }
/*end for chat assign to user*/

/*Dashboard start*/
/* befor WA login*/
.whatsapp-title {
    color: #111827;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.whatsapp-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.wave-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    background-color: #25D366;
    border-radius: 50%;
    opacity: 0.6;
    animation: waveAnimation 2s infinite ease-out;
    z-index: 1;
}

.wave-pulse-2 {
    animation-delay: 1s;
}

@keyframes waveAnimation {
    0% {
        width: 80px;
        height: 80px;
        opacity: 0.8;
    }

    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

/*end befor WA login*/

/* Dashboard Left Overview Cards */

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.dashboard-content-card {
    border: 1px solid #f1f3f5 !important;
}

    .dashboard-content-card .card-header {
        border-radius: 16px 16px 0 0;
    }

.chat-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.followup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    transition: background 0.2s ease;
}

    .followup-item:hover {
        background: #f8fafc;
    }

.template-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

.dashboard-chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.overview-see-detail {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-decoration: underline;
    margin-top: 5px;
    color: #6c757d;
}

    .overview-see-detail:hover {
        color: #172cd3;
    }


@media (max-width: 991px) {
    .dashboard-stat-card h4 {
        font-size: 23px;
    }
}

@media (max-width: 576px) {
    .dashboard-chart-container {
        height: 230px;
    }
}


/* Message Activity Chart */
.dashboard-chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.message-chart-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f3f5;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .chart-legend-item:hover {
        color: #212529;
    }

.legend-line {
    width: 20px;
    height: 3px;
    border-radius: 5px;
    display: inline-block;
}

.sent-line {
    background: #16a34a;
}

.received-line {
    background: #3b82f6;
}

.failed-line {
    background: #ef4444;
}

.read-line {
    background: #8b5cf6;
}
/*start folloups*/
.followup-list-container {
    max-height: 40vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ced4da transparent;
}

    .followup-list-container::-webkit-scrollbar {
        width: 5px;
    }

    .followup-list-container::-webkit-scrollbar-thumb {
        background: #ced4da;
        border-radius: 10px;
    }
/*end folloups*/

/* Dashboard Full Sections */
.dashboard-full-section {
    width: 100%;
    min-width: 0;
}

/* Overview Cards */
.dashboard-stat-row {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-stat-item {
    flex: 1 1 16.666%;
    min-width: 0;
}

/* Main Dashboard */
.dashboard-main-row {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-chat-section {
    flex: 0 0 40%;
    max-width: 40%;
    min-width: 0;
}

.dashboard-sidebar-section {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 0;
}

.dashboard-statistics-section {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 0;
}

@media (max-width: 1199px) {
    .dashboard-stat-item {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 991px) {
    .dashboard-chat-section,
    .dashboard-sidebar-section {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .dashboard-stat-item {
        flex: 0 0 50%;
    }
}

/*start Message Statistics Card */
.message-statistics-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.statistics-header-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #eee9ff;
    color: #7040e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.statistics-box {
    padding: 22px;
    min-height: 165px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    border-left: 6px solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .statistics-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    }

.statistics-box-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.statistics-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
}

.statistics-label {
    font-size: 18px;
    font-weight: 600;
}

.statistics-box h4 {
    font-size: 27px;
    font-weight: 700;
    margin: 20px 0 0 80px;
    position: relative;
    z-index: 1;
}

/* Sent */
.sent-stat {
    background: linear-gradient(135deg, #eafff2, #d6f9e4);
    border-left-color: #16c875;
}

    .sent-stat .statistics-icon {
        background: #d0f8df;
        color: #16c875;
    }

    .sent-stat .statistics-label {
        color: #12643b;
    }

/* Received */
.received-stat {
    background: linear-gradient(135deg, #eaf5ff, #d7ebff);
    border-left-color: #168df0;
}

    .received-stat .statistics-icon {
        background: #d1eaff;
        color: #168df0;
    }

    .received-stat .statistics-label {
        color: #164b7c;
    }

/* Delivered */
.delivered-stat {
    background: linear-gradient(135deg, #fff3e5, #ffe5cb);
    border-left-color: #ff891e;
}

    .delivered-stat .statistics-icon {
        background: #ffe2c4;
        color: #ff891e;
    }

    .delivered-stat .statistics-label {
        color: #754019;
    }

/* Read */
.read-stat {
    background: linear-gradient(135deg, #f2eaff, #e7d9ff);
    border-left-color: #7945ed;
}

    .read-stat .statistics-icon {
        background: #e2d3ff;
        color: #7945ed;
    }

    .read-stat .statistics-label {
        color: #49268a;
    }

/* Responsive */
@media (max-width: 991px) {
    .dashboard-chat-section,
    .dashboard-sidebar-section,
    .dashboard-statistics-section {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/*start Overview Cards - Message Statistics Similar Design */
.dashboard-stat-card {
    border-radius: 16px !important;
    overflow: hidden;
    border-left: 4px solid !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .dashboard-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    }

    .dashboard-stat-card .card-body {
        position: relative;
    }

    .dashboard-stat-card .stat-icon {
        border-radius: 50%;
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 21px;
    }


    .dashboard-stat-card .card-body {
        padding: 12px !important;
        padding-bottom: 1px !important;
    }

        .dashboard-stat-card .card-body small {
            margin-top: 8px !important;
        }

    .dashboard-stat-card .overview-see-detail {
        margin-top: 7px;
        line-height: 1;
    }


.dashboard-statistics-section .message-statistics-card {
    height: auto !important;
    border-radius: 16px;
}

    .dashboard-statistics-section .message-statistics-card .card-body {
        padding: 15px !important;
    }

/* Header */
.dashboard-statistics-section .statistics-header-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 20px;
    border-radius: 12px;
}

.dashboard-statistics-section .message-statistics-card h5 {
    font-size: 16px;
}

.dashboard-statistics-section .message-statistics-card p {
    font-size: 11px;
}

.dashboard-statistics-section .statistics-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    width: 100%;
}

.dashboard-statistics-section .statistics-box {
    min-width: 0;
    min-height: 84px;
    padding: 12px;
    border-radius: 12px;
    border-left-width: 4px;
}

.dashboard-statistics-section .statistics-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    font-size: 17px;
}

.dashboard-statistics-section .statistics-box-content {
    gap: 8px;
}

.dashboard-statistics-section .statistics-label {
    font-size: 13px;
}

.dashboard-statistics-section .statistics-box h4 {
    font-size: 21px;
    margin: 0px 0 0 43px;
}

@media (max-width: 576px) {
    .dashboard-statistics-section .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .dashboard-statistics-section .statistics-box {
        padding: 10px;
        min-height: 81px;
    }
}
/*start top bar*/
/* Customers - Green */
.overview-customers {
    border-left-color: #16c875 !important;
}

    .overview-customers .stat-icon {
        background: #d0f8df !important;
        color: #16c875 !important;
    }

/* Unread Chats - Blue */
.overview-unread {
    border-left-color: #168df0 !important;
}

    .overview-unread .stat-icon {
        background: #d1eaff !important;
        color: #168df0 !important;
    }

/* Follow-ups - Orange */
.overview-followups {
    border-left-color: #ff891e !important;
}

    .overview-followups .stat-icon {
        background: #ffe2c4 !important;
        color: #ff891e !important;
    }

/* Scheduled - Purple */
.overview-scheduled {
    border-left-color: #7945ed !important;
}

    .overview-scheduled .stat-icon {
        background: #e2d3ff !important;
        color: #7945ed !important;
    }

/* Templates - Teal */
.overview-templates {
    border-left-color: #0d9488 !important;
}

    .overview-templates .stat-icon {
        background: #c8efea !important;
        color: #0d9488 !important;
    }

/* Shared Users - Pink */
.overview-shared {
    border-left-color: #e64980 !important;
}

    .overview-shared .stat-icon {
        background: #ffd6e5 !important;
        color: #e64980 !important;
    }
/*end top bar*/
/*start segment/tag*/
.segment-tag-card {
    border-radius: 4px;
}

.segment-tag-section {
    border: 1px solid #edf0f2;
    border-radius: 12px;
    padding: 15px;
    height: 100%;
}

.segment-tag-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.segment-icon {
    background: #eaf5ff;
    color: #168df0;
}

.tag-icon {
    background: #eee9ff;
    color: #7040e8;
}

.segment-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.segment-tag-item,
.customer-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.segment-tag-item {
    background: #f1f7ff;
    color: #168df0;
}

.customer-tag {
    background: #f3efff;
    color: #7040e8;
}
/*end segment/tag*/

/* end dashboard design */
/*start call*/
.wa-call-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    width: 340px;
    max-width: calc(100vw - 24px);
}

    .wa-call-dock[hidden] {
        display: none;
    }

.wa-call-card {
    background: #111b21;
    color: #e9edef;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
}

.wa-call-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-call-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.wa-call-who {
    min-width: 0;
    flex: 1 1 auto;
}

.wa-call-name {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-call-number {
    font-size: 12px;
    color: #8696a0;
}

.wa-call-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: #2a3942;
    color: #e9edef;
    white-space: nowrap;
}

.wa-call-card[data-status="Calling"] .wa-call-badge, .wa-call-card[data-status="Ringing"] .wa-call-badge {
    background: #8a6d00;
}

.wa-call-card[data-status="Incoming"] .wa-call-badge {
    background: #0a6c4a;
    animation: waCallPulse 1.2s infinite;
}

.wa-call-card[data-status="Connected"] .wa-call-badge {
    background: #0a7a3c;
}

.wa-call-card[data-status="Rejected"] .wa-call-badge, .wa-call-card[data-status="Missed"] .wa-call-badge, .wa-call-card[data-status="Failed"] .wa-call-badge {
    background: #9c2b2b;
}

.wa-call-card[data-status="Ended"] .wa-call-badge {
    background: #44525b;
}

.wa-call-timer {
    text-align: center;
    font-size: 30px;
    font-variant-numeric: tabular-nums;
    margin: 14px 0 2px;
    letter-spacing: 1px;
}

.wa-call-msg {
    text-align: center;
    font-size: 12.5px;
    color: #aebac1;
    min-height: 18px;
    margin-bottom: 10px;
}

.wa-call-queue {
    text-align: center;
    font-size: 12px;
    color: #f0b429;
    margin-bottom: 8px;
}

.wa-call-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.wa-call-btn {
    border: 0;
    background: transparent;
    color: #e9edef;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    min-width: 64px;
}

    .wa-call-btn i {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        background: #2a3942;
        transition: transform .12s, background .12s;
    }

    .wa-call-btn:hover i {
        transform: scale(1.06);
    }

    .wa-call-btn:focus-visible i {
        outline: 3px solid #53bdeb;
        outline-offset: 2px;
    }

    .wa-call-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.wa-call-btn-accept i {
    background: #25d366;
    color: #052e16;
}

.wa-call-btn-reject i, .wa-call-btn-end i {
    background: #ea4335;
    color: #fff;
    transform: rotate(135deg);
}

.wa-call-btn-reject:hover i, .wa-call-btn-end:hover i {
    transform: rotate(135deg) scale(1.06);
}

.wa-call-btn-mute.is-muted i {
    background: #e9edef;
    color: #111b21;
}

.wa-call-btn[hidden] {
    display: none;
}

@keyframes waCallPulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-call-card[data-status="Incoming"] .wa-call-badge {
        animation: none;
    }

    .wa-call-btn i {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    .wa-call-dock {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
    }

    .wa-call-card {
        border-radius: 18px 18px 0 0;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .wa-call-btn i {
        width: 60px;
        height: 60px;
    }
}

.wa-call-history {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

    .wa-call-history li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px dashed var(--vz-border-color, #e9ebec);
        font-size: 13px;
    }

        .wa-call-history li:last-child {
            border-bottom: 0;
        }

    .wa-call-history .wa-ch-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(37,211,102,.14);
        color: #1a9c4b;
        flex: 0 0 auto;
    }

        .wa-call-history .wa-ch-icon.is-bad {
            background: rgba(234,67,53,.12);
            color: #c5352a;
        }

    .wa-call-history .wa-ch-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .wa-call-history .wa-ch-sub {
        font-size: 11.5px;
        color: #878a99;
    }

/*end call*/

/*Instagram*/
/* instagram on top-header*/
.ig-connected {
    color: #e1306c;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/*end instagram on top-header*/
/*start instagram popup*/
.instagram-modal-header {
    background: linear-gradient(45deg, #833ab4c4, #c13584c2, #e1306c7d, #f77737c7);
}

.instagram-profile-fallback .avatar-title {
    background: linear-gradient(45deg, #833ab4, #c13584, #e1306c, #f77737);
    color: #fff;
}

.instagram-profile-picture {
    border: 3px solid #c13584b5;
    padding: 3px;
}

.instagram-spinner {
    color: #c13584;
}

.instagram-connected-badge {
    background-color: #e8f8ee;
    color: #198754;
}

.instagram-details-box {
    background-color: #fdf8fc;
    border-color: #f0d8e9 !important;
}

.instagram-detail-icon {
    background-color: #fce4f0;
    color: #c13584;
}

.instagram-reconnect-btn {
    background: linear-gradient(45deg, #833ab4, #c13584, #e1306c, #f77737);
    color: #fff;
    border: none;
}

    .instagram-reconnect-btn:hover {
        background: linear-gradient(45deg, #6f2d9b, #a52c70, #c7255d, #df6530);
        color: #fff;
    }

    .instagram-reconnect-btn:focus {
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(193, 53, 132, 0.25);
    }
/*end instagram popup*/
/*Start Instagram Post*/
.instagram-post-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
}

.instagram-post-preview-card {
    position: sticky;
    top: 90px;
}

/* account avatar with small network badge */
.instagram-post-avatar {
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e9ebef;
}

    .instagram-post-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

.instagram-post-avatar-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    font-size: 16px;
    line-height: 1;
    background: #fff;
    border-radius: 50%;
}

.instagram-post-channel-row,
.instagram-post-privacy-option {
    cursor: pointer;
}

    .instagram-post-channel-row:hover,
    .instagram-post-privacy-option:hover {
        background: rgba(64, 81, 137, .08);
    }

/* text editor */
.instagram-post-editor {
    border: 1px solid var(--vz-input-border, #ced4da);
    border-radius: .25rem;
}

    .instagram-post-editor textarea {
        resize: vertical;
        box-shadow: none;
    }

.instagram-post-emoji-panel {
    position: absolute;
    right: 0;
    bottom: 100%;
    z-index: 20;
}

/* media list */
.instagram-post-media-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.instagram-post-media-thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    background: #e9ebef;
}

/* audience chips */
.instagram-post-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(64, 81, 137, .12);
    font-size: 12px;
}

    .instagram-post-chip button {
        border: 0;
        background: transparent;
        padding: 0;
        line-height: 1;
    }

/* preview*/
.instagram-post-preview-stage {
    display: flex;
    justify-content: center;
    background: #f1f3f8;
    border-radius: 8px;
    padding: 16px;
    min-height: 420px;
}

.instagram-post-preview-card .instagram-preview-card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    color: #1c1e21;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    overflow: hidden;
    align-self: flex-start;
}

    .instagram-post-preview-card .instagram-preview-card.is-mobile {
        max-width: 360px;
    }

    .instagram-post-preview-card .instagram-preview-card.is-instagram {
        max-width: 360px;
        border-radius: 0;
    }

.instagram-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.instagram-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #e9ebef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instagram-preview-avatar-sm {
    width: 28px;
    height: 28px;
}

.instagram-preview-text {
    padding: 0 12px 12px;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.instagram-preview-skeleton {
    height: 10px;
    border-radius: 5px;
    background: #e9ebef;
    margin: 0 12px 8px;
}

.instagram-preview-media {
    position: relative;
    background: #f0f2f5;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .instagram-preview-media img,
    .instagram-preview-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .instagram-preview-media .instagram-preview-placeholder {
        font-size: 96px;
        color: #d0d4da;
    }

.instagram-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #1c1e21;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .instagram-preview-nav.is-prev {
        left: 8px;
    }

    .instagram-preview-nav.is-next {
        right: 8px;
    }

.instagram-preview-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 0 0;
}

    .instagram-preview-dots span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #c7c9ce;
    }

        .instagram-preview-dots span.is-active {
            background: #0095f6;
        }

.instagram-preview-fb-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid #e4e6eb;
    color: #65676b;
    font-size: 14px;
}

.instagram-preview-ig-top {
    text-align: center;
    font-family: "Billabong", cursive, serif;
    font-size: 20px;
    padding: 8px;
    border-bottom: 1px solid #efefef;
}

.instagram-preview-ig-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px 4px;
    font-size: 22px;
}

.instagram-preview-ig-caption {
    padding: 0 12px 12px;
    font-size: 13px;
    word-break: break-word;
}


/*strt edit popup*/
.instagram-post-requirements {
    font-size: 12px;
    color: var(--vz-secondary-color, #878a99);
    background: rgba(64, 81, 137, .06);
    border: 1px dashed rgba(64, 81, 137, .3);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.instagram-location-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1065;
    max-height: 220px;
    overflow-y: auto;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: var(--vz-secondary-bg, #fff);
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

    .instagram-location-suggest .instagram-location-option {
        padding: 8px 14px;
        font-size: 13px;
        cursor: pointer;
        color: var(--vz-body-color, #212529);
    }

    .instagram-location-suggest .instagram-location-note {
        padding: 8px 14px;
        font-size: 13px;
    }

    .instagram-location-suggest .instagram-location-option:hover,
    .instagram-location-suggest .instagram-location-option.is-active {
        background: rgba(64, 81, 137, .1);
    }

.instagram-editor-layout {
    display: grid;
    grid-template-columns: 190px 280px minmax(0, 1fr);
    height: min(560px, calc(100vh - 190px));
    min-height: 380px;
}

.instagram-editor-heading {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.instagram-editor-tools,
.instagram-editor-panel {
    padding: 16px;
    overflow-y: auto;
    border-right: 1px solid var(--vz-border-color, #e9ebec);
}

.instagram-editor-tool {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--vz-body-color, #212529);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

    .instagram-editor-tool:hover {
        background: rgba(64, 81, 137, .06);
    }

    .instagram-editor-tool.is-active {
        background: rgba(64, 81, 137, .14);
        color: #405189;
    }

.instagram-editor-rule {
    font-size: 12px;
    color: #b7791f;
    background: rgba(247, 184, 75, .15);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
}

    .instagram-editor-rule:empty {
        display: none;
    }

/* crop presets */
.instagram-editor-preset {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 8px;
    background: transparent;
    text-align: left;
    color: var(--vz-body-color, #212529);
}

    .instagram-editor-preset.is-active {
        border-color: #405189;
        box-shadow: 0 0 0 1px #405189;
    }

    .instagram-editor-preset.is-disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.instagram-editor-preset-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 56px;
    flex-shrink: 0;
    background: #f1f3f8;
    border-radius: 4px;
}

    .instagram-editor-preset-thumb span {
        display: block;
        max-width: 56px;
        max-height: 48px;
        height: 48px;
        background-size: cover;
        background-position: center;
        border-radius: 2px;
    }

.instagram-editor-preset-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

    .instagram-editor-preset-text small {
        color: var(--vz-secondary-color, #878a99);
        font-size: 11px;
    }

.instagram-editor-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 6px;
    margin-bottom: 8px;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--vz-body-color, #212529);
}

    .instagram-editor-filter img {
        width: 56px;
        height: 56px;
        object-fit: cover;
        border-radius: 4px;
    }

    .instagram-editor-filter.is-active {
        border-color: #405189;
        box-shadow: 0 0 0 1px #405189;
    }

.instagram-editor-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.instagram-editor-swatch {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, .2);
    padding: 0;
}

    .instagram-editor-swatch.is-active {
        outline: 2px solid #405189;
        outline-offset: 1px;
    }

.instagram-editor-stickers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.instagram-editor-sticker {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1.3;
    border-radius: 6px;
}

    .instagram-editor-sticker:hover {
        background: rgba(64, 81, 137, .1);
    }

.instagram-editor-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 16px;
    background: #3d414d;
    overflow: hidden;
}

.instagram-editor-image-wrap,
.instagram-editor-video-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 100%;
}

.instagram-editor-box {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    overflow: hidden;
    user-select: none;
    background: #fff;
}

    .instagram-editor-box img {
        display: block;
        max-width: 100%;
        max-height: min(440px, calc(100vh - 260px));
        -webkit-user-drag: none;
    }

.instagram-editor-crop {
    position: absolute;
    border: 1px solid #fff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55);
    cursor: move;
    touch-action: none;
}

.instagram-editor-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, transparent 33%, rgba(255, 255, 255, .55) 33%, rgba(255, 255, 255, .55) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .55) 66%, rgba(255, 255, 255, .55) calc(66% + 1px), transparent calc(66% + 1px)), linear-gradient(to bottom, transparent 33%, rgba(255, 255, 255, .55) 33%, rgba(255, 255, 255, .55) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .55) 66%, rgba(255, 255, 255, .55) calc(66% + 1px), transparent calc(66% + 1px));
}

.instagram-editor-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 1px solid #8a8f9c;
    border-radius: 2px;
}

    .instagram-editor-handle[data-corner="nw"] {
        left: -7px;
        top: -7px;
        cursor: nwse-resize;
    }

    .instagram-editor-handle[data-corner="ne"] {
        right: -7px;
        top: -7px;
        cursor: nesw-resize;
    }

    .instagram-editor-handle[data-corner="sw"] {
        left: -7px;
        bottom: -7px;
        cursor: nesw-resize;
    }

    .instagram-editor-handle[data-corner="se"] {
        right: -7px;
        bottom: -7px;
        cursor: nwse-resize;
    }

.instagram-editor-crop.is-static {
    pointer-events: none;
    cursor: default;
    border-color: transparent;
}

    .instagram-editor-crop.is-static .instagram-editor-handle,
    .instagram-editor-crop.is-static .instagram-editor-grid {
        display: none;
    }

.instagram-editor-overlays {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.instagram-editor-overlay {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 2px 6px;
    line-height: 1.2;
    white-space: pre;
    min-width: 24px;
    min-height: 1em;
    cursor: move;
    pointer-events: auto;
    touch-action: none;
    border: 1px dashed transparent;
}

    .instagram-editor-overlay.is-selected {
        border-color: rgba(255, 255, 255, .9);
        outline: 1px dashed rgba(0, 0, 0, .5);
    }

.instagram-editor-overlay-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    display: none;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f06548;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-family: Arial, sans-serif;
}

.instagram-editor-overlay.is-selected .instagram-editor-overlay-remove {
    display: block;
}

.instagram-editor-video-wrap video {
    display: block;
    max-width: 100%;
    max-height: min(320px, calc(100vh - 360px));
    background: #000;
    border-radius: 4px;
}

.instagram-editor-trimbar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
    padding: 0 6px;
}

.instagram-editor-play {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 18px;
}

.instagram-editor-track {
    position: relative;
    flex: 1;
    height: 48px;
    margin: 0 18px;
    background: #111;
    touch-action: none;
}

.instagram-editor-frames {
    position: absolute;
    inset: 0;
    display: flex;
    overflow: hidden;
}

    .instagram-editor-frames img {
        flex: 1;
        min-width: 0;
        height: 100%;
        object-fit: cover;
    }

.instagram-editor-range {
    --s: 0%;
    --e: 100%;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0, 0, 0, .6) var(--s), transparent var(--s), transparent var(--e), rgba(0, 0, 0, .6) var(--e));
}

    .instagram-editor-range::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: var(--s);
        right: calc(100% - var(--e));
        border-top: 3px solid #299cdb;
        border-bottom: 3px solid #299cdb;
    }

.instagram-editor-trim-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    background: #299cdb;
    cursor: ew-resize;
    touch-action: none;
}

    .instagram-editor-trim-handle.is-start {
        transform: translateX(-100%);
        border-radius: 4px 0 0 4px;
    }

    .instagram-editor-trim-handle.is-end {
        border-radius: 0 4px 4px 0;
    }

    .instagram-editor-trim-handle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2px;
        height: 18px;
        margin: -9px 0 0 -1px;
        background: #fff;
    }

.instagram-editor-playhead {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: #fff;
    pointer-events: none;
}

.instagram-editor-times {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: #fff;
    font-size: 13px;
}

    .instagram-editor-times input {
        width: 90px;
        text-align: center;
    }

.instagram-editor-busy {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 14px;
}

.instagram-editor-notice {
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .instagram-editor-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto minmax(300px, 1fr);
        height: auto;
        max-height: calc(100vh - 190px);
        overflow-y: auto;
    }

    .instagram-editor-tools,
    .instagram-editor-panel {
        border-right: 0;
        border-bottom: 1px solid var(--vz-border-color, #e9ebec);
    }

    .instagram-editor-tools {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .instagram-editor-tool {
        width: auto;
    }

        .instagram-editor-tool .ri-arrow-right-s-line,
        .instagram-editor-tools .instagram-editor-heading {
            display: none;
        }
}

/*end edit popup*/

/*end Instagram Post*/
