/* =============================================
   LOGITERA CHAT SYSTEM - DARK THEME
   Modern messaging interface with Reminder-like styling
   Prefix: Communication_MainTab
   ============================================= */

/* Reset & Base */
.Communication_MainTab-body * {
    box-sizing: border-box;
}

/* =============================================
   CHAT TRIGGER BUTTON (Layout'ta)
   ============================================= */

.Communication_MainTab-trigger-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: white;
    border: none;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.Communication_MainTab-trigger-button:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.5);
}

.Communication_MainTab-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #1e1e1e;
}

/* =============================================
   CHAT MODAL
   ============================================= */

.Communication_MainTab-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.Communication_MainTab-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.Communication_MainTab-modal-content {
    position: relative;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatModalSlideIn 0.3s ease-out;
}

@keyframes chatModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =============================================
   MODAL HEADER
   ============================================= */

.Communication_MainTab-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(165, 180, 252, 0.08) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(165, 180, 252, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.Communication_MainTab-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.Communication_MainTab-header-left i {
    font-size: 24px;
    color: #a5b4fc;
}

.Communication_MainTab-header-left h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #e4e4e7;
    letter-spacing: -0.02em;
}

.Communication_MainTab-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.Communication_MainTab-header-btn,
.Communication_MainTab-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

.Communication_MainTab-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.Communication_MainTab-add-member-btn {
    color: #10b981 !important;
}

.Communication_MainTab-add-member-btn:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #6ee7b7 !important;
}

.Communication_MainTab-leave-group-btn {
    color: #ef4444 !important;
}

.Communication_MainTab-leave-group-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

/* =============================================
   CHAT CONTAINER (Sidebar + Main)
   ============================================= */

.Communication_MainTab-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* =============================================
   SIDEBAR (Conversation List)
   ============================================= */

.Communication_MainTab-sidebar {
    width: 360px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
}

/* Search */
.Communication_MainTab-search {
    position: relative;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.Communication_MainTab-search i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
}

.Communication_MainTab-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-search input::placeholder {
    color: #71717a;
}

.Communication_MainTab-search input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Tabs */
.Communication_MainTab-tabs {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.Communication_MainTab-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
}

.Communication_MainTab-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: white;
}

/* Conversation List */
.Communication_MainTab-conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.Communication_MainTab-conversation-list::-webkit-scrollbar {
    width: 6px;
}

.Communication_MainTab-conversation-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.Communication_MainTab-conversation-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.Communication_MainTab-no-conversations {
    text-align: center;
    padding: 40px 20px;
    color: #71717a;
    font-size: 14px;
}

/* Conversation Item */
.Communication_MainTab-conversation-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
}

.Communication_MainTab-conversation-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.Communication_MainTab-conversation-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid #6366f1;
}

.Communication_MainTab-conversation-item.pinned::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f59e0b;
    border-radius: 0 2px 2px 0;
}

.Communication_MainTab-conversation-item.muted {
    opacity: 0.6;
}

.Communication_MainTab-conversation-item.muted .Communication_MainTab-conversation-name,
.Communication_MainTab-conversation-item.muted .Communication_MainTab-conversation-preview {
    color: rgba(255, 255, 255, 0.5);
}

.Communication_MainTab-conversation-item.muted .Communication_MainTab-conversation-avatar::after {
    content: '\f1f6';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #27272a;
    color: #94a3b8;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #27272a;
}

/* =============================================
   ARCHIVE SECTION
   ============================================= */

/* Archive Section Link (in conversation list) */
.Communication_MainTab-archive-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #a5b4fc;
}

.Communication_MainTab-archive-section:hover {
    background: rgba(99, 102, 241, 0.1);
}

.Communication_MainTab-archive-section i {
    font-size: 16px;
    color: #6366f1;
}

.Communication_MainTab-archive-section span {
    font-size: 14px;
    font-weight: 500;
}

.Communication_MainTab-archive-count {
    margin-left: auto;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

/* Archive Header (when viewing archived) */
.Communication_MainTab-archive-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.Communication_MainTab-archive-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.Communication_MainTab-archive-header i {
    font-size: 16px;
    color: #a5b4fc;
    transition: transform 0.2s ease;
}

.Communication_MainTab-archive-header:hover i {
    transform: translateX(-3px);
}

.Communication_MainTab-archive-header span {
    font-size: 15px;
    font-weight: 600;
}

.Communication_MainTab-archive-header .Communication_MainTab-archive-count {
    background: rgba(99, 102, 241, 0.3);
}

/* Avatar */
.Communication_MainTab-conversation-avatar,
.Communication_MainTab-message-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.2);
}

.Communication_MainTab-message-avatar {
    width: 32px;
    height: 32px;
}

.Communication_MainTab-conversation-avatar img,
.Communication_MainTab-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Communication_MainTab-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.Communication_MainTab-online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1e1e1e;
    background: #71717a;
}

.Communication_MainTab-online-indicator.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Conversation Info */
.Communication_MainTab-conversation-details {
    flex: 1;
    min-width: 0;
}

.Communication_MainTab-conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.Communication_MainTab-conversation-name {
    font-size: 14px;
    font-weight: 600;
    color: #e4e4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Communication_MainTab-conversation-time {
    font-size: 12px;
    color: #71717a;
    flex-shrink: 0;
    margin-left: 8px;
}

.Communication_MainTab-conversation-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.Communication_MainTab-preview-text {
    font-size: 13px;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.Communication_MainTab-unread-count {
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

/* =============================================
   MAIN CHAT AREA
   ============================================= */

.Communication_MainTab-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
}

/* Empty State */
.Communication_MainTab-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #71717a;
    gap: 16px;
}

.Communication_MainTab-empty-state i {
    font-size: 64px;
    opacity: 0.3;
    color: #a5b4fc;
}

.Communication_MainTab-empty-state h3 {
    margin: 0;
    font-size: 20px;
    color: #e4e4e7;
}

.Communication_MainTab-empty-state p {
    margin: 0;
    font-size: 14px;
}

.Communication_MainTab-btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* =============================================
   CHAT VIEW
   ============================================= */

.Communication_MainTab-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* IMPORTANT: Enables flex scrolling */
}

/* Chat View Header */
.Communication_MainTab-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0; /* IMPORTANT: Prevents header from shrinking */
}

.Communication_MainTab-view-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.Communication_MainTab-view-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.2);
}

.Communication_MainTab-view-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Communication_MainTab-group-avatar-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 18px;
}

.Communication_MainTab-view-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #e4e4e7;
}

.Communication_MainTab-view-status {
    font-size: 13px;
    color: #94a3b8;
}

.Communication_MainTab-view-status.online-status {
    color: #10b981;
}

