/* metric-card  */
.metric-card-wrapper {
    width: 100%;
    padding: 0 12px;
}

.metric-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
    gap: 32px;
    isolation: isolate;

    background: #FFFFFF;
    border: 1px solid #F1F1F4;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.03);
    border-radius: 12px;

    flex: none;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.metric-card .blur-ellipse {
    position: absolute;
    width: 52px;
    height: 49px;
    right: 0px;
    top: 0px;
    filter: blur(74px);
    flex: none;
    z-index: 0;
}

.metric-card .blue-blur {
    background: #1B84FF;
}

.metric-card .orange-blur {
    background: #DFA000;
}

.metric-card .green-blur {
    background: #04B440;
}

.metric-card .red-blur {
    background: #D81A48;
}

.metric-card .card-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 16px;

    flex: none;
    align-self: stretch;
    z-index: 1;
}

.metric-card .text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;
    flex: none;
}

.metric-card .metric-label {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #4B5675;
    flex: none;
    margin: 0;
}

.metric-card .metric-value {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 39px;
    color: #071437;
    flex: none;
    margin: 0;
}

.metric-card .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #FFFFFF;
}

.metric-card .blue-icon {
    background: #1B84FF;
}

.metric-card .orange-icon {
    background: #DFA000;
}

.metric-card .green-icon {
    background: #04B440;
}

.metric-card .red-icon {
    background: #D81A48;
}

.metric-card .icon-symbol {
    width: 24px;
    height: 24px;
    /* background: #FFFFFF; */
    color: #FFFFFF;
    fill: currentColor;
    position: relative;
}

.metric-card .change-indicator {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;

    width: 152px;
    height: 16px;

    flex: none;
    z-index: 3;
}

.metric-card .arrow-up,
.metric-card .arrow-down {
    width: 14px;
    height: 14px;
    flex: none;
    position: relative;
    -webkit-mask: url(../../media/icons/ic_select_down-arrow.svg) no-repeat center;
    mask: url(../../media/icons/ic_select_down-arrow.svg) no-repeat center;
    background-color: #D81A48;
}

.metric-card .arrow-up {
    transform: rotate(-180deg);
    background-color: #04B440;
}

.metric-card .arrow-up::after {
    content: '';
    position: absolute;
    left: 11.25%;
    right: 11.25%;
    top: 28.35%;
    bottom: 28.32%;
    background: #04B440;
    transform: rotate(-180deg);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 6px solid #04B440;
    left: 50%;
    top: 50%;
    margin-left: -3px;
    margin-top: -3px;
}

.metric-card .arrow-down::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 6px solid #D81A48;
    left: 50%;
    top: 50%;
    margin-left: -3px;
    margin-top: -3px;
}

.metric-card .change-text {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    flex: none;
    margin: 0;
}

.metric-card .positive-change {
    color: #04B440;
}

.metric-card .negative-change {
    color: #D81A48;
}

/* Icons using CSS */
.metric-card .users-icon {
    background-color: white;
    -webkit-mask: url(../../media/icons/ic_users.svg) no-repeat center;
    mask: url(../../media/icons/ic_users.svg) no-repeat center;
}

.metric-card .cross-icon {
    background-color: white;
    -webkit-mask: url(../../media/icons/ic_cancel_appointment.svg) no-repeat center;
    mask: url(../../media/icons/ic_cancel_appointment.svg) no-repeat center;
}





/* Kanban cards */
.kanban-container {
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #F1F1F4;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.kanban-container .kanban-header {
    padding: 14px 30px;
    border-bottom: 1px solid #F1F1F4;
    background: #FFFFFF;
    width: 100%;
}

.kanban-container .kanban-title {
    font-weight: 600;
    font-size: 16px;
    color: #071437;
    margin: 0;
}

.kanban-container .kanban-board {
    padding: 30px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    width: 100%;
    background: #FFFFFF;
    margin: 0;
}

.kanban-container .kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-container .kanban-board::-webkit-scrollbar-thumb {
    background: #a3adc7;
}

