@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.5;
    color: #444;

}

body,
.app-default {
    background-color: #f8f9fa;
}


.btn-check:active+.btn.btn-primary,
.btn-check:checked+.btn.btn-primary,
.btn.btn-primary.active,
.btn.btn-primary.show,
.btn.btn-primary:active:not(.btn-active),
.btn.btn-primary:focus:not(.btn-active),
.btn.btn-primary:hover:not(.btn-active),
.show>.btn.btn-primary {
    color: #fff;
    border-color: #b61a1a;
    background-color: #b61a1a !important;
}

.auth-fluid-form-box {
    max-width: 560px;
    border-radius: 17px;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 0px 0px #00000047;
    border: 1px solid #e7eaf0;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* .form-style {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #ededed;
} */

a {
    color: #121224;
}

.user-sub-menu .menu-item .menu-link {
    font-size: 15px;
    font-weight: 500;
    color: #252f4a !important;
}

.card-style {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #ededed;
    box-shadow: none;
}

.card-style .card-body {
    padding: 0;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: #fff;
    border-bottom: none;
}


.nav-tabs .nav-link {
    border-radius: 0px;
}

.dashboard {
    padding: 15px;
}

.loginform {
    margin-top: 60px;
    margin-bottom: 60px;
}

.logotext {
    position: relative;
    top: 8px;
}

.loginform h5 {
    text-align: center;
    font-size: 17px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: 400;
}

[data-kt-app-header-fixed=true] .app-header {
    background-color: #fff;
    border-bottom: 1px solid #f5f5f5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.app-sidebar-logo {
    align-items: center;
    background-color: #000;
}

.app-sidebar-logo a {
    line-height: 30px;
}

.sidebar-logotext {
    font-size: 30px;
    position: relative;
    top: 6px;
    font-weight: 600;
}

.app-sidebar-menu .menu>.menu-item>.menu-link>.menu-title {
    font-weight: 600;
    font-size: 14px;
}

[data-kt-app-layout=light-sidebar] .app-sidebar .app-sidebar-toggle {
    right: -60px !important;
    left: auto !important;
    border-radius: 5px;
    border: none !important;
}

[data-kt-app-sidebar-fixed=true] .app-sidebar {
    width: 250px;
}

[data-kt-app-sidebar-fixed=true] .app-wrapper {
    margin-left: 250px;
}

[data-kt-app-header-fixed=true][data-kt-app-sidebar-fixed=true][data-kt-app-sidebar-push-header=true] .app-header,
[data-kt-app-header-fixed=true][data-kt-app-sidebar-sticky=on][data-kt-app-sidebar-push-header=true] .app-header {
    left: 0px;
}

[data-kt-app-sidebar-minimize=on] .app-sidebar {
    width: 75px !important;
}

[data-kt-app-sidebar-minimize=on] .app-wrapper {
    margin-left: 60px;
}

#chart {
    max-width: 100%;
    margin: 35px auto;
    opacity: 0.9;
}

.app-navbar {
    padding-right: 20px;
}

input[data-switch] {
    display: none;
}