.Communication_MainTab-view-status.offline-status {
    color: #94a3b8;
}

.Communication_MainTab-view-header-right {
    display: flex;
    gap: 8px;
}

/* =============================================
   MESSAGES CONTAINER - SCROLLABLE
   ============================================= */

.Communication_MainTab-messages {
    flex: 1; /* Takes remaining space */
    overflow-y: auto; /* IMPORTANT: Enables scrolling */
    overflow-x: hidden;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0; /* IMPORTANT: Enables flex scrolling */
}

.Communication_MainTab-messages::-webkit-scrollbar {
    width: 8px;
}

.Communication_MainTab-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.Communication_MainTab-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.Communication_MainTab-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.Communication_MainTab-no-messages {
    text-align: center;
    padding: 40px 20px;
    color: #71717a;
    font-size: 14px;
}

/* Date Separator */
.Communication_MainTab-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.Communication_MainTab-date-separator span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
}

/* Message */
.Communication_MainTab-message {
    display: flex;
    gap: 12px;
    max-width: 70%;
    position: relative; /* IMPORTANT: For absolute positioned checkbox */
}

.Communication_MainTab-message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.Communication_MainTab-message.received {
    align-self: flex-start;
}

.Communication_MainTab-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.Communication_MainTab-message.sent .Communication_MainTab-message-content {
    align-items: flex-end;
}

.Communication_MainTab-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.Communication_MainTab-message-sender {
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
}

.Communication_MainTab-message-time {
    font-size: 12px;
    color: #71717a;
}

/* Message Bubble */
.Communication_MainTab-message-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    max-width: 550px;
}

.Communication_MainTab-message.received .Communication_MainTab-message-bubble {
    background: rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    border-bottom-left-radius: 4px;
}

.Communication_MainTab-message.sent .Communication_MainTab-message-bubble {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Message Status */
.Communication_MainTab-message-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #71717a;
}

.Communication_MainTab-message-status i {
    font-size: 14px;
}

.Communication_MainTab-message-status i.read {
    color: #a5b4fc;
}

.Communication_MainTab-message-status .Communication_MainTab-read-by {
    color: #a5b4fc;
    font-size: 11px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

/* Message Attachment (Image) */
.Communication_MainTab-message-attachment {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.Communication_MainTab-message-attachment img {
    width: 100%;
    height: auto;
    display: block;
}

/* Message File */
.Communication_MainTab-message-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

.Communication_MainTab-message-file i {
    font-size: 24px;
    color: #ef4444;
}

.Communication_MainTab-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.Communication_MainTab-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #e4e4e7;
}

.Communication_MainTab-file-size {
    font-size: 12px;
    color: #a1a1aa;
}

.Communication_MainTab-file-download {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-file-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* System Message */
.Communication_MainTab-system-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 13px;
    color: #a1a1aa;
    align-self: center;
}

/* Typing Indicator in Messages */
.Communication_MainTab-typing-indicator-message {
    display: flex;
    gap: 12px;
    align-self: flex-start;
}

.Communication_MainTab-typing-dots {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
}

.Communication_MainTab-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #71717a;
    animation: typingDots 1.4s infinite;
}

.Communication_MainTab-typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.Communication_MainTab-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.Communication_MainTab-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* =============================================
   MESSAGE INPUT - FIXED AT BOTTOM
   ============================================= */

.Communication_MainTab-input-container {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0; /* IMPORTANT: Prevents input from shrinking */
}

/* Emoji Picker */
.Communication_MainTab-emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 24px;
    width: 320px;
    max-height: 360px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
    flex-direction: column;
    margin-bottom: 8px;
    z-index: 1000;
    animation: Communication_MainTab_emojiSlideUp 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes Communication_MainTab_emojiSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.Communication_MainTab-emoji-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.Communication_MainTab-emoji-header span {
    font-size: 14px;
    font-weight: 600;
    color: #e4e4e7;
}

.Communication_MainTab-emoji-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-emoji-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

.Communication_MainTab-emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 12px;
    overflow-y: auto;
    max-height: 280px;
}

.Communication_MainTab-emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.Communication_MainTab-emoji-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.Communication_MainTab-emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.Communication_MainTab-emoji-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.Communication_MainTab-emoji-item {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.Communication_MainTab-emoji-item:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.15);
}

.Communication_MainTab-emoji-item:active {
    transform: scale(1.05);
}

/* Reply Preview */
.Communication_MainTab-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid #6366f1;
}

.Communication_MainTab-reply-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.Communication_MainTab-reply-label {
    font-size: 12px;
    font-weight: 600;
    color: #a5b4fc;
}

.Communication_MainTab-reply-text {
    font-size: 13px;
    color: #a1a1aa;
}

.Communication_MainTab-reply-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-reply-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

/* Input Wrapper */
.Communication_MainTab-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 16px 24px;
}

.Communication_MainTab-input-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-input-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

.Communication_MainTab-input-field {
    flex: 1;
    position: relative;
}

.Communication_MainTab-input-field textarea {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-input-field textarea::placeholder {
    color: #71717a;
}

.Communication_MainTab-input-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.Communication_MainTab-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.Communication_MainTab-send-btn:active {
    transform: scale(0.95);
}

/* =============================================
   NEW CONVERSATION MODAL
   ============================================= */

.Communication_MainTab-new-conversation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.Communication_MainTab-new-conversation-content {
    position: relative;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    animation: chatModalSlideIn 0.3s ease-out;
}

.Communication_MainTab-new-conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(165, 180, 252, 0.08) 100%);
    border-bottom: 1px solid rgba(165, 180, 252, 0.2);
}

.Communication_MainTab-new-conversation-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e4e4e7;
}

.Communication_MainTab-new-conversation-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.Communication_MainTab-user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    margin-top: 16px;
}

.Communication_MainTab-user-list-hint,
.Communication_MainTab-no-users {
    text-align: center;
    padding: 40px 20px;
    color: #71717a;
    font-size: 14px;
}

.Communication_MainTab-user-group-header {
    padding: 12px 16px 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.Communication_MainTab-user-group-header:first-child {
    margin-top: 0;
}

.Communication_MainTab-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.Communication_MainTab-user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.2);
}

.Communication_MainTab-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Communication_MainTab-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.Communication_MainTab-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #e4e4e7;
}

.Communication_MainTab-user-title {
    font-size: 13px;
    color: #a1a1aa;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .Communication_MainTab-modal-content {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .Communication_MainTab-sidebar {
        width: 100%;
        position: absolute;
        top: 69px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        display: none;
    }

    .Communication_MainTab-sidebar.active {
        display: flex;
    }

    .Communication_MainTab-main {
        width: 100%;
    }

    .Communication_MainTab-message {
        max-width: 85%;
    }
}

