/* WhatsApp Web style for ChatPay application */

:root {
    --sidebar-bg: #111b21;
    --chat-bg: #0b141a;
    --chat-area-bg: #222e35;
    --primary-color: #00a884;
    --text-color: #e9edef;
    --secondary-text: #8696a0;
    --message-out: #005c4b;
    --message-in: #202c33;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #111b21;
    color: var(--text-color);
}

/* Left Sidebar with Icons */
.left-sidebar {
    /*width: 128px; */
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
    border-right: 1px solid #2a3942;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sidebar-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.sidebar-icon.active {
    background-color: #2a3942;
}

.sidebar-icon i {
    font-size: 24px;
    color: #aebac1;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.agent-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chat History Section */
.chat-history {
    width: 360px;
    min-width: 360px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid #2a3942;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.chat-header h2 {
    font-size: 22px;
    font-weight: 500;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icons i {
    font-size: 20px;
    color: #aebac1;
    cursor: pointer;
}

.search-container {
    padding: 10px 12px;
}

.search-box {
    background-color: #202c33;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box i {
    color: #aebac1;
    font-size: 20px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    width: 100%;
    font-size: 14px;
}

.chat-filters {
    display: flex;
    padding: 10px 12px;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    background-color: #222e35;
    color: var(--secondary-text);
}

.filter-btn.active {
    background-color: rgba(0, 168, 132, 0.15);
    color: var(--primary-color);
}

.chat-list {
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow-x: hidden;
}

.chat-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.chat-item {
    padding: 10px 16px;
    display: flex;
    gap: 15px;
    cursor: pointer;
    border-bottom: 1px solid #2a3942;
    width: 100%;
    box-sizing: border-box;
}

.chat-item:hover {
    background-color: #2a3942;
}

.chat-item.active {
    background-color: #2a3942;
}

.chat-avatar {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: calc(100% - 60px);
    overflow: hidden;
}

.chat-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    width: 100%;
}

.chat-name {
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item.unread .chat-name {
    font-weight: 600;
}

.chat-item.favorite .chat-name::after {
    content: '★';
    color: var(--primary-color);
    margin-left: 5px;
    font-size: 14px;
}

.chat-time {
    color: var(--secondary-text);
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 5px;
}

.chat-message {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-text);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.chat-message i {
    font-size: 16px;
    color: var(--secondary-text);
}

.chat-item.group .group-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00a884;
}

.chat-item.group .group-avatar i {
    font-size: 30px;
    color: white;
}

.chat-item.group .chat-message span {
    color: var(--primary-color);
    font-weight: 500;
    margin-right: 4px;
}

/* Main Chat Area */
.chat-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--chat-area-bg);
    position: relative;
}

.chat-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(229, 221, 213, 0.92);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABmJLR0QA/wD/AP+gvaeTAAABDElEQVRYhe3WMQ6CQBSF4Z+NhdZaWHgaDyQxUdN4EkkvYElFTTyGJ/AYFhZaaY3FvgUhBGaGWT0Ak7xkmDA8/mQgE3iO4zj/TAK0wAyoB1OjDTNgFaWjthR1BvKIci1FnYB8xXTYGvXKUCGqxM4MVaNkTI6tUTZRIdSIKVA6VI0ZMbsQVWLcPm4VZRMlY2KgVFQJtE+IklFnQ9g+ahXC9lEyKpZcHiMmQ9UY38f5iJExsnzcoVpUivJFRoz8LVSLcpcP+gJRIaoE3kDbgHJn4CHEvIDWQGOrGoZR5XIKrIEc9RXlxv4CWfynUA1wpxg15K2jCbAAhrzNtzbqAKyBMS87raIS4GEb5TiO40TyAZm8h1E+/+MiAAAAAElFTkSuQmCC');
    opacity: 0.4;
    z-index: 0;
}

.chat-area-header {
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--sidebar-bg);
    height: 60px;
    z-index: 1;
}

.chat-area-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.chat-area-name {
    display: flex;
    flex-direction: column;
}

.chat-area-name h3 {
    font-size: 16px;
    font-weight: 500;
}

.chat-area-name p {
    font-size: 13px;
    color: var(--secondary-text);
}

.chat-area-icons {
    display: flex;
    gap: 20px;
}

.chat-area-icons i {
    font-size: 24px;
    color: #aebac1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.chat-area-icons i:hover, .header-icons i:hover {
    background-color: #374045;
}

.chat-area-icons i:active, .header-icons i:active {
    background-color: #2a3942;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #182229;
    background-repeat: repeat;
    background-size: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    
    position: relative;
}

.chat-messages::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.messages-container {
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 65%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 7.5px;
    position: relative;
    font-size: 14.2px;
    line-height: 1.4;
}

.message-in {
    background-color: var(--message-in);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message-out {
    background-color: var(--message-out);
    align-self: flex-end;
    border-top-right-radius: 0;
    margin-left: auto;
}

.message-time {
    font-size: 11px;
    color: var(--secondary-text);
    text-align: right;
    margin-top: 4px;
}

.chat-input-area {
    padding: 10px 16px;
    background-color: var(--sidebar-bg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    position: relative;
}

.chat-input-area i {
    font-size: 24px;
    color: #aebac1;
    cursor: pointer;
}

.chat-input {
    flex-grow: 1;
    background-color: #2a3942;
    border-radius: 8px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
}

.chat-input input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 15px;
}

/* Custom Meta AI styling */
.meta-ai .chat-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-ai .icon-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #0072ff, #00c6ff, #d500f9);
    display: inline-block;
    margin-right: 5px;
}

/* WhatsApp Promo Banner */
.whatsapp-promo {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #111b21;
    color: #aebac1;
    font-size: 14px;
    border-top: 1px solid #222d34;
}

.whatsapp-promo img {
    margin-right: 10px;
}

.whatsapp-promo i {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 10px;
}

.whatsapp-promo span {
    flex: 1;
}

.install-button {
    padding: 6px 12px;
    background-color: #00a884;
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s;
}

.install-button:hover {
    background-color: #008c6e;
}

/* Header Icons */
.header-icons i {
    font-size: 24px;
    color: #aebac1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 10px;
    top: 45px;
    background-color: #1f2c33;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 180px;
    z-index: 1200;
    display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 12px 15px;
    font-size: 14.5px;
    cursor: pointer;
    color: #e9edef;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #2a3942;
}

/* Improved search overlay styles - opening from right side with 50% width */
.search-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: var(--sidebar-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    animation: slide-in-from-right 0.3s ease;
}

@keyframes slide-in-from-right {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background-color: var(--sidebar-bg);
    gap: 15px;
    height: 59px;
    border-bottom: 1px solid #2a3942;
}

.search-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-back-btn i {
    font-size: 24px;
    color: #aebac1;
}

.search-input-container {
    flex-grow: 1;
    background-color: #202c33;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    height: 40px;
}

.search-icon {
    color: #aebac1;
    font-size: 20px;
    margin-right: 12px;
}

.search-input-container input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 15px;
}

.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #aebac1;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.search-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: var(--sidebar-bg);
    height: 48px;
    border-bottom: 1px solid #2a3942;
}

.search-count {
    color: var(--secondary-text);
    font-size: 14px;
}

.search-nav-buttons {
    display: flex;
    gap: 8px;
}

.search-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-text);
    font-size: 20px;
}

.search-nav-btn:not(.disabled):hover {
    background-color: #374045;
}

.search-nav-btn.disabled {
    opacity: 0.5;
    cursor: default;
}

.search-results {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #111b21;
}

.search-hint {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    padding: 0 20px;
    text-align: center;
}

.search-hint-icon {
    font-size: 70px;
    color: #8696a0;
    opacity: 0.5;
    margin-bottom: 20px;
}

.search-hint p {
    font-size: 14px;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #2a3942;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item:hover {
    background-color: #2a3942;
}