input[data-switch]+label {
    width: 80px;
    height: 24px;
    background-color: #f1f3fa;
    background-image: none;
    border-radius: 2rem;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    position: relative;
    -webkit-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

input[data-switch]+label:before {
    color: #313a46;
    content: attr(data-off-label);
    display: block;
    font-family: inherit;
    font-weight: 400;
    font-size: 13px;
    line-height: 24px;
    position: absolute;
    right: 2px;
    margin: 0 .21667rem;
    top: 0;
    text-align: center;
    min-width: 1.66667rem;
    overflow: hidden;
    -webkit-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

input[data-switch]+label:after {
    content: '';
    position: absolute;
    left: 4px;
    background-color: #adb5bd;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 2rem;
    height: 18px;
    width: 18px;
    top: 3px;
    -webkit-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

input[data-switch]:checked+label {
    background-color: #61d160;
}

.chat-listing a .customer-list{
font-size: 13px;
  font-weight: 500;
  color: #333;
  padding: 9px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px;
}
.chat-listing a .customer-list:hover{
font-size: 13px;
  font-weight: 500;
  color: #fff;
  padding: 9px;
  border: 1px solid #d32f2f;
  background: #d32f2f;
  border-radius: 4px;
}
input[data-switch]:checked+label:before {
    color: #fff;
    content: attr(data-on-label);
    right: auto;
    left: 4px;
}
.dashboard-bg .card{
    width: 400px;
}
.dashboard-bg .card .card-body{
    padding: 20px;
}
input[data-switch]:checked+label:after {
    left: 59px;
    background-color: #fff;
}

.btn-icon {
    padding: 0px 5px !important;
    border: 1px solid #f5f5f9 !important;
    font-size: 12px;
    color: #61d160;
    border-radius: 5px;
    min-width: fit-content;
}

.tabPages ul li {
    margin-right: 10px;
}


.tabPages ul li.active a.btn-primary {
    background-color: #61d160;
    border-color: #61d160;
    color: #fff;
}

.tabPages ul li.active a.btn-primary:hover {
    background-color: #056ee9 !important;
    border-color: #056ee9 !important;
    color: #fff !important;
}
.tabPages .contact_card {
  width: 100%;
  text-align: center;
  display: block;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 25px;
  line-height: 25px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.tabPages .card_new{
    color: #fff;
    border: 1px solid #fc4a4a;
    background: #fc4a4a;
}
.tabPages .card_lists{
    color: #000;
    border: 1px solid #ecc805;
    background: #ecc805;
}
.tabPages .card_fields{
    color: #fff;
    border: 1px solid #37a1ee;
    background: #37a1ee;
}
.tabPages .card_tags{
    color: #fff;
    border: 1px solid #07ac40;
    background: #07ac40;
}
.chat_icon_bg {
    background-color: #07ac40;
    padding: 5px 8px;
    border-radius: 4px;
}
.notes_icon_bg{
    background: #37a1ee;
    padding: 5px 8px;
    border-radius: 4px;
}
.tag_icon_bg{
    background-color: #ebc705;
    padding: 5px 8px;
    border-radius: 4px;
}
.display-columns-table{
    padding: 15px!important;
    min-width: 210px!important;
}
.display-columns-table .dropdown-toggle::after {
    display: none!important;
}
#products-datatable .dropdown-toggle::after{
    display: none!important;
}
.display-columns-table .drop-header{
    display: flex;
    justify-content: space-between;
}
.display-columns-table .drop-header h4{
    font-size: 14px;
}
.profile_picture .col-sm-2 {
    width: 12.666667%;
}

.profile_picture .col-sm-10 {
    width: 87.333333%;
}

.page-title h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}
.value-number{
    display: grid;
}
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #c8102e;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.stat-title {
    font-size: 16px;
    color: #222;
    font-weight: 600;
}
.stat-details {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #444;
}
.stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #C8102E;
}
.stat-change.positive {
    color: #09940f;
}
.stat-change.negative {
    color: #ff0000;
}
.stat-change {
    display: flex;
    align-items: center;
    font-size: 13px;
}
.stat-change i {
    margin-right: 5px;
}
.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 400px;
    margin-bottom: 20px;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.chart-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}
.chart-actions {
    display: flex;
    gap: 10px;
}
.chart-actions select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #FFF;
    background-color: white;
    cursor: pointer;
    font-size: 13px;
}
.chart-wrapper {
    height: 300px;
    position: relative;
}
.hourly-activity {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.progress-container {
    height: 4px;
    background-color: #eeeeee;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}
.hour-time {
    font-weight: 500;
    font-size: 13px;
}
.hour-count {
    color: #111;
    font-weight: 600;
    font-size: 14px;
}
.progress-bar {
    height: 100%;
    border-radius: 3px;
    background-color: #C8102E;
}
.conversion-metrics {
    display: grid
;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.metric-card {
    background: white;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 14%);
}
.metric-title {
    font-size: 14px;
    color: var(--dark-grey);
    margin-bottom: 5px;
}
.metric-value {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000000;
}
.metric-comparison.positive {
    color: #09940f;
}
.metric-comparison {
    font-size: 12px;
}
.metric-comparison i {
    margin-right: 3px;
}
.recent-leads {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.table-title {
    font-size: 17px;
    font-weight: 600;
}
.recent-leads table {
    width: 100%;
    border-collapse: collapse;
}
.recent-leads table thead tr th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f9f9f9;
    font-weight: 600;
    color: var(--dark-grey);
    font-size: 15px;
}
.recent-leads table tbody tr td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.product-name {
    font-weight: 500;
    color: #c8102e;
}
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.status-new {
    background-color: rgb(58 149 227);
    color: #fff;
}
.status-active {
    background-color: rgb(255 215 0);
    color: #111;
}
.status-converted {
    background-color: rgb(9 148 15);
    color: #fff;
}
.status-lost {
    background-color: rgb(211 47 47);
    color: #fff;
}
.action-btn {
    padding: 5px 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}
.view-all{
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
}
.title-view{
    font-size: 14px;
    color: rgb(211 47 47);
    margin-right: 30px;
}

/* Start New Chat CSS */

.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    background-color: #fff;
    margin-top: 30px;
    border: 1px solid #ddd;
    height: 85vh;
}

/* Conversation List Pane */
.conversation-list-pane {
    width: 380px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    flex-shrink: 0;
    background-color: #fff;
}

/* .page-title {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: 600;
    color: #d32f2f;
    margin-bottom: 15px;
} */
.page-title .fa-whatsapp {
    font-size: 1.3em;
    margin-right: 10px;
    color: #ffd700;
}

.filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}
.filters-bar select, .search-bar input[type="search"] {
    padding: 8px 10px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 13px;
    background-color: #fff;
    color: #9b9494;
}
.conversation-list .page-title {
    font-size: 18px;
    margin-bottom: 10px;
}
.filters-bar select {
    width: 100%;
}
.search-bar input[type="search"] {
    flex-grow: 1;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23888' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
}