/* =====================================
   CONTEXT MENU (RIGHT-CLICK) - DARK THEME
   ===================================== */

.Communication_MainTab-context-menu {
    position: fixed;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
    min-width: 180px;
    padding: 6px 0;
    z-index: 10000;
    animation: contextMenuFadeIn 0.15s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.Communication_MainTab-context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #e4e4e7;
    transition: all 0.15s ease;
}

.Communication_MainTab-context-menu-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.Communication_MainTab-context-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #a1a1aa;
    transition: all 0.15s ease;
}

.Communication_MainTab-context-menu-item:hover i {
    color: #a5b4fc;
}

.Communication_MainTab-context-menu-item.Communication_MainTab-delete {
    color: #fca5a5;
}

.Communication_MainTab-context-menu-item.Communication_MainTab-delete i {
    color: #ef4444;
}

.Communication_MainTab-context-menu-item.Communication_MainTab-delete:hover {
    background: rgba(239, 68, 68, 0.15);
}

.Communication_MainTab-context-menu-item.Communication_MainTab-delete:hover i {
    color: #f87171;
}

/* Info button style (blue) */
.Communication_MainTab-context-menu-item.Communication_MainTab-info {
    color: #93c5fd;
}

.Communication_MainTab-context-menu-item.Communication_MainTab-info i {
    color: #3b82f6;
}

.Communication_MainTab-context-menu-item.Communication_MainTab-info:hover {
    background: rgba(59, 130, 246, 0.15);
}

.Communication_MainTab-context-menu-item.Communication_MainTab-info:hover i {
    color: #60a5fa;
}

/* =============================================
   DELETE OPTIONS POPUP - WHATSAPP STYLE
   ============================================= */

.Communication_MainTab-delete-options-popup {
    position: absolute;
    bottom: 100%;
    right: 8px;
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    min-width: 160px;
    z-index: 10002;
    margin-bottom: 8px;
    animation: Communication_MainTab-popup-fade-in 0.15s ease;
}

.Communication_MainTab-bulk-delete-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    margin-bottom: 12px;
}

@keyframes Communication_MainTab-popup-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.Communication_MainTab-bulk-delete-popup {
    animation: Communication_MainTab-popup-fade-in-center 0.15s ease;
}

@keyframes Communication_MainTab-popup-fade-in-center {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.Communication_MainTab-delete-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
}

.Communication_MainTab-delete-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.Communication_MainTab-delete-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #9ca3af;
}

.Communication_MainTab-delete-option:first-child i {
    color: #ef4444;
}

.Communication_MainTab-delete-option:last-child i {
    color: #6366f1;
}

.Communication_MainTab-delete-option:hover i {
    color: inherit;
}

.Communication_MainTab-delete-option-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.Communication_MainTab-delete-option-disabled:hover {
    background: transparent;
}

/* =============================================
   MESSAGE INFO MODAL - WHATSAPP STYLE
   ============================================= */

.Communication_MainTab-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.Communication_MainTab-info-modal-overlay.active {
    opacity: 1;
}

.Communication_MainTab-info-modal {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 380px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s ease;
}

.Communication_MainTab-info-modal-overlay.active .Communication_MainTab-info-modal {
    transform: scale(1) translateY(0);
}

.Communication_MainTab-info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.Communication_MainTab-info-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.Communication_MainTab-info-modal-header h3 i {
    font-size: 18px;
}

.Communication_MainTab-info-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.15s ease;
}

.Communication_MainTab-info-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.Communication_MainTab-info-modal-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

/* Message Preview */
.Communication_MainTab-info-message-preview {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
}

.Communication_MainTab-info-message-text {
    color: #e4e4e7;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 10px;
}

.Communication_MainTab-info-message-time {
    color: #71717a;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.Communication_MainTab-info-message-time i {
    font-size: 11px;
}

/* Read Section */
.Communication_MainTab-info-read-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.Communication_MainTab-info-section-title {
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.Communication_MainTab-info-section-title i {
    color: #6366f1;
    font-size: 14px;
}

/* Readers List (Group/Channel) */
.Communication_MainTab-info-readers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.Communication_MainTab-info-reader-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.15s ease;
}

.Communication_MainTab-info-reader-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.Communication_MainTab-info-reader-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.Communication_MainTab-info-reader-avatar i {
    color: #fff;
    font-size: 14px;
}

.Communication_MainTab-info-reader-details {
    flex: 1;
    min-width: 0;
}

.Communication_MainTab-info-reader-name {
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Communication_MainTab-info-reader-time {
    color: #71717a;
    font-size: 12px;
    margin-top: 2px;
}

.Communication_MainTab-info-seen-icon {
    color: #34d399;
    font-size: 14px;
    flex-shrink: 0;
}

/* No Readers State */
.Communication_MainTab-info-no-readers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #71717a;
    gap: 10px;
}

.Communication_MainTab-info-no-readers i {
    font-size: 32px;
    opacity: 0.5;
}

.Communication_MainTab-info-no-readers span {
    font-size: 14px;
}

/* Direct Chat Status */
.Communication_MainTab-info-direct-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.Communication_MainTab-info-direct-status i {
    font-size: 24px;
    flex-shrink: 0;
}

.Communication_MainTab-info-status-read i {
    color: #34d399;
}

.Communication_MainTab-info-status-delivered i {
    color: #71717a;
}

.Communication_MainTab-info-status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.Communication_MainTab-info-status-label {
    color: #e4e4e7;
    font-size: 15px;
    font-weight: 500;
}

.Communication_MainTab-info-status-time {
    color: #71717a;
    font-size: 13px;
}

.Communication_MainTab-info-status-desc {
    color: #71717a;
    font-size: 13px;
}

/* =============================================
   BULK MESSAGE SELECTION - WHATSAPP STYLE
   ============================================= */

/* Bulk Action Buttons Container */
.Communication_MainTab-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Selection Count */
.Communication_MainTab-selection-count {
    font-size: 13px;
    color: #a5b4fc;
    font-weight: 500;
    margin-right: 8px;
}

/* Bulk Action Buttons */
.Communication_MainTab-bulk-btn {
    background: rgba(99, 102, 241, 0.2);
    border: none;
    border-radius: 6px;
    color: #e4e4e7;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.Communication_MainTab-bulk-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.Communication_MainTab-bulk-btn:active:not(:disabled) {
    transform: translateY(0);
}

.Communication_MainTab-bulk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.Communication_MainTab-bulk-btn i {
    font-size: 12px;
}

/* Delete bulk button (red) */
.Communication_MainTab-bulk-btn.Communication_MainTab-bulk-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.Communication_MainTab-bulk-btn.Communication_MainTab-bulk-delete:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.3);
}

/* =============================================
   MESSAGE REACTIONS (WhatsApp Style)
   ============================================= */