.kanban-container .kanban-column {
    flex: 1;
    min-width: 261px;
    height: fit-content;
    background: #F8F9FB;
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kanban-container .column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.kanban-container .column-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-container .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.kanban-container .status-dot.new {
    background: #1B84FF;
}

.kanban-container .status-dot.progress {
    background: #DFA000;
}

.kanban-container .status-dot.converted {
    background: #04B440;
}

.kanban-container .status-dot.lost {
    background: #D81A48;
}

.kanban-container .status-text {
    font-weight: 600;
    font-size: 16px;
    color: #071437;
}

.kanban-container .status-count {
    background: #F2ECF7;
    border-radius: 3px;
    padding: 2px 6px;
    font-weight: 600;
    font-size: 14px;
    color: #071437;
}

.kanban-container .lead-card {
    background: #FFFFFF;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 16px 12px;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kanban-container .lead-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.kanban-container .lead-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.kanban-container .lead-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.kanban-container .lead-name {
    font-weight: 600;
    font-size: 13px;
    color: #071437;
    flex: 1;
}

.kanban-container .lead-priority {
    color: #D81A48;
    font-size: 20px;
    margin-left: 8px;
}

.kanban-container .lead-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.kanban-container .detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #071437;
}

.kanban-container .detail-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.kanban-container .detail-item span {
    color: #071437;
    font-weight: 500;
    font-size: 12px;
}

.kanban-container .lead-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #F1F1F4;
}

.kanban-container .btn {
    flex: 1;
    border-radius: 6px;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #7D40AB;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.kanban-container .btn-remind {
    background: #F8F5FF;
    border: 1px solid rgba(125, 64, 171, 0.2);
    color: #7D40AB;
}

.kanban-container .btn-note {
    background: #F9F9F9;
    border: 1px solid #F1F1F4;
    color: #4B5675;
}

.kanban-container .btn-remind:hover {
    background-color: #f2edfe;
}

.kanban-container .btn-note:hover {
    background-color: #f0efef;
}

.kanban-container .drop-zone {
    min-height: 100px;
    border: 2px dashed transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kanban-container .drop-zone.drag-over {
    border-color: #1B84FF;
    background-color: rgba(27, 132, 255, 0.1);
}

@media (max-width: 768px) {
    .kanban-container .kanban-board {
        flex-direction: column;
        padding: 15px;
    }

    .kanban-container .kanban-column {
        min-width: auto;
    }
}





/* referrer-item */
.top-referrers-card {
    background: #FFFFFF;
    border: 1px solid #F1F1F4;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    margin: 0 auto;
    height: 100%;
}

.top-referrers-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 30px;
    border-bottom: 1px solid #F1F1F4;
    background: transparent;
    border-radius: 0;
}

.top-referrers-card .card-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #071437;
    margin: 0;
}

.top-referrers-card .referrer-card-body {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referrer-item {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
    transition: background-color 0.2s;
    cursor: pointer;
    border-radius: 8px;
}

.referrer-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.referrer-item.highlighted {
    background: rgba(27, 132, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.referrer-item .rank-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.referrer-item .rank-1 {
    background: #1B84FF;
}

.referrer-item .rank-2 {
    background: #FF6F1E;
}

.referrer-item .rank-3 {
    background: #DFA000;
}

.referrer-item .rank-4 {
    background: #04B440;
}

.referrer-item .rank-5 {
    background: #7D40AB;
}

.referrer-item .referrer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.referrer-item .referrer-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #071437;
    margin: 0;
}

.referrer-item .referrer-count {
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #4B5675;
    margin: 0;
}

.referrer-item .performance-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.referrer-item .performance-rate {
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #071437;
}

.referrer-item .trend-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.referrer-item .trend-up {
    color: #04B440;
}

.referrer-item .trend-down {
    color: #D81A48;
}

.referrer-item .card-body {
    padding: 0 0 24px 0;
}




/* funnel-card */
.funnel-card {
    background: #FFFFFF;
    border: 1px solid #F1F1F4;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.funnel-card .funnel-header {
    padding: 20px 30px;
    border-bottom: 1px solid #F1F1F4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.funnel-card .funnel-title {
    font-weight: 600;
    font-size: 16px;
    color: #071437;
    margin: 0;
}

.funnel-card .funnel-content {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 57px;
    height: 100%;
}

.funnel-card .funnel-stage {
    display: flex;
    align-items: center;
    gap: 24px;
}

.funnel-card .funnel-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.funnel-card .stage-label {
    font-weight: 600;
    font-size: 14px;
    color: #071437;
    min-width: 85px;
}

.funnel-card .stage-bar-container {
    flex: 1;
    height: 62px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.funnel-card .stage-bar {
    height: 100%;
    border-radius: 2px;
    position: relative;
}

.funnel-card .stage-value {
    font-weight: 600;
    font-size: 16px;
    color: #071437;
    margin-left: 24px;
    min-width: 40px;
}

.funnel-card .total-leads-bar {
    background: #1B84FF;
    width: 100%;
}

.funnel-card .in-progress-bar {
    background: #DFA000;
    width: 60%;
}

.funnel-card .converted-bar {
    background: #04B440;
    width: 36%;
}

.funnel-card .conversion-summary {
    background: #EAFFF1;
    border: 1px solid #04B440;
    border-radius: 8px;
    padding: 16px 24px;
    /* margin-top: 20px; */
}

.funnel-card .conversion-rate {
    font-weight: 600;
    font-size: 18px;
    color: #04B440;
    margin-bottom: 8px;
}

.funnel-card .conversion-note {
    font-weight: 500;
    font-size: 14px;
    color: #071437;
    margin: 0;
}




/* Engagement & recommendations */
.engagement-dashboard-container {
    background: #FFFFFF;
    border: 1px solid #F1F1F4;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

.engagement-dashboard-container .dashboard-header {
    padding: 14px 30px;
    border-bottom: 1px solid #F1F1F4;
}

.engagement-dashboard-container .dashboard-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #071437;
    margin: 0;
}

.engagement-dashboard-container .dashboard-content {
    padding: 30px;
    display: flex;
}

.engagement-dashboard-container .dashboard-content .reminder-effectiveness-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 50%;
}

.engagement-dashboard-container .section-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    color: #071437;
    margin-bottom: 16px;
}

.engagement-dashboard-container .reminder-card {
    background: #EFF6FF;
    border: 1px solid #F1F1F4;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 82px;
    height: 100%;
}

.engagement-dashboard-container .confirmation-rate-container {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.engagement-dashboard-container .confirmation-rate {
    width: fit-content;
}

.engagement-dashboard-container .rate-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #4B5675;
    margin-bottom: 8px;
}

.engagement-dashboard-container .rate-percentage {
    font-weight: 700;
    font-size: 32px;
    line-height: 39px;
    color: #1B84FF;
    margin-bottom: 8px;
}

.engagement-dashboard-container .rate-subtitle {
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    color: #071437;
}

.engagement-dashboard-container .chat-icon {
    width: 48px;
    height: 48px;
    background: #1B84FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.engagement-dashboard-container .effectiveness-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.engagement-dashboard-container .effectiveness-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4B5675;
    padding-right: 12px;
}

.engagement-dashboard-container .effectiveness-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #1B84FF;
}

