.user-panel {
    padding-bottom: 50px;
}

.user-panel h3 {
    font-size: 18px;
    font-weight: 600;
}

.user-panel h4 {
    font-size: 16px;
    font-weight: 600;
}

.user-panel .card {
    width: 100% !important;
    padding: 0;
    border-radius: 0;
}

.user-panel .list-group-item {
    padding: 0;
    width: 100%;
}

.user-panel .list-group-item a {
    display: block;
    color: #229b5d;
    font-weight: 600;
    transition: 0.4s;
    padding: 8px 15px;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 2px solid #229b5d;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #229b5d;
}

.sidebar h2 span {
    font-size: 14px;
    color: #888;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 20px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
    color: #fff;
    background-color: #229b5d;
}

.user-panel .list-group-item a:hover {
    background: #229b5d;
    color: #fff;
}

.user-panel .list-group .active {
    border-color: #229b5d !important;
}

.user-panel .list-group .active a {
    background: #229b5d !important;
    color: #fff !important;
}

.user-panel .box1,
.user-panel .box2,
.user-panel .box3 {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.user-panel .box1 h4,
.user-panel .box2 h4,
.user-panel .box3 h4 {
    font-weight: 700;
    font-size: 28px;
}

.user-panel .box1 {
    background: #c0d5ff;
}

.user-panel .box2 {
    background: #ffc3c8;
}

.user-panel .box3 {
    background: #dcffe2;
}

.user-panel input[type="submit"] {
    background: #229b5d;
    border: 0;
}

.user-panel .logo {
    height: 80px;
}

.user-panel .user-photo {
    width: 150px;
}

.user-panel label {
    font-weight: 600;
}

.user-panel table.upgrade-plan-table tr td:first-child {
    width: 250px;
}

.user-panel table.upgrade-plan-table .select2-selection--single {
    width: 100%;
}

.user-panel table.upgrade-plan-table .buy-button {
    width: 200px;
}

.user-panel .modal-header {
    border-bottom-color: #b9b9b9;
}

.user-panel .modal-seperator {
    border-bottom: #b9b9b9 1px solid;
    padding-bottom: 10px;
    margin-top: -5px;
}

.user-panel .message-item {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #cecece;
}

.user-panel .message-item .message-top {
    background: #f2f2f2;
    padding: 15px;
}

.user-panel .message-item .message-top .left {
    display: inline-block;
}

.user-panel .message-item .message-top .left img {
    width: 80px;
    height: 80px;
    border: 1px solid #cecece;
    border-radius: 50%;
    margin-right: 5px;
}

.user-panel .message-item .message-top .right {
    display: inline-block;
    vertical-align: middle;
}

.user-panel .message-item .message-top .right h4 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 20px;
}

.user-panel .message-item .message-top .right h5 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 20px;
    font-size: 15px;
    font-weight: 400;
}

.user-panel .message-item .message-top .right .date-time {
    font-size: 14px;
    color: #9e9e9e;
}

.user-panel .message-item .message-bottom {
    padding: 15px;
}

.user-panel .message-item-admin-border {
    border-left-color: #229b5d;
    border-left-width: 5px;
}

.invoice-container {
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    padding: 25px;
}

.invoice-top-right {
    text-align: right;
}

.invoice-top-right h4 {
    font-size: 26px;
    text-transform: uppercase;
}

.invoice-top-right h5 {
    font-size: 16px;
    color: #757575;
}

.invoice-middle {
    margin-top: 40px;
    margin-bottom: 40px;
}

.invoice-middle-left p,
.invoice-middle-right p {
    color: #757575;
    font-size: 16px;
}

.invoice-middle-left h4,
.invoice-middle-right h4 {
    font-size: 20px;
}

.invoice-middle-right {
    text-align: right !important;
}

.invoice-item-table,
.invoice-item-table tr td,
.invoice-item-table tr th {
    border-color: #b9b9b9;
}

.invoice-bottom {
    margin-top: 40px;
}

.invoice-bottom-payment h4 {
    font-size: 18px;
    font-weight: 700;
}

.invoice-bottom-total-box p {
    margin-bottom: 0;
    font-size: 16px;
}

.invoice-bottom-total-box span {
    width: 70px;
    display: inline-block;
}

@media (max-width: 991px) {
    .user-panel .card {
        margin-bottom: 30px;
    }
}

.select2-container {
    z-index: 99999 !important;
}

.select2-container--bootstrap .select2-selection--single {
    height: 36px !important;
    line-height: 36px !important;
    padding-top: 0 !important;
    font-size: 15px !important;
}

/* Message */

.tab-messages .messenger-container {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

.messenger-chat {
    display: flex;
    flex-direction: column;
    height: 500px;
}

/* Chat Header */

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.chat-header img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.chat-header h5 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* Chat Body */

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f7fa;
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.message-content {
    max-width: 60%;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    text-align: right;
}

/* Incoming Messages */

.message.incoming .message-content {
    background-color: #e9ecef;
    border-top-left-radius: 0;
}

.message.incoming .message-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 10px;
    background-color: #e9ecef;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* Outgoing Messages */

.message.outgoing {
    justify-content: flex-end;
}

.message.outgoing .message-content {
    background-color: #007bff;
    color: #fff;
    border-top-right-radius: 0;
}

.message.outgoing .message-content::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 10px;
    background-color: #007bff;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Chat Footer */

.chat-footer {
    display: flex;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
}

.send-button {
    margin-left: 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.send-button:hover {
    background-color: #0056b3;
}

@media (width >=767px) {
    .message-input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 20px;
        resize: none;
        width: 600px;
    }
}

@media (width < 575px) {
    .message-input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 20px;
        resize: none;
        width: 290px;
    }
}