/* Reaction button in message hover menu */
.Communication_MainTab-reaction-trigger {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    color: #a5b4fc;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.Communication_MainTab-reaction-trigger:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.Communication_MainTab-emoji-picker-emoji:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.2);
}

/* Reactions container under message */
.Communication_MainTab-message-reactions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    min-height: 28px;
}

/* Individual reaction bubble */
.Communication_MainTab-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    font-size: 12px;
    color: #a5b4fc;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.Communication_MainTab-reaction:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

/* User's own reaction (highlighted) */
.Communication_MainTab-reaction.user-reacted {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
    color: #c7d2fe;
}

/* Reaction emoji */
.Communication_MainTab-reaction-emoji {
    font-size: 16px;
    line-height: 1;
}

/* Reaction count */
.Communication_MainTab-reaction-count {
    font-size: 12px;
    font-weight: 500;
}

/* Reaction tooltip (hover) */
.Communication_MainTab-reaction-tooltip {
    position: absolute;
    background: #2d3142;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.Communication_MainTab-reaction-tooltip.show {
    opacity: 1;
}

/* Message wrapper for selection mode */
.Communication_MainTab-message-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 2px 0;
    border-radius: 8px;
    transition: background-color 0.2s ease, padding-left 0.3s ease;
}

/* Sent messages align right */
.Communication_MainTab-message-wrapper.sent {
    justify-content: flex-end;
}

/* Received messages align left */
.Communication_MainTab-message-wrapper.received {
    justify-content: flex-start;
}

/* Selection mode checkbox - hidden by default */
.Communication_MainTab-select-checkbox {
    display: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 12px;
    cursor: pointer;
    accent-color: #6366f1;
    z-index: 100;
}

/* Show checkbox when in selection mode */
.Communication_MainTab-selection-mode .Communication_MainTab-select-checkbox {
    display: block;
}

/* Selection mode: all messages shift right for checkbox column */
.Communication_MainTab-selection-mode .Communication_MainTab-message-wrapper {
    padding-left: 8px;
}

/* Selection mode: sent messages still align right but with space for checkbox */
.Communication_MainTab-selection-mode .Communication_MainTab-message-wrapper.sent {
    justify-content: flex-start;
    flex-direction: row;
}

.Communication_MainTab-selection-mode .Communication_MainTab-message-wrapper.sent .Communication_MainTab-message {
    margin-left: auto;
}

/* Selected message - full row highlight */
.Communication_MainTab-message-wrapper.Communication_MainTab-message-selected {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
}

/* Smooth transitions for entering/exiting selection mode */
.Communication_MainTab-messages {
    transition: background 0.3s ease, padding-left 0.3s ease;
}

/* Responsive: Hide text on smaller screens, keep icons */
@media (max-width: 768px) {
    .Communication_MainTab-bulk-btn span {
        display: none;
    }

    .Communication_MainTab-bulk-btn {
        padding: 6px 8px;
    }

    .Communication_MainTab-selection-count {
        font-size: 11px;
    }
}

/* =============================================
   INLINE MESSAGE EDITING - WHATSAPP STYLE
   ============================================= */

/* Edit mode bubble - slightly larger and highlighted */
.Communication_MainTab-message-bubble.Communication_MainTab-editing {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 12px;
    min-width: 300px;
}

/* Edit container */
.Communication_MainTab-edit-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Edit textarea */
.Communication_MainTab-edit-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    resize: none;
    min-height: 38px;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-edit-textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.Communication_MainTab-edit-textarea::placeholder {
    color: #71717a;
}

/* Scrollbar for textarea */
.Communication_MainTab-edit-textarea::-webkit-scrollbar {
    width: 6px;
}

.Communication_MainTab-edit-textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.Communication_MainTab-edit-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Edit buttons container */
.Communication_MainTab-edit-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Edit buttons */
.Communication_MainTab-edit-btn-cancel,
.Communication_MainTab-edit-btn-save {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-edit-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
}

.Communication_MainTab-edit-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
}

.Communication_MainTab-edit-btn-save {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: white;
}

.Communication_MainTab-edit-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.Communication_MainTab-edit-btn-save:active {
    transform: translateY(0);
}

.Communication_MainTab-edit-btn-cancel:disabled,
.Communication_MainTab-edit-btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SweetAlert z-index fix - ensure it appears above communication modal */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-overlay {
    z-index: 99999 !important;
}
/* =============================================
   GROUP & CHANNEL CONVERSATION STYLES
   ============================================= */

/* New Conversation Tabs */
.Communication_MainTab-new-conversation-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.Communication_MainTab-new-conversation-tabs .Communication_MainTab-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.Communication_MainTab-new-conversation-tabs .Communication_MainTab-tab i {
    font-size: 16px;
}

.Communication_MainTab-new-conversation-tabs .Communication_MainTab-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.Communication_MainTab-new-conversation-tabs .Communication_MainTab-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

/* Tab Content */
.Communication_MainTab-tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
}

.Communication_MainTab-tab-content.active {
    display: flex;
}