.engagement-dashboard-container .offer-engagement-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    height: 100%;
}

.engagement-dashboard-container .offer-card {
    border: 1px solid #F1F1F4;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.engagement-dashboard-container .offer-card.grid-item-full-width {
    grid-column: span 2;
}

.engagement-dashboard-container .offer-card.purple {
    background: #F8F5FF;
}

.engagement-dashboard-container .offer-card.blue {
    background: #EFF6FF;
}

.engagement-dashboard-container .offer-card.green {
    background: #EAFFF1;
}

.engagement-dashboard-container .offer-percentage {
    font-weight: 700;
    font-size: 32px;
    line-height: 39px;
    margin-bottom: 18px;
}

.engagement-dashboard-container .offer-percentage.purple {
    color: #7D40AB;
}

.engagement-dashboard-container .offer-percentage.blue {
    color: #1B84FF;
}

.engagement-dashboard-container .offer-percentage.green {
    color: #04B440;
}

.engagement-dashboard-container .offer-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #071437;
}

.engagement-dashboard-container .glow-effect {
    position: absolute;
    width: 52px;
    height: 49px;
    right: 0px;
    top: 0px;
    border-radius: 50%;
    filter: blur(74px);
    opacity: 0.3;
}

.engagement-dashboard-container .glow-effect.purple {
    background: #7D40AB;
}

.engagement-dashboard-container .glow-effect.blue {
    background: #1B84FF;
}

.engagement-dashboard-container .glow-effect.green {
    background: #04B440;
}

.engagement-dashboard-container .recommendations-section {
    display: none;
}

.engagement-dashboard-container .recommendation-card {
    border: 1px solid #F1F1F4;
    border-radius: 8px;
    padding: 24px;
    height: 82px;
    display: flex;
    align-items: center;
}

.engagement-dashboard-container .recommendation-text {
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
}

.engagement-dashboard-container .recommendation-text.blue {
    color: #1B84FF;
}

.engagement-dashboard-container .recommendation-text.red {
    color: #D81A48;
}

.engagement-dashboard-container .recommendation-text.green {
    color: #04B440;
}

@media (max-width: 768px) {
    .engagement-dashboard-container .dashboard-content {
        padding: 20px;
    }

    .engagement-dashboard-container .dashboard-content .reminder-effectiveness-section {
        width: 100%;
    }

    .engagement-dashboard-container .rate-percentage,
    .offer-percentage {
        font-size: 24px;
    }
}