.search-result-date {
    font-size: 12px;
    color: var(--secondary-text);
}

.search-result-message {
    font-size: 14px;
    line-height: 1.4;
}

.search-result-highlight {
    background-color: rgba(0, 168, 132, 0.5);
    padding: 0 2px;
    border-radius: 2px;
}


/* This is the existing tooltip implementation in your CSS */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.5s; /* Adds a delay before showing */
}

/* New chat modal styles */
.new-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
}

.new-chat-container {
    width: 512px;
    height: 100%;
    background-color: var(--sidebar-bg);
    animation: slide-in 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
}

@keyframes slide-in {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.new-chat-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.new-chat-back {
    margin-right: 30px;
    cursor: pointer;
}

.new-chat-back i {
    font-size: 24px;
    color: #aebac1;
}

.new-chat-title {
    font-size: 19px;
    font-weight: 500;
}

.new-chat-search {
    padding: 10px 12px;
    background-color: var(--sidebar-bg);
}

.search-with-icon {
    background-color: #202c33;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-with-icon i {
    font-size: 20px;
}

.search-with-icon input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    width: 100%;
    font-size: 14px;
}

.new-chat-options {
    display: flex;
    flex-direction: column;
}

.new-chat-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
}

.new-chat-option:hover {
    background-color: #2a3942;
}

.option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.group-icon, .community-icon {
    background-color: #00a884;
}

.group-icon i, .community-icon i {
    font-size: 24px;
    color: white;
}

.option-text {
    font-size: 17px;
    font-weight: 400;
}

.new-chat-divider {
    height: 1px;
    background-color: #2a3942;
    margin: 10px 0;
}

.new-chat-section-title {
    padding: 10px 20px;
    font-size: 14px;
    color: #00a884;
}

.new-chat-contact {
    display: flex;
    padding: 10px 20px;
    align-items: center;
    cursor: pointer;
}

.new-chat-contact:hover {
    background-color: #2a3942;
}

.contact-details {
    margin-left: 15px;
}

.contact-name {
    font-size: 17px;
    margin-bottom: 4px;
}

.contact-status {
    font-size: 14px;
    color: var(--secondary-text);
}

/* Settings/profile modal styles */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
}

.settings-container {
    width: 400px;
    height: 100%;
    background-color: var(--sidebar-bg);
    animation: slide-in 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
}

.settings-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.settings-back {
    margin-right: 30px;
    cursor: pointer;
}

.settings-back i {
    font-size: 24px;
    color: #aebac1;
}

.settings-title {
    font-size: 19px;
    font-weight: 500;
}

.settings-search {
    padding: 10px 12px;
    background-color: var(--sidebar-bg);
}

.settings-content {
    display: flex;
    flex-direction: column;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-bottom: 10px;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: 500;
}

.settings-options {
    display: flex;
    flex-direction: column;
}

.settings-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #2a3942;
}

.settings-option:hover {
    background-color: #2a3942;
}

.settings-globe-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background-color: #2c3b44;
}

.option-icon i {
    font-size: 20px;
    color: var(--text-color);
}

.option-text {
    font-size: 16px;
    font-weight: 400;
}

.logout-option {
    margin-top: 10px;
}

/* Updated profile styles */
.profile-container {
    background-color: var(--sidebar-bg);
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.profile-picture-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 50px;
    position: relative;
}

.profile-picture-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-fields {
    width: 100%;
    padding: 0 30px;
}

.profile-section-title {
    color: #00a884;
    font-size: 14px;
    margin-bottom: 14px;
}

.profile-name-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.profile-name-value {
    font-size: 18px;
    font-weight: 400;
}

.profile-edit-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-edit-icon i {
    color: var(--secondary-text);
    font-size: 20px;
}

.profile-edit-icon.small i {
    font-size: 18px;
}