/* Group Name Input */
.Communication_MainTab-group-name {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.Communication_MainTab-group-name input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.Communication_MainTab-group-name input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.Communication_MainTab-group-name input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* User Item with Checkbox */
.Communication_MainTab-user-item-selectable {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.Communication_MainTab-user-item-selectable:hover {
    background: rgba(255, 255, 255, 0.03);
}

.Communication_MainTab-user-item-selectable.selected {
    background: rgba(99, 102, 241, 0.1);
    border-left-color: #6366f1;
}

.Communication_MainTab-user-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.Communication_MainTab-user-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

/* Selected Users List */
.Communication_MainTab-selected-users {
    background: rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    flex-shrink: 0;
}

.Communication_MainTab-selected-users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.Communication_MainTab-selected-users-header span:last-child {
    background: #6366f1;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.Communication_MainTab-selected-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.Communication_MainTab-selected-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    color: white;
}

.Communication_MainTab-selected-user-chip button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.Communication_MainTab-selected-user-chip button:hover {
    color: white;
}

.Communication_MainTab-selected-user-chip i {
    font-size: 10px;
}

/* Group Actions */
.Communication_MainTab-group-actions {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.Communication_MainTab-create-group-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.Communication_MainTab-create-group-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

.Communication_MainTab-create-group-btn:active:not(:disabled) {
    transform: translateY(0);
}

.Communication_MainTab-create-group-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

.Communication_MainTab-create-group-btn i {
    font-size: 16px;
}

/* User Email Display */
.Communication_MainTab-user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* Conversation Type Icons */
.Communication_MainTab-conversation-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6366f1;
    flex-shrink: 0;
}

.Communication_MainTab-conversation-type-icon.channel {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.Communication_MainTab-conversation-type-icon.group {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}


/* =============================================
   ADD MEMBER TO GROUP MODAL
   ============================================= */

.Communication_MainTab-add-member-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.Communication_MainTab-add-member-content {
    background: #27272a;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.Communication_MainTab-add-member-header {
    padding: 20px 24px;
    border-bottom: 1px solid #3f3f46;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.Communication_MainTab-add-member-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e4e4e7;
}

.Communication_MainTab-add-member-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.Communication_MainTab-add-member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.Communication_MainTab-add-member-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.Communication_MainTab-add-member-user:hover {
    background: #52525b;
}

.Communication_MainTab-add-member-user.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2d2d30;
}

.Communication_MainTab-add-member-user.disabled:hover {
    background: #2d2d30;
}

.Communication_MainTab-member-badge {
    margin-left: auto;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.Communication_MainTab-add-member-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.Communication_MainTab-add-member-user-info {
    flex: 1;
}

.Communication_MainTab-add-member-user-name {
    font-size: 15px;
    font-weight: 500;
    color: #e4e4e7;
    margin-bottom: 2px;
}

.Communication_MainTab-add-member-user-title {
    font-size: 13px;
    color: #a1a1aa;
}

/* =============================================
   EDIT GROUP NAME BUTTON
   ============================================= */
.Communication_MainTab-edit-name-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 12px;
}

.Communication_MainTab-edit-name-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* =============================================
   MESSAGE SEARCH CONTAINER
   ============================================= */
.Communication_MainTab-search-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    animation: slideInFromRight 0.2s ease-out;
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.Communication_MainTab-search-container input {
    width: 180px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: #2d2d30;
    color: #e4e4e7;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.Communication_MainTab-search-container input:focus {
    border-color: #6366f1;
}

.Communication_MainTab-search-go-btn,
.Communication_MainTab-search-close-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.Communication_MainTab-search-go-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.Communication_MainTab-search-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Search highlight in messages */
.Communication_MainTab-search-highlight {
    background: rgba(234, 179, 8, 0.4);
    border-radius: 2px;
    padding: 0 2px;
}

.Communication_MainTab-search-current {
    background: rgba(234, 179, 8, 0.7);
}

/* Search navigation */
.Communication_MainTab-search-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    color: #a1a1aa;
    font-size: 12px;
}

.Communication_MainTab-search-nav button {
    background: transparent;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.Communication_MainTab-search-nav button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

/* =============================================
   SWAL2 CUSTOM STYLES (z-index for modal)
   ============================================= */
.Communication_MainTab-swal-container {
    z-index: 99999 !important;
}

.Communication_MainTab-swal-popup {
    background: #2d2d30 !important;
    color: #e4e4e7 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

.Communication_MainTab-swal-popup .swal2-title {
    color: #e4e4e7 !important;
}

.Communication_MainTab-swal-popup .swal2-input {
    background: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e4e4e7 !important;
    border-radius: 8px !important;
}

.Communication_MainTab-swal-popup .swal2-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

.Communication_MainTab-swal-popup .swal2-confirm {
    background: #6366f1 !important;
    border-radius: 8px !important;
}

.Communication_MainTab-swal-popup .swal2-cancel {
    background: #52525b !important;
    border-radius: 8px !important;
}

.Communication_MainTab-swal-popup .swal2-validation-message {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}

/* =============================================
   REACTION PICKER (for adding reactions to messages)
   ============================================= */
.Communication_MainTab-reaction-picker {
    position: fixed;
    background: #2d2d30;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 8px 12px;
    display: flex;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 100000;
    animation: reactionPickerFadeIn 0.15s ease-out;
}

@keyframes reactionPickerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.Communication_MainTab-reaction-picker-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.Communication_MainTab-reaction-picker-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.2);
}

/* =============================================
   MESSAGE REPLY STYLES
   ============================================= */

/* Reply Preview above input */
.Communication_MainTab-reply-preview {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid #6366f1;
    border-radius: 8px;
    margin-bottom: 8px;
}

.Communication_MainTab-reply-preview-content {
    flex: 1;
    min-width: 0;
}

.Communication_MainTab-reply-preview-sender {
    font-size: 12px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 2px;
}

.Communication_MainTab-reply-preview-text {
    font-size: 13px;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Communication_MainTab-reply-preview-close {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: color 0.15s;
}

.Communication_MainTab-reply-preview-close:hover {
    color: #ef4444;
}

/* Reply reference inside message bubble */
.Communication_MainTab-reply-reference {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #6366f1;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.Communication_MainTab-reply-reference:hover {
    background: rgba(0, 0, 0, 0.3);
}

.Communication_MainTab-reply-reference-sender {
    font-size: 11px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 2px;
}

.Communication_MainTab-reply-reference-text {
    font-size: 12px;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

/* Message highlight animation when scrolling to replied message */
.Communication_MainTab-message-highlight {
    animation: messageHighlight 2s ease-out;
}

@keyframes messageHighlight {
    0%, 30% {
        background: rgba(99, 102, 241, 0.3);
    }
    100% {
        background: transparent;
    }
}

/* =============================================
   TOOLBAR HOVER PREVIEW
   ============================================= */
.Communication_MainTab-toolbar-wrapper {
    position: relative;
    display: inline-block;
}

.Communication_MainTab-hover-preview {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    overflow: hidden;
    margin-top: 8px;
}

.Communication_MainTab-toolbar-wrapper:hover .Communication_MainTab-hover-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.Communication_MainTab-hover-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(99, 102, 241, 0.1);
}

.Communication_MainTab-hover-preview-header span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #e4e4e7;
}

.Communication_MainTab-hover-preview-viewall {
    font-size: 12px;
    color: #a5b4fc;
    cursor: pointer;
    transition: color 0.15s;
}

.Communication_MainTab-hover-preview-viewall:hover {
    color: #c7d2fe;
}

.Communication_MainTab-hover-preview-list {
    max-height: 340px;
    overflow-y: auto;
}

.Communication_MainTab-hover-preview-loading {
    padding: 24px;
    text-align: center;
    color: #71717a;
    font-size: 13px;
}

.Communication_MainTab-hover-preview-empty {
    padding: 24px;
    text-align: center;
    color: #71717a;
    font-size: 13px;
}

.Communication_MainTab-hover-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.Communication_MainTab-hover-preview-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.Communication_MainTab-hover-preview-item:last-child {
    border-bottom: none;
}

.Communication_MainTab-hover-preview-item.unread {
    background: rgba(99, 102, 241, 0.08);
}

.Communication_MainTab-hover-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.Communication_MainTab-hover-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Communication_MainTab-hover-preview-content {
    flex: 1;
    min-width: 0;
}

.Communication_MainTab-hover-preview-name {
    font-size: 13px;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Communication_MainTab-hover-preview-message {
    font-size: 12px;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Communication_MainTab-hover-preview-item.unread .Communication_MainTab-hover-preview-message {
    color: #e4e4e7;
    font-weight: 500;
}

.Communication_MainTab-hover-preview-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.Communication_MainTab-hover-preview-time {
    font-size: 11px;
    color: #71717a;
}

.Communication_MainTab-hover-preview-badge {
    background: #6366f1;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* =============================================
   TOOLBAR DROPDOWN - Minimal & Kompakt Tasarım
   ============================================= */

/* Toolbar wrapper - z-index (panel'lerden düşük olmalı) */
#Communication_MainTab_toolbarWrapper {
    position: relative !important;
    z-index: 99 !important;
}

#Communication_MainTab_toolbarWrapper .dropdown {
    position: relative !important;
    z-index: 99 !important;
}

/* Chat toolbar wrapper - sağa boşluk ekle (Mia'dan uzaklaştır) */
#Communication_MainTab_toolbarWrapper {
    margin-right: 8px !important;
}

/* Chat trigger - her zaman aynı efekt (hover dahil) */
.toolbar .toolbar-notifications#Communication_MainTab_toolbarWrapper .dropdown .is-trigger,
.toolbar .toolbar-notifications#Communication_MainTab_toolbarWrapper .dropdown:hover .is-trigger,
.toolbar .toolbar-notifications#Communication_MainTab_toolbarWrapper .dropdown.is-active .is-trigger,
#Communication_MainTab_toolbarWrapper .dropdown .is-trigger,
#Communication_MainTab_toolbarWrapper .dropdown:hover .is-trigger,
#Communication_MainTab_toolbarWrapper .dropdown.is-active .is-trigger,
#Communication_MainTab_toolbarWrapper .is-trigger,
#Communication_MainTab_toolbarWrapper .is-trigger:hover {
    background: rgba(52, 211, 153, 0.12) !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25) !important;
    border-radius: 50% !important;
    transition: none !important;
}