.recent-conversations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.recent-conversations-header h2 {
    font-size: 1em;
    font-weight: 500;
    color: #555;
}
.btn-new-chat {
    background-color: #d32f2f; /* Red */
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.btn-new-chat i { margin-right: 5px; }

.conversation-items-list {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
    padding:0;
}
.conversation-list-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.1s ease;
    border-radius: 6px;
    margin-bottom: 5px;
}
.conversation-list-item:last-child { border-bottom: none; }
.conversation-list-item:hover { background-color: #f5f5f5; }
.conversation-list-item.active {
    background-color: #ffebee; /* Light red */
}

.conversation-list-item .avatar-container {
    position: relative;
    margin-right: 10px;
    flex-shrink: 0;
}
.conversation-list-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.conversation-list-item .online-indicator {
    width: 8px;
    height: 8px;
    background-color: #4CAF50; /* Keep green for visibility */
    border-radius: 50%;
    border: 1.5px solid white;
    position: absolute;
    bottom: 1px;
    right: 1px;
}

.conversation-list-item .info {
    flex-grow: 1;
    overflow: hidden;
}
.conversation-list-item .name-plan {
    display: flex;
    align-items: baseline;
    margin-bottom: 2px;
    justify-content: space-between;
}
.conversation-list-item .name {
    font-weight: 500;
    font-size: 0.9em;
    color: #111;
    margin-right: 6px;
}
.plan-tag {
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: #f5f5f5;
    color: #d32f2f; /* Red */
    font-weight: 500;
    line-height: 1;
}
.plan-tag.basic { background-color: #e3f2fd; color: #1565c0;}
.plan-tag.enterprise { background-color: #e8f5e9; color: #2e7d32; }
.plan-tag.custom { background-color: #fff3e0; color: #ef6c00; }

.conversation-list-item .message-snippet {
    font-size: 0.8em;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.status-tag {
    font-size: 0.7em;
    padding: 3px 7px;
    border-radius: 10px;
    font-weight: 500;
    color: white;
    align-self: right;
    flex-shrink: 0;
    text-transform: uppercase;
}
.status-tag.new { background-color: #d32f2f; } /* Red */
.status-tag.active { background-color: #ffd700; color: #333; font-weight: 600;} /* Gold */
.status-tag.converted { background-color: #4CAF50; } /* Keep green for positive action */
.status-tag.lost { background-color: #757575; } /* Grey */


/* Chat Display Pane */
.chat-display-pane {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
}

.chat-messages-area {
    flex-grow: 1;
    padding: 20px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    display: flex;
    margin-bottom: 10px;
    max-width: 75%;
    align-items: flex-end;
}

.message .img-fluid {
    max-height: 350px;
    max-width: 450px;
}
.message .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 5px;
}
.message-content-wrapper {
    display: flex;
    flex-direction: column;
}

.message.received .avatar { margin-right: 8px; }
.message.sent .avatar { margin-left: 8px; }


.message-sender-info {
    font-size: 0.75em;
    color: #666;
    margin-bottom: 3px;
}
.message.received .message-sender-info { margin-left: 0; }
.message.sent .message-sender-info { text-align: right; margin-right: 0; }

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

.message-bubble {
    padding: 8px 12px;
    border-radius: 7.5px;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.message.received {
    align-self: flex-start;
}
.message.received .message-bubble {
    background-color: #fff;
    color: #333;
}

.referral {
    display: flex;
    align-self: flex-start;
    margin-bottom: -70px;
}

.referral div {
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.05);
}

.referral img {
    border-radius: 10px;
}

.referral span {
    margin-top: 20px;
    margin-left: 5px;
}

.message.sent {
    margin-left: auto;
    flex-direction: row-reverse;
    align-self: flex-end;
}
.message.sent .message-bubble {
    background-color: #ffd700; /* Gold */
    color: #333;
}


.message-input-field {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}
.message-input-field input[type="text"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.9em;
    margin-right: 10px;
    background-color: #fff;
}
.message-input-field input[type="text"]::placeholder {
    color: #999;
}

.btn-send-icon {
    background-color: #d32f2f; /* Red */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.btn-send-icon:hover {
    background-color: #b71c1c; /* Darker red */
}
.main-content {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
}
.conversation-list.active {
    transform: translateX(0);
}
.conversation-list {
    width: 100%;
    background-color: #fff;
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 90;
}
.btn-submit{
background: #d32f2f;
  margin: 15px 15px 15px 0;
  padding: 0px 14px;
  border-radius: 50px;
}
.btn-submit svg{
    margin-bottom: 4px;
}
.search-bar {
    position: relative;
}
.search-bar::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 10px;
    font-size: 15px;
    color: #8d99ae;
}
.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.conversation-item.active {
    background-color: rgba(67, 97, 238, 0.1);
}
.conversation-item {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #ddd;
}
.conversation-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #d32f2f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}
.conversation-content {
    flex: 1;
    min-width: 0;
}
.conversation-name {
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}
 .message-snippet {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.conversation-preview {
    font-size: 13px;
    color: #8d99ae;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.conversation-time {
    font-size: 11px;
    color: #8d99ae;
    white-space: nowrap;
}
.recent-conversations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.recent-conversations-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}
.btn-new-chat {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.chat-area.active {
    transform: translateX(0);
}
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    z-index: 80;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
.chat-messages-area {
    flex-grow: 1;
    padding: 20px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.chat-header {
    padding: 15px;
    /* display: flex; */
    align-items: center;
    border-bottom: 1px solid #d7d7d7;
}
.back-button {
    background: none;
    border: none;
    font-size: 18px;
    margin-right: 12px;
    cursor: pointer;
    display: none;
}
.chat-title {
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.messages-container {
    flex-grow: 1;
    overflow-y: auto;
    display: flex
;
    flex-direction: column;
    min-height: 56vh;
    max-height: 56vh;
}

#messages-container {
    position: relative;
}
.message.received .message-sender-info {
    margin-left: 0;
}
.message-sender-info {
    font-size: 0.75em;
    color: #666;
    margin-bottom: 3px;
}
.message-sender-info .sender-name {
    font-weight: 500;
    color: #333;
}
.message-sender-info {
    font-size: 0.75em;
    color: #666;
    margin-bottom: 3px;
}
.message.received .message-bubble {
    background-color: #fff;
    color: #333;
}
.message-bubble {
    padding: 8px 12px;
    border-radius: 7.5px;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}
.contact-info.active {
    transform: translateX(0);
}
.contact-info .card-body{
    background-color: #fff;
    padding: 15px;
}
.contact-info .card-header{
    padding: 12px;
}
.contact-info .card-header h5{
    font-size: 14px;
}
.contact-info .card-header h5 a{
    color: #222;
    font-weight: 500;
}
.contact-info .card-body {
    padding: 12px;
    height: 100%;
}
.contact-info .form-group label{
    font-size: 12px;
    color: #777;
}
.contact-info .form-group p{
    font-size: 13px;
    color: #111;
}
.contact-info .btn-dark{
    padding: 8px!important;
    border-radius: 4px;
}
.btn-red-outline{
    background: #ffffff;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    border-radius: 4px;
    padding: 8px;
    font-size: 12px;
}
.btn-red-outline:hover{
    background: #d32f2f;
    border: 1px solid #fff;
    color: #fff;
}
.chat-send-template {
    background-color: #d32f2f;
    border: 1px solid #d32f2f;
    cursor: pointer;
}
.message_type .row {
    margin-left: -5px;
}
.chat-send-template input.form-control[readonly] {
    background-color: #d32f2f;
    opacity: 1;
    cursor: pointer;
}
#conversation-list{
    list-style: none;
    padding: 0;
}
.received .conversation-text{
    background-color: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 7.5px;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}
.sent .conversation-text{
    background-color: #ffd700;
    color: #333;
    padding: 8px 12px;
    border-radius: 7.5px;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}
.reminder-card.high-priority {
    border-left-color: #d32f2f!important;
}
.reminder-card {
    border-left: 4px solid!important;
    border-radius: 8px!important;
    margin-bottom: 15px;
    transition: all 0.3s;
    position: relative!important;
    overflow: hidden;
}
.reminder-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
    margin-top: 10px;
}
.ctext-wrap p {
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    margin-bottom: 10px;
}
.conversation-text .time{
    font-size: 11px;
    color: #8a8a8a;
}
.reminder-due {
    margin-bottom: 5px;
    font-size: 13px;
    color: #6c757d;
}
.reminder-due i {
    margin-right: 5px;
}
.reminder-actions {
    margin-top: 10px;
    display: flex
;
    gap: 10px;
    position: absolute;
    top: 60px;
    right: 25px;
}
.reminder-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.t_edit i, .t_delete i{
    color: #fff;
    font-size: 13px;
}
.t_show i{
    color: #111;
    font-size: 13px;
}
.t_edit{
    background: #37a1ee;
    padding: 7px 11px;
    border-radius: 4px;
}
.t_show{
    background-color: #ebc705;
    padding: 7px 11px;
    border-radius: 4px;
}
.t_delete{
    background: #fc4a4a;
    padding: 7px 11px;
    border-radius: 4px;
}
.reminder-contact {
    display: flex
;
    align-items: center;
    margin-top: 15px;
    position: absolute;
    top: 0;
    right: 25px;
}
.reminder-contact img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
@media (min-width: 1200px) {
    .conversation-list {
        width: 340px;
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .chat-area {
        position: relative;
        margin: 20px 0;
    }
    .contact-info {
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .app-container {
        flex-direction: row;
    }

    .chat-container {
        flex-direction: row;
        height: 100vh;
    }

}
/* End New Chat CSS */
@media (max-width: 767px) {
    [data-kt-app-sidebar-fixed=true] .app-wrapper {
        margin-left: 0;
    }

    .app-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .app-header {
        background-color: #fff !important;
    }

    .app-navbar {
        padding-right: 10px;
    }
    .page-title h1 {
        font-size: 20px;
        font-weight: 600;
    }
    .stat-card {
        padding: 12px 20px;
        margin-bottom: 15px;
    }
    .stat-title {
  font-size: 15px;
}
.stat-details {
  font-size: 12px;
}
.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.value-number{
    display: flex;
    justify-content: space-between;
}
.stat-value {
  margin-bottom: 0;
  font-size: 22px;
}
.chart-actions select {
  padding: 6px 10px;
  font-size: 12px;
}
.chart-title {
  font-size: 15px;
}
.chart-header {
  margin-bottom: 10px;
}
.hour-item {
  padding: 7px 0;
}
.hour-time {
  font-size: 12px;
}
.hour-count {
  font-size: 13px;
}
.progress-container {
  height: 2px;
}
.chart-container {
  padding: 15px;
  height: auto;
  margin-bottom: 15px;
}
.metric-title {
  font-size: 12px;
}
.metric-value {
  font-size: 16px;
}
.metric-comparison {
  font-size: 11px;
}
.recent-leads {
  padding: 15px;
}
.table-title {
  font-size: 15px;
}
.table-header {
  margin-bottom: 15px;
}
.title-view {
  font-size: 12px;
}
.recent-leads table thead tr th {
  padding: 6px 9px;
  font-size: 13px;
}
.recent-leads table tbody tr td {
  padding: 6px 9px;
  font-size: 13px;
}
}

/* chat css */
@media (max-width: 768px) {
    .customer-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        background: white;
    }
    .customer-sidebar.show {
        left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
    .mobile-toggle {
        display: block !important;
    }

    .message .img-fluid {
        max-width: 100% !important;
    }

    #kt_app_content_container {
        padding: 0 !important;
    }

    .container-fluid {
        padding-top: 0 !important;
    }
}
@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
    }
}
.unread-indicator {
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
}
.hamburger-indicator {
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

.chat-last-update 
{
    position: absolute;
    top: 5px;
    right: 5px;
}

#close-sidebar {
    position: absolute;
    right: 5px;
    top: 5px;
}

.current-team {
    background-color: #3A95E3 !important;
    color: white;
}