.profile-description {
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.profile-section-divider {
    height: 1px;
    background-color: #2a3942;
    margin: 20px 0;
}

.profile-about-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Channels/status page styles */
.channels-container {
    background-color: var(--sidebar-bg);
}

.channels-menu {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.channels-menu i {
    font-size: 24px;
    color: #aebac1;
}

.channels-search {
    padding: 10px 15px;
    background-color: var(--sidebar-bg);
}

.channels-list {
    padding: 10px 0;
    overflow-y: auto;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.channel-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-details {
    flex-grow: 1;
}

.channel-name {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 3px;
}

.verified-badge {
    color: #00a884;
    font-size: 16px;
    margin-left: 5px;
}

.channel-followers {
    font-size: 14px;
    color: var(--secondary-text);
}

.follow-button {
    padding: 7px 18px;
    border-radius: 18px;
    border: 1px solid #00a884;
    color: #00a884;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.follow-button:hover {
    background-color: rgba(0, 168, 132, 0.1);
}

.follow-button.following {
    background-color: rgba(0, 168, 132, 0.2);
}

.channel-category {
    padding: 15px 15px 5px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.see-all {
    color: #00a884;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.see-all i {
    font-size: 18px;
}

/* Community/group page styles */
.community-container {
    background-color: var(--sidebar-bg);
}

.community-content {
    display: flex;
    flex-direction: column;
}

.community-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.community-item:hover {
    background-color: #2a3942;
}

.community-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.community-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-icon.green {
    background-color: #00a884;
}

.community-icon.grey {
    background-color: #6b7c85;
}

.community-icon i {
    font-size: 24px;
    color: white;
}

.community-name {
    font-size: 17px;
}

.community-subitem {
    display: flex;
    padding: 12px 20px 12px 65px;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    cursor: pointer;
}

.community-subitem:hover {
    background-color: #2a3942;
}

.community-subitem.announcement {
    background-color: #182229;
}

.subitem-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: #00a884;
}

.subitem-icon.grey {
    background-color: #6b7c85;
}

.subitem-icon i {
    font-size: 20px;
    color: white;
}

.subitem-content {
    flex-grow: 1;
    overflow: hidden;
}

.subitem-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.subitem-name {
    font-size: 16px;
    font-weight: 500;
}

.subitem-date {
    font-size: 12px;
    color: var(--secondary-text);
}

.subitem-message {
    color: var(--secondary-text);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sender {
    color: var(--text-color);
}

.community-see-all {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.community-see-all:hover {
    background-color: #2a3942;
}

.new-community {
    margin-bottom: 15px;
}

/* Wallet page styles */
.wallet-container {
    background-color: var(--sidebar-bg);
}

.wallet-globe-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.wallet-globe-icon i {
    font-size: 24px;
    color: #aebac1;
}

.wallet-content {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.wallet-user {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.wallet-user-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #2a3942;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-user-icon i {
    font-size: 24px;
    color: #aebac1;
}

.wallet-address {
    font-size: 16px;
    color: var(--secondary-text);
}

.wallet-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 30px;
}

.balance-amount {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 8px;
}

.balance-change {
    font-size: 16px;
}

.negative {
    color: #f15c6d;
}

.positive {
    color: #00a884;
}

.wallet-actions {
    display: flex;
    justify-content: space-around;
    padding: 0 20px 25px;
    border-bottom: 1px solid #2a3942;
}

.wallet-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.wallet-action-btn:hover {
    background-color: #2a3942;
}

.wallet-action-btn i {
    font-size: 24px;
    color: #aebac1;
    background-color: #2a3942;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-action-btn span {
    font-size: 14px;
    color: var(--text-color);
}

.wallet-tabs {
    display: flex;
    border-bottom: 1px solid #2a3942;
}

.wallet-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 16px;
    color: var(--secondary-text);
    position: relative;
}

.wallet-tab.active {
    color: var(--primary-color);
}

.wallet-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.wallet-assets {
    display: flex;
    flex-direction: column;
}

.wallet-asset {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    cursor: pointer;
}

.wallet-asset:hover {
    background-color: #2a3942;
}

.asset-icon-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.asset-icon.bitcoin {
    background-color: #f7931a;
}

.asset-icon.ethereum {
    background-color: #627eea;
}

.asset-icon.tether {
    background-color: #26a17b;
}

.asset-icon.xrp {
    background-color: #23292f;
}

.asset-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-name {
    font-size: 16px;
    font-weight: 500;
}

.asset-price {
    font-size: 14px;
    color: var(--secondary-text);
}

.asset-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.asset-amount {
    font-size: 16px;
    font-weight: 500;
}

.asset-value {
    font-size: 14px;
    color: var(--secondary-text);
}

.wallet-support {
    padding: 15px 0;
    text-align: center;
}

.wallet-support a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.wallet-support a:hover {
    text-decoration: underline;
}

/* Contact info modal styles - Updated to match WhatsApp Web */
.contact-info-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    animation: fade-in 0.2s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-info-container {
    width: 400px;
    height: 100%;
    background-color: var(--sidebar-bg);
    animation: slide-in-from-right 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
}

.contact-info-container::-webkit-scrollbar {
    width: 6px;
}

.contact-info-container::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.contact-info-container::-webkit-scrollbar-thumb {
    background-color: #374045;
    border-radius: 6px;
}

.contact-info-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid #2a3942;
    position: sticky;
    top: 0;
    z-index: 10;
}

.contact-back {
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-back i {
    font-size: 24px;
    color: #aebac1;
}

.contact-title {
    font-size: 19px;
    font-weight: 500;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
}

/* Enhanced Contact Profile Styling */
.contact-info-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border-bottom: 1px solid #2a3942;
    background: linear-gradient(to bottom, rgba(42, 57, 66, 0.4), rgba(17, 27, 33, 0));
    text-align: center;
}

.contact-profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background-color: #2a3942;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add subtle highlight effect */
.contact-profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* Mobile responsiveness */
@media screen and (max-width: 767px) {
    .contact-profile-image {
        width: 150px;
        height: 150px;
    }
    .chat-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
    }
}

.contact-profile-name {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.contact-profile-phone {
    color: var(--secondary-text);
    font-size: 16px;
    text-align: center;
}

.contact-section {
    padding: 20px;
    border-bottom: 1px solid #2a3942;
}

.contact-section-title {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.contact-about {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    word-wrap: break-word;
}

.media-section {
    padding-bottom: 15px;
}

.contact-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.contact-section-count {
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.contact-section-count i {
    font-size: 18px;
    margin-left: 5px;
}

.contact-media-preview {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.contact-media-preview::-webkit-scrollbar {
    display: none;
}

.media-item {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #2a3942;
    position: relative;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.media-item:hover img {
    transform: scale(1.05);
}

.contact-actions {
    display: flex;
    flex-direction: column;
}

.contact-action-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #2a3942;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.contact-action-item:hover {
    background-color: #2a3942;
}

.contact-action-item i:first-child {
    width: 24px;
    font-size: 20px;
    color: var(--secondary-text);
    margin-right: 24px;
}

.contact-action-item i.bx-chevron-right {
    margin-left: auto;
    color: var(--secondary-text);
    font-size: 18px;
}

.contact-action-item span {
    flex-grow: 1;
    font-size: 16px;
}

.contact-action-value {
    margin-left: auto;
    margin-right: 8px;
    color: var(--secondary-text);
    font-size: 14px;
}

.contact-action-description {
    font-size: 14px;
    color: var(--secondary-text);
    margin-top: 5px;
    margin-left: 48px;
    display: block;
    width: 100%;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background-color: #2a3942;
    border-radius: 10px;
    margin-left: auto;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-track {
    width: 16px;
    height: 16px;
    background-color: var(--secondary-text);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s, background-color 0.3s;
}

.toggle-switch.active {
    background-color: var(--primary-color);
}

.toggle-switch.active .toggle-track {
    transform: translateX(20px);
    background-color: white;
}

.contact-action-item.warning {
    color: #f15c6d;
}

.contact-action-item.warning i {
    color: #f15c6d;
}

/* Report overlay styles */
.report-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
}

.report-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid #2a3942;
}

.report-back {
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-back i {
    font-size: 24px;
    color: #aebac1;
}

.report-title {
    font-size: 19px;
    font-weight: 500;
}

.report-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.report-description {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-option {
    padding: 12px 0;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.report-option input[type="radio"] {
    display: none;
}

.report-option label {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    position: relative;
    padding-left: 36px;
}

.report-option label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-text);
    border-radius: 50%;
    transition: border-color 0.3s;
}

.report-option input[type="radio"]:checked + label:before {
    border-color: var(--primary-color);
}

.report-option input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.report-actions {
    margin-top: 30px;
    text-align: right;
}

.report-button {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.report-button:hover {
    background-color: #008c6e;
}

.report-button:disabled {
    background-color: #2a3942;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Groups and Communities Styles */
.groups-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
}

.groups-container {
    width: 400px;
    height: 100%;
    background-color: var(--sidebar-bg);
    animation: slide-in 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
}

.groups-container::-webkit-scrollbar {
    width: 6px;
}

.groups-container::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.groups-container::-webkit-scrollbar-thumb {
    background-color: #374045;
    border-radius: 6px;
}

.groups-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid #2a3942;
    position: sticky;
    top: 0;
    z-index: 10;
}

.groups-back {
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.groups-back i {
    font-size: 24px;
    color: #aebac1;
}

.groups-title {
    font-size: 19px;
    font-weight: 500;
    flex-grow: 1;
}

.groups-actions {
    display: flex;
    align-items: center;
}

.groups-actions i {
    font-size: 24px;
    color: #aebac1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.groups-actions i:hover {
    background-color: #374045;
}

.groups-content {
    display: flex;
    flex-direction: column;
}

.groups-tabs {
    display: flex;
    border-bottom: 1px solid #2a3942;
}

.groups-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 16px;
    color: var(--secondary-text);
    position: relative;
    transition: color 0.3s ease;
}

.groups-tab.active {
    color: var(--primary-color);
}

.groups-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.groups-tab-content {
    display: none;
}

.groups-tab-content.active {
    display: block;
}

.groups-list {
    display: flex;
    flex-direction: column;
}

.groups-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    transition: background-color 0.2s ease;
}

.groups-item:hover {
    background-color: #2a3942;
}

.groups-item-icon {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    background-color: #00a884;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.groups-item-icon i {
    font-size: 24px;
    color: white;
}

.groups-item-details {
    flex-grow: 1;
    overflow: hidden;
}

.groups-item-name {
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.groups-item-participants {
    font-size: 14px;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.community-placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #2a3942;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.community-placeholder-icon i {
    font-size: 40px;
    color: #aebac1;
}

.community-placeholder-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.community-placeholder-text {
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 280px;
}

.community-create-button {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.community-create-button:hover {
    background-color: #008c6e;
}

/* New Group Styles */
.new-group-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
}

.new-group-container {
    width: 400px;
    height: 100%;
    background-color: var(--sidebar-bg);
    animation: slide-in 0.3s ease;
    display: flex;
    flex-direction: column;
}

.new-group-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid #2a3942;
}

.new-group-back {
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-group-back i {
    font-size: 24px;
    color: #aebac1;
}

.new-group-title {
    font-size: 19px;
    font-weight: 500;
}

.new-group-content {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
}

.new-group-content::-webkit-scrollbar {
    width: 6px;
}

.new-group-content::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.new-group-content::-webkit-scrollbar-thumb {
    background-color: #374045;
    border-radius: 6px;
}

.new-group-icon-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #2a3942;
}

.new-group-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #2a3942;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.new-group-icon i {
    font-size: 70px;
    color: #aebac1;
}

.new-group-icon-label {
    font-size: 14px;
    color: var(--primary-color);
}

.new-group-form {
    padding: 20px;
    border-bottom: 1px solid #2a3942;
}

.new-group-input {
    margin-bottom: 15px;
}

.new-group-input input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #2a3942;
    outline: none;
    color: var(--text-color);
    font-size: 17px;
    transition: border-color 0.3s;
}

.new-group-input input:focus {
    border-color: var(--primary-color);
}

.new-group-input input::placeholder {
    color: var(--secondary-text);
}

.new-group-description {
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.5;
}

.new-group-participants {
    padding: 20px;
}

.new-group-section-title {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.new-group-search {
    display: flex;
    align-items: center;
    background-color: #202c33;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 20px;
}

.new-group-search i {
    font-size: 20px;
    color: #aebac1;
    margin-right: 12px;
}

.new-group-search input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 15px;
}

.new-group-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details {
    flex-grow: 1;
    overflow: hidden;
}

.contact-name {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-about {
    font-size: 14px;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-checkbox {
    margin-left: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #aebac1;
    border-radius: 50%;
    position: relative;
    transition: border-color 0.2s, background-color 0.2s;
}

.checkbox.checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox.checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.new-group-actions {
    padding: 10px 20px;
    background-color: var(--sidebar-bg);
    border-top: 1px solid #2a3942;
    display: flex;
    justify-content: flex-end;
}

.new-group-create {
    padding: 8px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.new-group-create:hover:not(:disabled) {
    background-color: #008c6e;
}

.new-group-create:disabled {
    background-color: rgba(0, 168, 132, 0.3);
    cursor: not-allowed;
}

/* Message Info Style */
.message-info {
    background-color: rgba(32, 44, 51, 0.6);
    color: var(--secondary-text);
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 7.5px;
    margin: 15px auto;
    text-align: center;
    max-width: 80%;
}

/* Mobile Styles for Groups */
@media screen and (max-width: 767px) {
    .groups-container,
    .new-group-container {
        width: 100%;
    }
    
    .new-group-icon {
        width: 150px;
        height: 150px;
    }
    
    .new-group-icon i {
        font-size: 50px;
    }
    
    .community-placeholder {
        padding: 40px 15px;
    }
    
    .community-placeholder-text {
        max-width: 250px;
    }
}

/* Status/Stories Styles */
.status-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
}

.status-container {
    width: 400px;
    height: 100%;
    background-color: var(--sidebar-bg);
    animation: slide-in 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
}

.status-container::-webkit-scrollbar {
    width: 6px;
}

.status-container::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.status-container::-webkit-scrollbar-thumb {
    background-color: #374045;
    border-radius: 6px;
}

.status-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid #2a3942;
    position: sticky;
    top: 0;
    z-index: 10;
}

.status-back {
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-back i {
    font-size: 24px;
    color: #aebac1;
}

.status-title {
    font-size: 19px;
    font-weight: 500;
    flex-grow: 1;
}

.status-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.status-actions i {
    font-size: 24px;
    color: #aebac1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.status-actions i:hover {
    background-color: #374045;
}

.status-content {
    display: flex;
    flex-direction: column;
}

.status-section-title {
    padding: 15px 20px 5px;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 500;
}

/* My Status Item */
.status-my-item {
    display: flex;
    padding: 12px 20px;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    transition: background-color 0.2s;
}

.status-my-item:hover {
    background-color: #2a3942;
}

.status-profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
}

.status-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-add-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-add-button i {
    color: white;
    font-size: 16px;
}

.status-details {
    flex-grow: 1;
    overflow: hidden;
}

.status-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-time {
    font-size: 13px;
    color: var(--secondary-text);
}

/* Status Updates */
.status-update-item {
    display: flex;
    padding: 12px 20px;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    transition: background-color 0.2s;
}

.status-update-item:hover {
    background-color: #2a3942;
}

.status-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.status-ring.viewed {
    border-color: #6b7c85;
}

/* Status Channels */
.status-channel-item {
    display: flex;
    padding: 12px 20px;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    transition: background-color 0.2s;
}

.status-channel-item:hover {
    background-color: #2a3942;
}

.status-channel-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.status-channel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-channel-details {
    flex-grow: 1;
    overflow: hidden;
}

.status-channel-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-channel-subscribers {
    font-size: 13px;
    color: var(--secondary-text);
}

.status-find-channels {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.status-find-channels:hover {
    background-color: #2a3942;
}

.status-find-channels i {
    font-size: 18px;
}

/* Status Options Overlay */
.options-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in 0.2s ease;
}

.options-container {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-radius: 10px;
    overflow: hidden;
    animation: pop-in 0.3s ease;
}

@keyframes pop-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.option-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.option-item:last-child {
    border-bottom: none;
}

.option-item:hover {
    background-color: #2a3942;
}

.option-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.option-icon i {
    font-size: 20px;
    color: var(--text-color);
}

.option-text {
    font-size: 16px;
}

/* Text Status Creator */
.text-status-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-status-container {
    width: 400px;
    height: 600px;
    background-color: var(--sidebar-bg);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: pop-in 0.3s ease;
}

.text-status-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid #2a3942;
}

.text-status-back {
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-status-back i {
    font-size: 24px;
    color: #aebac1;
}

.text-status-title {
    font-size: 19px;
    font-weight: 500;
    flex-grow: 1;
}

.text-status-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.text-status-preview {
    flex-grow: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.text-status-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.text-status-bg.active {
    display: block;
}

.text-status-bg.bg-1 {
    background: linear-gradient(45deg, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.text-status-bg.bg-2 {
    background: linear-gradient(45deg, #56CCF2, #2F80ED);
}

.text-status-bg.bg-3 {
    background: linear-gradient(45deg, #11998e, #38ef7d);
}

.text-status-bg.bg-4 {
    background: linear-gradient(45deg, #F2994A, #F2C94C);
}

.text-status-bg.bg-5 {
    background: linear-gradient(45deg, #FF512F, #DD2476);
}

.text-status-input-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.text-status-input-container textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    resize: none;
    color: white;
    font-size: 24px;
    text-align: center;
    padding: 20px;
    outline: none;
}

.text-status-input-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.text-status-bg-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bg-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.bg-option.active {
    transform: scale(1.2);
    border: 2px solid white;
}

.bg-option.bg-1 {
    background: linear-gradient(45deg, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.bg-option.bg-2 {
    background: linear-gradient(45deg, #56CCF2, #2F80ED);
}

.bg-option.bg-3 {
    background: linear-gradient(45deg, #11998e, #38ef7d);
}

.bg-option.bg-4 {
    background: linear-gradient(45deg, #F2994A, #F2C94C);
}

.bg-option.bg-5 {
    background: linear-gradient(45deg, #FF512F, #DD2476);
}

.text-status-actions {
    display: flex;
    justify-content: flex-end;
}

.text-status-send {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.text-status-send:hover:not(:disabled) {
    background-color: #008c6e;
}

.text-status-send:disabled {
    background-color: rgba(0, 168, 132, 0.3);
    cursor: not-allowed;
}



/* Updated Settings/Profile Modal Styles */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
    animation: fade-in 0.2s ease;
}

.settings-container {
    width: 400px;
    height: 100%;
    background-color: var(--sidebar-bg);
    animation: slide-in 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
    display: flex;
    flex-direction: column;
}

.settings-container::-webkit-scrollbar {
    width: 6px;
}

.settings-container::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.settings-container::-webkit-scrollbar-thumb {
    background-color: #374045;
    border-radius: 6px;
}

.settings-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid #2a3942;
    position: sticky;
    top: 0;
    z-index: 10;
}

.settings-back {
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-back i {
    font-size: 24px;
    color: #aebac1;
}

.settings-title {
    font-size: 19px;
    font-weight: 500;
    flex-grow: 1;
}

.settings-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.settings-action i {
    font-size: 24px;
    color: #aebac1;
}

.settings-action:hover {
    background-color: #374045;
}

.settings-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.settings-section {
    padding: 10px 0;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-profile {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.settings-profile:hover {
    background-color: #2a3942;
}

.settings-profile-image {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.settings-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-profile-info {
    flex-grow: 1;
}

.settings-profile-name {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 5px;
}

.settings-profile-status {
    color: var(--secondary-text);
    font-size: 14px;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.settings-item:hover {
    background-color: #2a3942;
}

.settings-icon {
    width: 24px;
    margin-right: 28px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.settings-icon i {
    font-size: 20px;
    color: var(--secondary-text);
}

.settings-item-info {
    flex-grow: 1;
}

.settings-item-title {
    font-size: 17px;
    margin-bottom: 3px;
}

.settings-item-description {
    color: var(--secondary-text);
    font-size: 14px;
}

/* Enhanced Profile Page Styles */
.profile-content {
    display: flex;
    flex-direction: column;
    padding: 25px 0;
}

.profile-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 40px;
    position: relative;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-edit {
    position: absolute;
    bottom: 10px;
    right: 85px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.profile-image-edit i {
    font-size: 24px;
    color: white;
}

.profile-form {
    display: flex;
    flex-direction: column;
    padding: 0 25px;
}

.profile-form-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.profile-form-icon {
    width: 24px;
    margin-right: 28px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.profile-form-icon i {
    font-size: 20px;
    color: var(--secondary-text);
}

.profile-form-input {
    flex-grow: 1;
}

.profile-input-label {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 8px;
}

.profile-form-input input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 17px;
    padding: 4px 0;
}

.profile-input-hint {
    color: var(--secondary-text);
    font-size: 13px;
    margin-top: 4px;
}

.profile-form-edit {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.profile-form-edit i {
    font-size: 20px;
    color: var(--secondary-text);
}

.profile-form-edit:hover {
    background-color: #2a3942;
}

.profile-info-text {
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.5;
    padding: 5px 0 20px 52px;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #202c33;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 5000;
    animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
}

.toast-notification.success {
    background-color: #015d4b;
}

.toast-notification.error {
    background-color: #9c1e3c;
}

.toast-notification.warning {
    background-color: #9e660b;
}

.toast-notification i {
    margin-right: 10px;
    font-size: 20px;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* Account Settings Page */
.account-settings-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
}

.account-settings-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.account-section {
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    padding: 15px 0;
}

.account-option {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.account-option:hover {
    background-color: #2a3942;
}

.account-option-text {
    font-size: 17px;
    flex-grow: 1;
}

.account-option-chevron {
    font-size: 20px;
    color: var(--secondary-text);
}

.account-danger-zone {
    margin-top: 20px;
}

.account-danger-option {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    cursor: pointer;
    color: #f15c6d;
    transition: background-color 0.2s ease;
}

.account-danger-option:hover {
    background-color: #2a3942;
}

/* Privacy Settings Page */
.privacy-settings-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
}

.privacy-settings-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.privacy-section {
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    padding: 15px 0;
}

.privacy-section-title {
    padding: 5px 25px 15px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.privacy-option {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.privacy-option:hover {
    background-color: #2a3942;
}

.privacy-option-text {
    font-size: 17px;
    flex-grow: 1;
}

.privacy-option-value {
    font-size: 14px;
    color: var(--secondary-text);
    margin-right: 15px;
}

.privacy-option-chevron {
    font-size: 20px;
    color: var(--secondary-text);
}

.privacy-info {
    padding: 15px 25px;
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.5;
}

/* Notification Settings Page */
.notification-settings-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
}

.notification-settings-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notification-section {
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    padding: 15px 0;
}

.notification-section-title {
    padding: 5px 25px 15px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.notification-option {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-option:hover {
    background-color: #2a3942;
}

.notification-option-text {
    font-size: 17px;
    flex-grow: 1;
}

.notification-info {
    padding: 15px 25px;
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.5;
}

/* Help Center Page */
.help-center-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
}

.help-center-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.help-option {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    transition: background-color 0.2s ease;
}

.help-option:hover {
    background-color: #2a3942;
}

.help-option-icon {
    width: 24px;
    margin-right: 28px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.help-option-icon i {
    font-size: 20px;
    color: var(--secondary-text);
}

.help-option-text {
    font-size: 17px;
    flex-grow: 1;
}

.help-option-chevron {
    font-size: 20px;
    color: var(--secondary-text);
}

.help-app-info {
    text-align: center;
    padding: 30px 25px;
    border-top: 1px solid rgba(134, 150, 160, 0.15);
    margin-top: auto;
}

.help-app-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-app-logo i {
    font-size: 70px;
    color: var(--primary-color);
}

.help-app-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.help-app-version {
    color: var(--secondary-text);
    font-size: 14px;
}

/* Mobile Styles for Settings */
@media screen and (max-width: 767px) {
    .settings-container {
        width: 100%;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-image-edit {
        right: 60px;
    }
    
    .settings-profile-image {
        width: 70px;
        height: 70px;
    }
}
/* Enhanced Wallet Styles */
.wallet-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
    width: 400px;
    animation: slide-in-from-left 0.3s ease;
}
.wallet-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
    animation: fade-in 0.2s ease;
}
.wallet-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid #2a3942;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wallet-back {
    margin-right: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-back i {
    font-size: 24px;
    color: #aebac1;
}

.wallet-title {
    font-size: 19px;
    font-weight: 500;
    flex-grow: 1;
}

.wallet-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.wallet-action i {
    font-size: 24px;
    color: #aebac1;
}

.wallet-action:hover {
    background-color: #374045;
}

.wallet-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
}

.wallet-content::-webkit-scrollbar {
    width: 6px;
}

.wallet-content::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.wallet-content::-webkit-scrollbar-thumb {
    background-color: #374045;
    border-radius: 6px;
}

.wallet-balance-card {
    background: linear-gradient(135deg, #00a884, #008c6e);
    border-radius: 12px;
    padding: 20px;
    margin: 0 15px 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wallet-balance-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.wallet-balance-amount {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
}

.wallet-action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.wallet-action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wallet-action-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.wallet-action-icon i {
    font-size: 22px;
    color: white;
}

.wallet-action-button:hover .wallet-action-icon {
    background-color: rgba(255, 255, 255, 0.4);
}

.wallet-action-label {
    font-size: 12px;
    text-align: center;
}

.wallet-section-title {
    padding: 15px 20px 10px;
    font-size: 16px;
    font-weight: 500;
}

/* Payment Services Grid */
.wallet-services {
    margin-bottom: 20px;
}

.wallet-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.wallet-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wallet-service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.wallet-service-icon i {
    font-size: 24px;
    color: white;
}

.wallet-service-item:hover .wallet-service-icon {
    transform: scale(1.05);
}

.wallet-service-name {
    font-size: 12px;
    text-align: center;
}

/* Service Icon Colors */
.wallet-service-icon.blue {
    background-color: #2196F3;
}

.wallet-service-icon.green {
    background-color: #4CAF50;
}

.wallet-service-icon.purple {
    background-color: #9C27B0;
}

.wallet-service-icon.orange {
    background-color: #FF9800;
}

.wallet-service-icon.red {
    background-color: #F44336;
}

.wallet-service-icon.teal {
    background-color: #009688;
}

.wallet-service-icon.pink {
    background-color: #E91E63;
}

.wallet-service-icon.grey {
    background-color: #607D8B;
}

/* Transaction List */
.wallet-transactions {
    margin-bottom: 20px;
}

.wallet-transaction-list {
    display: flex;
    flex-direction: column;
}

.wallet-transaction-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    transition: background-color 0.2s ease;
}

.wallet-transaction-item:hover {
    background-color: #2a3942;
}

.wallet-transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.wallet-transaction-icon i {
    font-size: 20px;
    color: white;
}

.wallet-transaction-icon.green {
    background-color: #4CAF50;
}

.wallet-transaction-icon.blue {
    background-color: #2196F3;
}

.wallet-transaction-icon.purple {
    background-color: #9C27B0;
}

.wallet-transaction-icon.orange {
    background-color: #FF9800;
}

.wallet-transaction-details {
    flex-grow: 1;
}

.wallet-transaction-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.wallet-transaction-date {
    font-size: 13px;
    color: var(--secondary-text);
}

.wallet-transaction-amount {
    font-weight: 500;
    font-size: 16px;
}

.wallet-transaction-amount.income {
    color: #4CAF50;
}

.wallet-transaction-amount.expense {
    color: #F44336;
}

/* QR Pay Screen */
.qr-pay-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
}

.qr-pay-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-code-container {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.qr-code {
    width: 250px;
    height: 250px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNjAgMTYwIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTYwIiBoZWlnaHQ9IjE2MCIgZmlsbD0id2hpdGUiLz48ZyB0cmFuc2Zvcm09InNjYWxlKDQpIj48cmVjdCB3aWR0aD0iNiIgaGVpZ2h0PSI2Ii8+PHJlY3QgeD0iMzQiIHdpZHRoPSI2IiBoZWlnaHQ9IjYiLz48cmVjdCB5PSIzNCIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjgiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxNCIgd2lkdGg9IjIiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjE4IiB3aWR0aD0iOCIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjgiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI4IiB5PSI0IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTIiIHk9IjQiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiLz48cmVjdCB4PSIxOCIgeT0iNCIgd2lkdGg9IjQiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjI0IiB5PSI0IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMzAiIHk9IjQiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiLz48cmVjdCB4PSI4IiB5PSI2IiB3aWR0aD0iNCIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTYiIHk9IjYiIHdpZHRoPSIyIiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyMCIgeT0iNiIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjI0IiB5PSI2IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjgiIHk9IjYiIHdpZHRoPSI2IiBoZWlnaHQ9IjIiLz48cmVjdCB4PSI4IiB5PSI4IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTIiIHk9IjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiLz48cmVjdCB4PSIyMCIgeT0iOCIgd2lkdGg9IjQiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjI2IiB5PSI4IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMzAiIHk9IjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiLz48cmVjdCB4PSI4IiB5PSIxMCIgd2lkdGg9IjQiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjI2IiB5PSIxMCIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjMwIiB5PSIxMCIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTIiIHk9IjEyIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTYiIHk9IjEyIiB3aWR0aD0iMiIgaGVpZ2h0PSI4Ii8+PHJlY3QgeD0iMjYiIHk9IjEyIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMzAiIHk9IjEyIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iOCIgeT0iMTQiIHdpZHRoPSI0IiBoZWlnaHQ9IjIiLz48cmVjdCB4PSIxOCIgeT0iMTQiIHdpZHRoPSI2IiBoZWlnaHQ9IjIiLz48cmVjdCB4PSIyNiIgeT0iMTQiIHdpZHRoPSI2IiBoZWlnaHQ9IjIiLz48cmVjdCB4PSI4IiB5PSIxNiIgd2lkdGg9IjYiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjE4IiB5PSIxNiIgd2lkdGg9IjQiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjI0IiB5PSIxNiIgd2lkdGg9IjIiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjI4IiB5PSIxNiIgd2lkdGg9IjQiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjgiIHk9IjE4IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTIiIHk9IjE4IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjAiIHk9IjE4IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjgiIHk9IjE4IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMzIiIHk9IjE4IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeT0iMTgiIHdpZHRoPSIyIiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0IiB5PSIxOCIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjgiIHk9IjIwIiB3aWR0aD0iNCIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTgiIHk9IjIwIiB3aWR0aD0iNiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjYiIHk9IjIwIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMzAiIHk9IjIwIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTgiIHk9IjIyIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjIiIHk9IjIyIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjYiIHk9IjIyIiB3aWR0aD0iNiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMzQiIHk9IjIyIiB3aWR0aD0iMiIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMCIgeT0iMjIiIHdpZHRoPSI2IiBoZWlnaHQ9IjIiLz48cmVjdCB4PSI4IiB5PSIyMiIgd2lkdGg9IjgiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjAiIHk9IjI0IiB3aWR0aD0iMiIgaGVpZ2h0PSI4Ii8+PHJlY3QgeD0iNCIgeT0iMjQiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiLz48cmVjdCB4PSI4IiB5PSIyNCIgd2lkdGg9IjIiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjEyIiB5PSIyNCIgd2lkdGg9IjIiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjE2IiB5PSIyNCIgd2lkdGg9IjQiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjIyIiB5PSIyNCIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjI2IiB5PSIyNCIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjMwIiB5PSIyNCIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjQiIHk9IjI2IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTYiIHk9IjI2IiB3aWR0aD0iMiIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjAiIHk9IjI2IiB3aWR0aD0iMTIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjM0IiB5PSIyNiIgd2lkdGg9IjIiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjQiIHk9IjI4IiB3aWR0aD0iMiIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjAiIHk9IjI4IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjQiIHk9IjI4IiB3aWR0aD0iMiIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjgiIHk9IjI4IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMCIgeT0iMzIiIHdpZHRoPSIyIiBoZWlnaHQ9IjYiLz48cmVjdCB4PSI2IiB5PSIzMiIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjEwIiB5PSIzMiIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjE0IiB5PSIzMiIgd2lkdGg9IjIiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjE4IiB5PSIzMiIgd2lkdGg9IjQiIGhlaWdodD0iMiIvPjxyZWN0IHg9IjgiIHk9IjM0IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTQiIHk9IjM0IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMTgiIHk9IjM0IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjIiIHk9IjM0IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMjYiIHk9IjM0IiB3aWR0aD0iNCIgaGVpZ2h0PSIyIi8+PHJlY3QgeD0iMzQiIHk9IjM0IiB3aWR0aD0iNiIgaGVpZ2h0PSI2Ii8+PHJlY3QgeD0iMCIgeT0iMzgiIHdpZHRoPSI2IiBoZWlnaHQ9IjIiLz48cmVjdCB4PSIxNCIgeT0iMzgiIHdpZHRoPSI4IiBoZWlnaHQ9IjIiLz48cmVjdCB4PSIyNCIgeT0iMzgiIHdpZHRoPSI2IiBoZWlnaHQ9IjIiLz48L2c+PC9zdmc+');
    background-size: contain;
}

.qr-code-info {
    color: var(--secondary-text);
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
}

.qr-refresh-button {
    margin-top: 15px;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.qr-refresh-button:hover {
    background-color: #008c6e;
}

.qr-refresh-button i {
    font-size: 18px;
}

/* Top-up Screen */
.topup-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
}

.topup-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.topup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topup-amount-container {
    background-color: #1f2c33;
    border-radius: 8px;
    padding: 15px;
}

.topup-label {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.topup-amount-input {
    display: flex;
    align-items: center;
}

.topup-amount-input span {
    font-size: 20px;
    margin-right: 8px;
    font-weight: 500;
}

.topup-amount-input input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 500;
    padding: 5px 0;
}

.topup-quick-amounts {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.topup-quick-amount {
    padding: 8px 12px;
    border-radius: 20px;
    background-color: #2a3942;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.topup-quick-amount:hover {
    background-color: #374045;
}

.topup-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topup-method-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #1f2c33;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.topup-method-item:hover {
    background-color: #2a3942;
}

.topup-method-item.active {
    border: 1px solid var(--primary-color);
}

.topup-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.topup-method-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.topup-method-details {
    flex-grow: 1;
}

.topup-method-name {
    font-size: 16px;
    margin-bottom: 4px;
}

.topup-method-description {
    font-size: 13px;
    color: var(--secondary-text);
}

.topup-method-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #aebac1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topup-method-item.active .topup-method-radio {
    border-color: var(--primary-color);
}

.topup-method-item.active .topup-method-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.topup-action {
    margin-top: 30px;
    padding: 15px 0;
    background-color: var(--sidebar-bg);
    border-top: 1px solid #2a3942;
}

.topup-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.topup-button:hover:not(:disabled) {
    background-color: #008c6e;
}

.topup-button:disabled {
    background-color: rgba(0, 168, 132, 0.3);
    cursor: not-allowed;
}

/* Transfer Screen */
.transfer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sidebar-bg);
}

.transfer-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.transfer-search-container {
    background-color: #202c33;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.transfer-search-container i {
    color: #aebac1;
    font-size: 20px;
    margin-right: 12px;
}

.transfer-search-container input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 15px;
}

.transfer-contacts {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374045 var(--sidebar-bg);
}

.transfer-contacts::-webkit-scrollbar {
    width: 6px;
}

.transfer-contacts::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.transfer-contacts::-webkit-scrollbar-thumb {
    background-color: #374045;
    border-radius: 6px;
}

.transfer-section-title {
    padding: 5px 0 10px;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 500;
}

.transfer-contact-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(134, 150, 160, 0.15);
    transition: background-color 0.2s ease;
}

.transfer-contact-item:hover {
    background-color: #2a3942;
}

.transfer-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.transfer-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transfer-contact-info {
    flex-grow: 1;
}

.transfer-contact-name {
    font-size: 16px;
    margin-bottom: 4px;
}

.transfer-contact-number {
    font-size: 13px;
    color: var(--secondary-text);
}

/* Mobile Styles for Wallet */
@media screen and (max-width: 767px) {
    .wallet-services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .wallet-service-icon {
        width: 45px;
        height: 45px;
    }
    
    .wallet-service-icon i {
        font-size: 20px;
    }
    
    .wallet-service-name {
        font-size: 11px;
    }
    
    .qr-code {
        width: 200px;
        height: 200px;
    }
    
    .transfer-contact-avatar {
        width: 40px;
        height: 40px;
    }
}
/* Mobile Styles for ChatPay */
@media screen and (max-width: 767px) {
    /* Basic Layout Changes */
    body {
        flex-direction: column;
        overflow: hidden;
    }
    
    .left-sidebar {
        display: none; /* Hide sidebar on mobile */
    }
    
    .chat-history, .chat-area {
        width: 100%;
        min-width: 100%;
    }
    
    /* Chat History Styles */
    .chat-history {
        height: calc(100vh - 60px);
    }
    
    /* Chat Area Styles */
    .chat-area {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1500;
        display: none;
    }
    
    .chat-area.active {
        transform: translateX(0);
        display: flex;
    }
    
    /* New mobile chat header structure */
    .chat-area-left {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .back-btn i {
        font-size: 24px;
        color: #aebac1;
    }
    
    /* Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background-color: var(--sidebar-bg);
        border-top: 1px solid #2a3942;
        height: 60px;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        cursor: pointer;
        color: var(--secondary-text);
        padding: 5px 0;
        transition: color 0.2s ease;
    }
    
    .nav-item i {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
    
    .nav-item.active {
        color: var(--primary-color);
    }
    
    /* Message bubble adjustments for mobile */
    .message {
        max-width: 100%;
    }
    
    /* Contact info panel adjustments */
    .contact-info-overlay,
    .search-overlay,
    .settings-overlay,
    .status-overlay,
    .groups-overlay {
        z-index: 2500;
    }
    
    .contact-info-container,
    .search-overlay,
    .settings-container,
    .status-container,
    .groups-container,
    .new-group-container,
    .wallet-container {
        width: 100%;
    }
    
    .contact-profile-picture {
        width: 150px;
        height: 150px;
    }
    
    /* Wallet container mobile position */
    .wallet-container {
        animation: slide-in-from-right 0.3s ease;
    }
    
    .wallet-overlay {
        justify-content: flex-end;
    }
    
    /* Media grid smaller items */
    .media-item {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    
    /* All modals from right on mobile */
    @keyframes slide-in-from-right {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    /* Mobile body state for showing chat */
    body.view-chat .chat-history {
        display: none;
    }
    
    body.view-chat .mobile-bottom-nav {
        display: none;
    }
    
    /* Chat input area adjustments */
    .chat-input-area {
        padding: 8px 10px;
    }
    
    /* Overlay fullscreen on mobile */
    .new-chat-container {
        width: 100%;
    }
    
    .text-status-container {
        height: 100vh;
        width: 100%;
        border-radius: 0;
    }
    
    /* QR code smaller on mobile */
    .qr-code {
        width: 180px;
        height: 180px;
    }
    
    /* Smaller header icons */
    .chat-area-icons i, .header-icons i {
        width: 35px;
        height: 35px;
    }
    
    /* Smaller input in status viewer */
    .status-reply-container {
        padding: 6px 12px;
    }
    
    /* Smaller transaction items */
    .wallet-transaction-icon {
        width: 35px;
        height: 35px;
    }
    
    /* Smaller profile image in settings */
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-image-edit {
        right: 60px;
        width: 40px;
        height: 40px;
    }
    
    /* Groups and channels adjustments */
    .groups-tab {
        padding: 12px 0;
    }
    
    /* Status viewer container */
    .status-viewer-container {
        width: 100%;
        max-width: none;
    }
    
    /* Toast positioning on mobile */
    .toast-notification {
        max-width: 90%;
    }
    
    /* Payment Services Grid - 4 columns on mobile */
    .wallet-services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    /* Smaller service icons */
    .wallet-service-icon {
        width: 45px;
        height: 45px;
    }
    
    /* Entrypoint animation */
    @keyframes mobile-entry {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .chat-history {
        animation: mobile-entry 0.3s ease;
    }
    
    /* Fix for chat messages scrolling on mobile */
    .chat-messages {
        padding-bottom: 60px; /* Add extra padding at bottom for better scrolling */
    }
    
    /* Mobile search specific styles */
    .search-overlay {
        width: 100%;
    }
    
    .search-input-container {
        height: 35px;
    }
    
    /* Fix dropdown positioning for mobile */
    .dropdown-menu {
        right: 0;
    }
    
    /* Chat item adjustments for better touch targets */
    .chat-item {
        padding: 12px 16px;
    }
    
    /* Fix for notification media panel */
    .notification-settings-container,
    .account-settings-container,
    .privacy-settings-container,
    .help-center-container,
    .qr-pay-container,
    .topup-container,
    .transfer-container,
    .report-container {
        width: 100%;
    }
    
    /* Extra bottom space for keyboard on mobile */
    .chat-input {
        padding: 8px 10px;
    }
    
    /* Fix for bottom margin when keyboard is open */
    @supports (-webkit-touch-callout: none) {
        .chat-input-area {
            padding-bottom: env(safe-area-inset-bottom, 8px);
        }
        
        .mobile-bottom-nav {
            height: calc(60px + env(safe-area-inset-bottom, 0px));
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }
    }

    /* Better behavior when opening overlays */
    body.overlay-open {
        overflow: hidden;
    }
    
    /* More touch-friendly checkboxes and radio buttons */
    .checkbox {
        width: 22px;
        height: 22px;
    }
    
    .report-option label:before {
        width: 22px;
        height: 22px;
    }
    
    .report-option label:after {
        width: 12px;
        height: 12px;
        left: 5px;
    }
}

/* Small phones */
@media screen and (max-width: 360px) {
    /* Smaller text for very small screens */
    .chat-name {
        font-size: 15px;
    }
    
    .chat-message {
        font-size: 13px;
    }
    
    /* Smaller navigation items */
    .nav-item i {
        font-size: 22px;
    }
    
    .nav-item span {
        font-size: 10px;
    }
    
    /* Tighter header spacing */
    .chat-header {
        padding: 8px 12px;
    }
    
    /* Smaller wallet action grid */
    .wallet-action-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Smaller wallet services grid */
    .wallet-services-grid {
        gap: 8px;
    }
    
    .wallet-service-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Smaller QR code */
    .qr-code {
        width: 160px;
        height: 160px;
    }
}

/* Fix for landscape mode */
@media screen and (max-width: 767px) and (orientation: landscape) {
    /* Bottom nav smaller in landscape */
    .mobile-bottom-nav {
        height: 50px;
    }
    
    .nav-item i {
        margin-bottom: 2px;
    }
    
    /* Optimize vertical space */
    .chat-header, 
    .chat-area-header {
        height: 50px;
    }
    
    /* Profile images smaller in landscape */
    .profile-image, 
    .contact-profile-picture {
        width: 100px;
        height: 100px;
    }
    
    /* Status viewer adjustments */
    .status-viewer-header, 
    .status-viewer-footer {
        padding: 8px 10px;
    }
}

/* Animation for chat open/close on mobile */
.slide-in-right {
    animation: slide-in-from-right 0.3s forwards;
}

.slide-out-right {
    animation: slide-out-to-right 0.3s forwards;
}

@keyframes slide-out-to-right {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    color: var(--secondary-text);
    animation: fade-in 0.3s ease;
}

.no-results-icon {
    font-size: 70px;
    color: #374045;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-results-text {
    font-size: 16px;
    line-height: 1.5;
    max-width: 280px;
}

.no-results-hint {
    font-size: 14px;
    margin-top: 10px;
    color: #8696a0;
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {
    .no-results-message {
        padding: 25px 15px;
    }
    
    .no-results-icon {
        font-size: 60px;
    }
    
    .no-results-text {
        font-size: 15px;
    }
}

/* Message Selection Mode Styles */
.message-selection-mode .chat-area-header {
    background-color: var(--primary-color);
}

.message-selection-mode .chat-area-contact,
.message-selection-mode .chat-area-icons {
    display: none;
}

.message-selection-mode .selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
}

.selection-header {
    display: none;
}

.message-selection-mode .selection-header {
    display: flex;
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.selection-actions i {
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.selection-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selection-back {
    cursor: pointer;
}

.selection-back i {
    font-size: 24px;
    color: white;
}

.selection-count {
    font-size: 19px;
    font-weight: 500;
    color: white;
}

.message-selection-mode .chat-input-area {
    display: none;
}

.message-selection-mode .message {
    position: relative;
    padding-left: 40px;
}

.message-checkbox {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #aebac1;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.message-selection-mode .message-checkbox {
    display: flex;
}

.message.selected .message-checkbox {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.message.selected .message-checkbox:after {
    content: '\2713';
    color: white;
    font-size: 12px;
}

.selection-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: var(--sidebar-bg);
    display: none;
    justify-content: space-evenly;
    border-top: 1px solid #2a3942;
    z-index: 10;
}

.message-selection-mode .selection-footer {
    display: flex;
}

.selection-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.selection-action-btn i {
    font-size: 24px;
    color: #aebac1;
}

.selection-action-btn span {
    font-size: 13px;
    color: var(--text-color);
}

/* Mobile adjustments for message selection mode */
@media screen and (max-width: 767px) {
    .message-selection-mode .message {
        padding-left: 35px;
    }
    
    .message-checkbox {
        left: 8px;
        width: 18px;
        height: 18px;
    }
    
    .selection-footer {
        padding: 10px;
    }
    
    .selection-action-btn i {
        font-size: 22px;
    }
    
    .selection-action-btn span {
        font-size: 11px;
    }
}

/* Confirmation dialog */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.2s ease;
}

.confirm-dialog-content {
    background-color: var(--sidebar-bg);
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.confirm-dialog-title {
    font-size: 18px;
    font-weight: 500;
    padding: 20px 20px 10px;
}

.confirm-dialog-message {
    font-size: 14px;
    color: var(--secondary-text);
    padding: 0 20px 20px;
}

.confirm-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    gap: 15px;
    border-top: 1px solid #2a3942;
}

.confirm-dialog-buttons button {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.confirm-cancel-btn {
    color: var(--text-color);
}

.confirm-cancel-btn:hover {
    background-color: #2a3942;
}

.confirm-ok-btn {
    color: #f44336;
}

.confirm-ok-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

/* Style for starred messages */
.message.starred {
    position: relative;
}

.message.starred::after {
    content: '\ea0f';
    font-family: 'boxicons';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffbd2e;
    font-size: 16px;
}

/* Additional selection dropdown styling */
.selection-dropdown {
    position: absolute;
    z-index: 100;
}

/* Status Viewer Enhancements */
.status-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in 0.2s ease;
}

.status-viewer-container {
    width: 100%;
    height: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.status-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.status-viewer-profile {
    display: flex;
    align-items: center;
}

.status-viewer-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.status-viewer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-viewer-info {
    display: flex;
    flex-direction: column;
}

.status-viewer-name {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.status-viewer-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.status-viewer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.status-viewer-close i {
    font-size: 28px;
    color: white;
}

.status-viewer-content {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 120px); /* Adjust height to leave space for header and footer */
    margin-top: 60px; /* Space for header */
}

.status-progress-bar {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    display: flex;
    gap: 4px;
    padding: 0 15px;
    z-index: 11;
}

.status-progress-segment {
    height: 100%;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 1.5px;
    overflow: hidden;
    position: relative;
}

.status-progress-segment.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: white;
    animation: progress-fill 5s linear forwards;
}

@keyframes progress-fill {
    from { width: 0; }
    to { width: 100%; }
}

.status-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.status-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.status-navigation {
    position: absolute;
    top: 60px; /* Below header */
    left: 0;
    width: 100%;
    height: calc(100% - 130px); /* Space between header and reply input */
    display: flex;
}

.status-nav-prev, .status-nav-next {
    flex: 1;
    height: 100%;
    cursor: pointer;
}

.status-viewer-footer {
    padding: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.status-reply-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-reply-container input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 8px 0;
    font-size: 15px;
}

.status-reply-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.status-reply-container i {
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Mobile View for Status */
@media screen and (max-width: 767px) {
    .status-viewer-container {
        max-width: none;
    }
    
    .status-image-container {
        padding: 10px;
    }
    
    .status-viewer-content {
        height: calc(100% - 110px);
    }
    
    .status-navigation {
        height: calc(100% - 120px);
    }
}

/* New Chat Overlay */
.new-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    
    animation: fade-in 0.2s ease;
}

.new-chat-container {
    width: 400px;
    height: 100%;
    background-color: var(--sidebar-bg);
    overflow: auto;
    animation: slide-in-from-left 0.3s ease;
}

.new-chat-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--sidebar-bg);
    height: 60px;
    border-bottom: 1px solid #2a3942;
}

.new-chat-back {
    cursor: pointer;
}

.new-chat-back i {
    font-size: 24px;
    color: #aebac1;
}

.new-chat-title h3 {
    font-size: 19px;
    font-weight: 500;
}

.new-chat-search {
    padding: 12px;
    border-bottom: 1px solid #2a3942;
}

.new-chat-contacts {
    overflow: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-item:hover {
    background-color: #2a3942;
}

.contact-avatar {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details {
    flex-grow: 1;
    border-bottom: 1px solid #2a3942;
    padding-bottom: 12px;
}

.contact-item:last-child .contact-details {
    border-bottom: none;
}

.contact-name {
    font-size: 16px;
    margin-bottom: 3px;
}

.contact-about {
    color: var(--secondary-text);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-chat-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--secondary-text);
    text-align: center;
    padding: 20px;
}

.empty-chat-message i {
    font-size: 80px;
    margin-bottom: 20px;
    color: #374045;
    opacity: 0.6;
}

.empty-chat-message p {
    font-size: 16px;
    max-width: 250px;
}

/* Mobile responsiveness */
@media screen and (max-width: 767px) {
    .new-chat-container {
        width: 100%;
    }
}