#Communication_MainTab_toolbarWrapper .is-trigger svg,
#Communication_MainTab_toolbarWrapper .is-trigger:hover svg,
#Communication_MainTab_toolbarWrapper .dropdown:hover .is-trigger svg {
    stroke: #34d399 !important;
}

/* Parent needs position relative for badge positioning */
#Communication_MainTab_toolbarWrapper .is-trigger {
    position: relative;
}

/* Chat unread count badge - yeşil renk ile sayı */
#Communication_MainTab_unreadBadge {
    display: none; /* Hidden by default, JS shows it with display:flex */
    background: #10b981;
    position: absolute;
    top: -8px;
    right: -10px;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    width: auto;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    border: 2px solid #1e1e24;
    animation: Communication_MainTab_pulse 2s infinite;
    box-sizing: border-box;
    line-height: 1;
    z-index: 10;
}

@keyframes Communication_MainTab_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Dropdown menu pozisyon ve z-index */
#Communication_MainTab_toolbarWrapper .dropdown-menu {
    z-index: 100 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 4px !important;
}

/* Dropdown tamamen gizle - hover menü YOK */
#Communication_MainTab_toolbarWrapper .dropdown-menu {
    display: none !important;
}

/* Dropdown content - dar ve minimal */
.Communication_MainTab-dropdown-content {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    z-index: 100 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 0 !important;
}

/* Heading - kompakt */
.Communication_MainTab-dropdown-content .heading {
    padding: 8px 12px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.Communication_MainTab-dropdown-content .heading .heading-title {
    font-size: 0.75rem !important;
}

/* Arama kutusu - minimal */
.Communication_MainTab-dropdown-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

.Communication_MainTab-dropdown-search i {
    color: #999;
    font-size: 10px;
}

.Communication_MainTab-dropdown-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 11px;
    color: inherit;
    outline: none;
    padding: 2px 0;
}

.Communication_MainTab-dropdown-search input::placeholder {
    color: #aaa;
    font-size: 11px;
}

/* Notification list - kompakt ve scrollable */
.Communication_MainTab-dropdown-content .notification-list {
    padding: 4px 10px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Scroll bar stilleri */
.Communication_MainTab-dropdown-content .notification-list::-webkit-scrollbar {
    width: 4px;
}

.Communication_MainTab-dropdown-content .notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.Communication_MainTab-dropdown-content .notification-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.Communication_MainTab-dropdown-content .notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Dark mode için arama */
.is-dark .Communication_MainTab-dropdown-search {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.is-dark .Communication_MainTab-dropdown-search input {
    color: #e4e4e7;
}

/* Avatar placeholder - küçük */
.Communication_MainTab-avatar-placeholder {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 10px;
    flex-shrink: 0;
}

/* Notification item img */
#Communication_MainTab_hoverPreviewList .notification-item .img-left img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* Notification item - çok kompakt satırlar */
#Communication_MainTab_hoverPreviewList .notification-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.15s ease;
    border-radius: 4px;
    margin: 1px 0;
}

#Communication_MainTab_hoverPreviewList .notification-item:hover {
    background: rgba(99, 102, 241, 0.06);
}

#Communication_MainTab_hoverPreviewList .notification-item:last-child {
    border-bottom: none;
}

#Communication_MainTab_hoverPreviewList .notification-item.is-unread {
    background: rgba(99, 102, 241, 0.04);
}

#Communication_MainTab_hoverPreviewList .notification-item.is-unread .user-info span {
    font-weight: 600;
}

#Communication_MainTab_hoverPreviewList .notification-item .user-content {
    flex: 1;
    min-width: 0;
}

#Communication_MainTab_hoverPreviewList .notification-item .user-content .user-info {
    font-size: 0.72rem;
    margin-bottom: 0;
    line-height: 1.2;
}

#Communication_MainTab_hoverPreviewList .notification-item .user-content .user-info span {
    font-weight: 500;
}

#Communication_MainTab_hoverPreviewList .notification-item .user-content .time {
    font-size: 0.65rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
}

/* Unread badge - küçük */
.Communication_MainTab-unread-badge {
    background: #6366f1;
    color: white;
    font-size: 8px;
    font-weight: 600;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    flex-shrink: 0;
}

/* Footer - kompakt ve solid background */
.Communication_MainTab-dropdown-content .notification-footer {
    padding: 8px 10px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff !important;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.Communication_MainTab-dropdown-content .notification-footer .notification-link {
    font-size: 0.7rem !important;
    color: #671cc9;
    font-weight: 500;
}

.Communication_MainTab-dropdown-content .notification-footer .notification-link:hover {
    color: #8b5cf6;
}

/* Gizli item (arama filtresi için) */
#Communication_MainTab_hoverPreviewList .notification-item.is-hidden {
    display: none !important;
}

