/**
 * Professional Messenger Styles - Right Sidebar Layout
 * Clean, modern design with collapsible contacts on the right
 */

/* ===================================
   Modal & Layout
   =================================== */

/* Override global modal transform for right-side panel */
.js-modal-messenger.modal.fade .modal-dialog {
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-out !important;
}

.js-modal-messenger.modal.fade.show .modal-dialog {
    transform: translateX(0) !important;
    transition: transform 0.3s ease-out !important;
}

.js-modal-messenger .modal-dialog-right {
    position: fixed;
    margin: 0;
    width: 100%;
    max-width: 900px;
    height: 100%;
    right: 0 !important;
    left: auto !important;
    top: 0;
}

.js-modal-messenger .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Header
   =================================== */

.messenger-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-online {
    background-color: #10b981;
}

.status-offline {
    background-color: #6b7280;
}

.btn-close-messenger {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-messenger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ===================================
   Body Layout - Chat Main, Sidebar Right
   =================================== */

.messenger-body {
    display: flex;
    height: calc(100% - 80px);
    overflow: hidden;
    position: relative;
}

/* ===================================
   Chat Area (Main Content)
   =================================== */

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
    min-height: 76px;
    display: flex;
    align-items: center;
}

.chat-header .contact-avatar {
    position: relative;
}

.chat-header .contact-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.chat-header .status-badge {
    width: 12px;
    height: 12px;
}

/* Toggle Contacts Button */
.btn-toggle-contacts {
    position: relative;
    background: #f3f4f6;
    border: none;
    color: #667eea;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.btn-toggle-contacts:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-toggle-contacts .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0.25rem 0.4rem;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
}

/* ===================================
   Contacts Sidebar (Right, Collapsible)
   =================================== */