/* Dark mode uyumluluğu */
.is-dark .Communication_MainTab-dropdown-content {
    background: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.is-dark .Communication_MainTab-dropdown-content .heading {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.is-dark .Communication_MainTab-dropdown-content .notification-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: #1e1e2d !important;
}

/* =============================================================================
   VEHICLE INTELLIGENCE CENTER - Araç Canlı İzleme Butonu
   ============================================================================= */

/* VehicleIntelligenceCenter trigger - GPS mavisi tema */
.toolbar .toolbar-notifications#VehicleIntelligenceCenter_toolbarWrapper .dropdown .is-trigger,
.toolbar .toolbar-notifications#VehicleIntelligenceCenter_toolbarWrapper .dropdown:hover .is-trigger,
#VehicleIntelligenceCenter_toolbarWrapper .dropdown .is-trigger,
#VehicleIntelligenceCenter_toolbarWrapper .dropdown:hover .is-trigger,
#VehicleIntelligenceCenter_toolbarWrapper .is-trigger,
#VehicleIntelligenceCenter_toolbarWrapper .is-trigger:hover {
    background: rgba(0, 168, 255, 0.12) !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.25) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

#VehicleIntelligenceCenter_toolbarWrapper .is-trigger:hover {
    background: rgba(0, 168, 255, 0.2) !important;
    box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.4) !important;
}

#VehicleIntelligenceCenter_toolbarWrapper .is-trigger i {
    color: #00a8ff !important;
    font-size: 18px !important;
}

.is-dark .Communication_MainTab-dropdown-content .notification-footer .notification-link {
    color: #a78bfa;
}

.is-dark .Communication_MainTab-dropdown-content .notification-footer .notification-link:hover {
    color: #c4b5fd;
}

.is-dark #Communication_MainTab_hoverPreviewList .notification-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.is-dark #Communication_MainTab_hoverPreviewList .notification-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.is-dark #Communication_MainTab_hoverPreviewList .notification-item .user-content .time {
    color: #71717a;
}

/* =============================================
   TOAST NOTIFICATIONS - Real-time Message Alerts
   Modern, glassmorphism style, top-right positioned
   ============================================= */

/* Toast Container - Top right, below header */
.Communication_MainTab-toast-container {
    position: fixed;
    top: 80px; /* Below main header */
    right: 24px;
    z-index: 999999; /* Above everything */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Let clicks pass through container */
    max-width: 380px;
}

/* Individual Toast Notification */
.Communication_MainTab-toast {
    background: rgba(28, 28, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all; /* Make toast clickable */
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 340px;
    max-width: 380px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.Communication_MainTab-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
}

.Communication_MainTab-toast:hover {
    transform: translateX(-4px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Toast Avatar */
.Communication_MainTab-toast-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #3b3b41 0%, #2a2a2f 100%);
}

.Communication_MainTab-toast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Communication_MainTab-toast-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

/* Reminder Toast Specific Styles */
.Communication_MainTab-toast-reminder {
    border-left: 3px solid #fbbf24 !important;
}

.Communication_MainTab-toast-reminder::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.Communication_MainTab-toast-avatar-reminder {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.Communication_MainTab-toast-reminder-date {
    font-size: 11px;
    color: #fbbf24;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.Communication_MainTab-toast-badge-priority {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    margin-left: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Online indicator on avatar */
.Communication_MainTab-toast-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid rgba(28, 28, 32, 0.95);
    border-radius: 50%;
}

/* Toast Content */
.Communication_MainTab-toast-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Toast Header (Name + Time) */
.Communication_MainTab-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.Communication_MainTab-toast-name {
    font-weight: 600;
    font-size: 14px;
    color: #f4f4f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Communication_MainTab-toast-time {
    font-size: 11px;
    color: #71717a;
    white-space: nowrap;
}

/* Toast Message */
.Communication_MainTab-toast-message {
    font-size: 13px;
    color: #d4d4d8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Toast with attachment indicator */
.Communication_MainTab-toast-attachment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #a5b4fc;
    font-size: 12px;
    margin-top: 2px;
}

.Communication_MainTab-toast-attachment-indicator i {
    font-size: 11px;
}

/* Close Button */
.Communication_MainTab-toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
}

.Communication_MainTab-toast:hover .Communication_MainTab-toast-close {
    opacity: 1;
}

.Communication_MainTab-toast-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: scale(1.1);
}

/* Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.Communication_MainTab-toast.removing {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Group/Channel Badge */
.Communication_MainTab-toast-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    font-size: 11px;
    color: #a5b4fc;
    font-weight: 500;
    margin-left: 6px;
}

.Communication_MainTab-toast-badge i {
    font-size: 10px;
}

/* Unread dot */
.Communication_MainTab-toast-unread {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    margin-left: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Light theme adjustments */
.is-light .Communication_MainTab-toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.is-light .Communication_MainTab-toast-name {
    color: #18181b;
}

.is-light .Communication_MainTab-toast-message {
    color: #3f3f46;
}

.is-light .Communication_MainTab-toast-time {
    color: #a1a1aa;
}

.is-light .Communication_MainTab-toast-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #71717a;
}

/* Responsive */
@media (max-width: 768px) {
    .Communication_MainTab-toast-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .Communication_MainTab-toast {
        min-width: 0;
        max-width: none;
    }
}

/* =============================================
   @MENTION SYSTEM - WhatsApp Style
   ============================================= */

/* Mention Popup (positioned above input) */
.Communication_MainTab-mention-popup {
    position: absolute;
    bottom: 100%;
    left: 24px;
    right: 24px;
    max-height: 280px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
    z-index: 1001;
    overflow: hidden;
    animation: Communication_MainTab_mentionSlideUp 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes Communication_MainTab_mentionSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.Communication_MainTab-mention-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(99, 102, 241, 0.1);
}

.Communication_MainTab-mention-header i {
    color: #6366f1;
    font-size: 14px;
}

.Communication_MainTab-mention-header span {
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
}

.Communication_MainTab-mention-list {
    max-height: 220px;
    overflow-y: auto;
}

.Communication_MainTab-mention-list::-webkit-scrollbar {
    width: 6px;
}

.Communication_MainTab-mention-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.Communication_MainTab-mention-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.Communication_MainTab-mention-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-mention-item:hover,
.Communication_MainTab-mention-item.selected {
    background: rgba(99, 102, 241, 0.15);
}

.Communication_MainTab-mention-item.selected {
    background: rgba(99, 102, 241, 0.25);
}

.Communication_MainTab-mention-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.Communication_MainTab-mention-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Communication_MainTab-mention-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.Communication_MainTab-mention-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.Communication_MainTab-mention-name {
    font-size: 14px;
    font-weight: 500;
    color: #e4e4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Communication_MainTab-mention-title {
    font-size: 12px;
    color: #71717a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Clickable Mention Link in Messages */
.Communication_MainTab-mention-link {
    color: #a5b4fc;
    font-weight: 500;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.Communication_MainTab-mention-link:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

/* Mention in sent messages (different styling for readability) */
.Communication_MainTab-message.sent .Communication_MainTab-mention-link {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.Communication_MainTab-message.sent .Communication_MainTab-mention-link:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Responsive for mention popup */
@media (max-width: 768px) {
    .Communication_MainTab-mention-popup {
        left: 12px;
        right: 12px;
    }
}

/* ========== VOICE MESSAGE STYLES ========== */

/* Voice Recording UI */
.Communication_MainTab-voice-recording {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin: 0 12px 12px 12px;
}

.Communication_MainTab-voice-recording-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.Communication_MainTab-voice-cancel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.Communication_MainTab-voice-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.Communication_MainTab-voice-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
}

.Communication_MainTab-voice-waveform span {
    width: 4px;
    height: 8px;
    background: #ef4444;
    border-radius: 2px;
    transition: height 0.1s ease;
}

.Communication_MainTab-voice-waveform.recording span {
    animation: voiceWave 0.5s ease-in-out infinite;
}

.Communication_MainTab-voice-waveform.recording span:nth-child(1) { animation-delay: 0s; }
.Communication_MainTab-voice-waveform.recording span:nth-child(2) { animation-delay: 0.1s; }
.Communication_MainTab-voice-waveform.recording span:nth-child(3) { animation-delay: 0.2s; }
.Communication_MainTab-voice-waveform.recording span:nth-child(4) { animation-delay: 0.3s; }
.Communication_MainTab-voice-waveform.recording span:nth-child(5) { animation-delay: 0.4s; }

@keyframes voiceWave {
    0%, 100% { height: 8px; }
    50% { height: 24px; }
}

.Communication_MainTab-voice-timer {
    font-size: 14px;
    font-weight: 600;
    color: #ef4444;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    min-width: 45px;
}

.Communication_MainTab-voice-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.Communication_MainTab-voice-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.Communication_MainTab-voice-send-btn i {
    font-size: 16px;
}

/* Voice Message in Chat */
.Communication_MainTab-voice-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    min-width: 200px;
    max-width: 280px;
}

.Communication_MainTab-message.sent .Communication_MainTab-voice-message {
    background: rgba(255, 255, 255, 0.15);
}

.Communication_MainTab-voice-play-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.Communication_MainTab-message.sent .Communication_MainTab-voice-play-btn {
    background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 100%);
    color: #6366f1;
}

.Communication_MainTab-voice-play-btn:hover {
    transform: scale(1.05);
}

.Communication_MainTab-voice-play-btn i {
    font-size: 14px;
    margin-left: 2px;
}

.Communication_MainTab-voice-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.Communication_MainTab-message.sent .Communication_MainTab-voice-progress {
    background: rgba(255, 255, 255, 0.3);
}

.Communication_MainTab-voice-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1 0%, #a5b4fc 100%);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.Communication_MainTab-message.sent .Communication_MainTab-voice-progress-bar {
    background: linear-gradient(90deg, #ffffff 0%, #e4e4e7 100%);
}

.Communication_MainTab-voice-duration {
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    min-width: 38px;
    text-align: right;
}

.Communication_MainTab-message.sent .Communication_MainTab-voice-duration {
    color: rgba(255, 255, 255, 0.8);
}

/* Microphone Button */
.Communication_MainTab-input-btn.voice-btn {
    color: #71717a;
    transition: all 0.2s ease;
}

.Communication_MainTab-input-btn.voice-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Responsive Voice Message */
@media (max-width: 768px) {
    .Communication_MainTab-voice-message {
        min-width: 180px;
        max-width: 240px;
        padding: 10px 12px;
    }

    .Communication_MainTab-voice-play-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .Communication_MainTab-voice-recording {
        margin: 0 8px 8px 8px;
        padding: 10px 12px;
    }
}

/* =============================================
   IMAGE VIEWER - WHATSAPP STYLE
   ============================================= */

.Communication_MainTab-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    animation: Communication_MainTab-imageViewerFadeIn 0.2s ease-out;
}

@keyframes Communication_MainTab-imageViewerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.Communication_MainTab-image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.Communication_MainTab-image-viewer-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.Communication_MainTab-image-viewer-info span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.Communication_MainTab-image-viewer-actions {
    display: flex;
    gap: 12px;
}

.Communication_MainTab-image-viewer-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.Communication_MainTab-image-viewer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.Communication_MainTab-image-viewer-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    cursor: zoom-in;
}

.Communication_MainTab-image-viewer-content.zoomed {
    cursor: zoom-out;
    overflow: auto;
}

.Communication_MainTab-image-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.Communication_MainTab-image-viewer-img.zoomed {
    max-width: none;
    max-height: none;
    transform: scale(2);
    cursor: grab;
}

.Communication_MainTab-image-viewer-img.zoomed:active {
    cursor: grabbing;
}

.Communication_MainTab-image-viewer-footer {
    position: relative;
    z-index: 10;
    padding: 16px 24px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.Communication_MainTab-image-viewer-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Avatar Context Menu Styling */
.Communication_MainTab-avatar-context-menu {
    min-width: 180px;
    z-index: 999999;
}

.Communication_MainTab-avatar-context-menu .Communication_MainTab-context-menu-item {
    padding: 12px 16px;
}

.Communication_MainTab-avatar-context-menu .Communication_MainTab-context-menu-item i {
    width: 20px;
    margin-right: 12px;
    color: #a5b4fc;
}

.Communication_MainTab-avatar-context-menu .Communication_MainTab-context-menu-item:hover i {
    color: #6366f1;
}

/* Clickable image attachment in messages */
.Communication_MainTab-message-attachment img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.Communication_MainTab-message-attachment img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Clickable group avatar */
.Communication_MainTab-view-avatar.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.Communication_MainTab-view-avatar.clickable:hover {
    transform: scale(1.05);
}

.Communication_MainTab-view-avatar.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0);
    transition: background 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.Communication_MainTab-view-avatar.clickable:hover::before {
    background: rgba(99, 102, 241, 0.15);
}

/* Mobile responsive image viewer */
@media (max-width: 768px) {
    .Communication_MainTab-image-viewer-header {
        padding: 12px 16px;
    }

    .Communication_MainTab-image-viewer-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .Communication_MainTab-image-viewer-content {
        padding: 10px;
    }

    .Communication_MainTab-image-viewer-footer {
        padding: 12px 16px;
    }
}