.contacts-sidebar {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contacts-sidebar.is-open {
    transform: translateX(0);
}

.contacts-sidebar-header {
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.contacts-sidebar-header h6 {
    color: #1f2937;
    font-weight: 600;
    font-size: 16px;
}

.btn-close-sidebar {
    background: none;
    border: none;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-sidebar:hover {
    background: #f3f4f6;
    color: #374151;
}

.contacts-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    margin-bottom: 0.75rem;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.online-count {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-count i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    min-height: 0;
}

.contacts-divider {
    padding: 0.75rem 1rem 0.5rem;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    background: white;
    border-left-color: #e5e7eb;
}

.contact-item.is-active {
    background: white;
    border-left-color: #667eea;
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.1);
}

.contact-item .contact-avatar {
    position: relative;
    margin-right: 0.875rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f2fe, #e0ffe0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-avatar-group {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.contact-avatar-group .avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.contact-avatar-group .avatar-fallback i {
    font-size: 16px;
    opacity: 0.85;
}

.contact-item .contact-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-item .contact-avatar .status-badge {
    width: 12px;
    height: 12px;
}

.contact-item .contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-status {
    font-size: 12px;
    color: #6b7280;
}

.contact-last-active {
    font-size: 11px;
    margin-top: 0.125rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item.is-active .contact-last-active {
    color: #6b7280;
}

.contact-item .contact-meta {
    margin-left: 0.5rem;
    color: #d1d5db;
    font-size: 12px;
    flex-shrink: 0;
}

.contact-item:hover .contact-meta {
    color: #667eea;
}

.contact-item.is-online .contact-name {
    color: #111827;
}

.contact-item.is-offline {
    opacity: 0.7;
}

.contact-item.contact-group {
    border-left-color: rgba(59, 130, 246, 0.45);
}

.contact-item.is-new {
    animation: pulseNewContact 1.4s ease forwards;
}

@keyframes pulseNewContact {
    0% {
        border-left-color: rgba(59, 130, 246, 0.85);
        background: rgba(59, 130, 246, 0.08);
    }
    100% {
        border-left-color: rgba(59, 130, 246, 0.45);
        background: transparent;
    }
}

/* Scrollbar */
.contacts-list::-webkit-scrollbar {
    width: 6px;
}

.contacts-list::-webkit-scrollbar-track {
    background: transparent;
}

.contacts-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.contacts-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ===================================
   Messages Container
   =================================== */

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f9fafb;
    scroll-behavior: smooth;
}

.messages-container::-webkit-scrollbar {
    width: 8px;
}

.messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.date-divider {
    text-align: center;
    margin: 1.5rem 0;
}

.date-divider span {
    background: white;
    padding: 0.375rem 1rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Message bubbles */
.message {
    display: flex;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.message-sent {
    justify-content: flex-end;
}

.message-received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    position: relative;
}

.message-sent .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.message-received .message-bubble {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.message-sent .message-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-sent .message-content {
    color: white;
}

.message-received .message-content {
    color: #1f2937;
}

.message-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.375rem;
    font-size: 11px;
    gap: 0.375rem;
    opacity: 0.7;
}

.message-sent .message-footer {
    color: rgba(255, 255, 255, 0.85);
}

.message-received .message-footer {
    color: #6b7280;
}

.message[data-status="failed"] .message-footer {
    color: #f87171;
}

.message-status {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.message-status .fa-check-double {
    font-size: 12px;
}

.message[data-status="sending"] .message-status .fa-check-double {
    opacity: 0.3;
}

.message[data-status="failed"] .message-status {
    color: #f87171;
}

.message[data-status="failed"] .message-status .fa-check-double {
    display: none;
}

.message[data-status="failed"] .message-footer::after {
    content: "Failed to send";
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

.typing-indicator .typing-dots {
    display: inline-flex;
    gap: 4px;
}

.typing-indicator .typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-indicator .typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-indicator .typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingPulse {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.typing-label {
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: lowercase;
}

.group-threads-section {
    margin-bottom: 1rem;
}

.group-threads-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.group-participants-list {
    max-height: 240px;
    overflow-y: auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.group-participants-list::-webkit-scrollbar {
    width: 6px;
}

.group-participants-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

.group-participants-list::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

/* Empty States */
.empty-state,
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===================================
   Input Area
   =================================== */

.input-area {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.message-input {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    padding: 0.5rem;
    border: none;
    outline: none;
    font-size: 14px;
    line-height: 1.5;
    overflow-y: auto;
    resize: none;
    background: transparent;
}

.message-input:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
}

.message-input:focus:before {
    content: '';
}

.message-input::-webkit-scrollbar {
    width: 6px;
}

.message-input::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.btn-attachment,
.btn-emoji,
.btn-send {
    background: none;
    border: none;
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-attachment:hover,
.btn-emoji:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-hint {
    font-size: 11px;
    color: #9ca3af;
    padding: 0 0.5rem;
}

.input-hint kbd {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 0.125rem 0.375rem;
    font-size: 10px;
    font-family: monospace;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .js-modal-messenger .modal-dialog-right {
        max-width: 100%;
    }

    .contacts-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .message-bubble {
        max-width: 85%;
    }
}

@media (max-width: 576px) {
    .messenger-header {
        padding: 1rem;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .input-area {
        padding: 0.75rem 1rem;
    }

    .message-bubble {
        max-width: 90%;
    }

    .btn-toggle-contacts {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===================================
   Utilities
   =================================== */

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.badge-primary {
    background-color: #667eea !important;
    color: white !important;
}

/* ===================================
   Message Checkboxes (NEW)
   =================================== */

.message {
    position: relative;
    padding-left: 30px;
}

.message-checkbox {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.message:hover .message-checkbox {
    opacity: 1;
}

.message-select-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* ===================================
   Bulk Actions Toolbar (NEW)
   =================================== */

.bulk-actions-toolbar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: white;
    border-top: 1px solid #e9ecef;
}

.bulk-actions-toolbar .btn {
    font-size: 13px;
    padding: 0.375rem 0.875rem;
}

/* ===================================
   Edit Message (NEW)
   =================================== */

.btn-edit-message {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
    border-radius: 4px;
    transition: all 0.2s;
}

.message-sent .btn-edit-message {
    color: rgba(255, 255, 255, 0.7);
}

.message-received .btn-edit-message {
    color: #6b7280;
}

.btn-edit-message:hover {
    background: rgba(0, 0, 0, 0.1);
    color: white;
}

.message-received .btn-edit-message:hover {
    background: #f3f4f6;
    color: #374151;
}

.edit-message-input {
    font-family: inherit;
    font-size: inherit;
    border-radius: 8px;
    border: 1px solid #e5e7eb !important;
    width: 100%;
    min-height: 60px;
    padding: 8px;
    resize: vertical;
}

.edit-message-input:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.edit-actions .btn {
    font-size: 12px;
    padding: 0.375rem 0.875rem;
}

/* ===================================
   Reactions (NEW) - Font Awesome Icons
   =================================== */

.message-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.reaction-display {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.reaction-badge i {
    font-size: 14px;
}

.reaction-badge .reaction-count {
    font-weight: 600;
    font-size: 11px;
}

/* Colorize specific reactions */
.reaction-badge[data-reaction="thumbs_up"] i {
    color: #3b82f6; /* Blue */
}

.reaction-badge[data-reaction="heart"] i {
    color: #ef4444; /* Red */
}

.reaction-badge[data-reaction="smile"] i {
    color: #fbbf24; /* Yellow */
}

.reaction-badge[data-reaction="laugh"] i {
    color: #f59e0b; /* Orange */
}

.reaction-badge[data-reaction="wow"] i {
    color: #8b5cf6; /* Purple */
}

.reaction-badge[data-reaction="sad"] i {
    color: #6b7280; /* Gray */
}

.reaction-badge[data-reaction="angry"] i {
    color: #dc2626; /* Dark Red */
}

.message-sent .reaction-badge {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.reaction-badge:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.message-sent .reaction-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-add-reaction {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.message-sent .btn-add-reaction {
    color: rgba(255, 255, 255, 0.6);
}

.btn-add-reaction:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.message-sent .btn-add-reaction:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.reaction-picker {
    position: relative;
}

.reaction-picker-popup {
    position: fixed;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    animation: reactionPopIn 0.2s ease-out;
}

@keyframes reactionPopIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reaction-option {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-option i {
    font-size: 20px;
}

.reaction-option:hover {
    background: #f3f4f6;
    transform: scale(1.2);
}

.reaction-option:active {
    transform: scale(1.1);
}

/* Color the icons in the picker */
.reaction-option:nth-child(1) i { color: #3b82f6; } /* thumbs up - blue */
.reaction-option:nth-child(2) i { color: #ef4444; } /* heart - red */
.reaction-option:nth-child(3) i { color: #fbbf24; } /* smile - yellow */
.reaction-option:nth-child(4) i { color: #f59e0b; } /* laugh - orange */
.reaction-option:nth-child(5) i { color: #8b5cf6; } /* wow - purple */
.reaction-option:nth-child(6) i { color: #6b7280; } /* sad - gray */
.reaction-option:nth-child(7) i { color: #dc2626; } /* angry - dark red */

/* ===================================
   Enhanced Empty/Loading States
   =================================== */

.contact-empty {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* ===================================
   Animations
   =================================== */

@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message {
    animation: slideIn 0.3s ease-out;
}

/* ===================================
   Hover Effects
   =================================== */

.message:hover .message-checkbox,
.message:hover .btn-edit-message,
.message:hover .btn-add-reaction {
    opacity: 1;
}

/* ===================================
   Message Content Edited Label
   =================================== */

.message-content .text-muted.small {
    font-size: 10px;
    opacity: 0.7;
    font-style: italic;
}

/* ===================================
   Responsive Adjustments for New Features
   =================================== */

@media (max-width: 768px) {
    .message-checkbox {
        opacity: 1;
    }
    
    .btn-edit-message,
    .btn-add-reaction {
        opacity: 1;
    }
    
    .reaction-picker-popup {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 80px;
    }
}

@media (max-width: 576px) {
    .reaction-option {
        font-size: 20px;
        padding: 4px;
    }
    
    .bulk-actions-toolbar {
        font-size: 12px;
    }
    
    .bulk-actions-toolbar .btn {
        font-size: 11px;
        padding: 0.25rem 0.625rem;
    }
}
