/* css/5-features.css */

/* =================================================================== */
/* 1. AUTH MODAL
/* =================================================================== */

#auth-error {
    color: #f44336;
    text-align: center;
    min-height: 20px;
    margin-top: 15px;
    font-weight: 600;
}

#auth-toggle-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}
#auth-toggle-link:hover {
    text-decoration: underline;
}

/* =================================================================== */
/* 2. ACCOUNT MODAL
/* =================================================================== */

.account-pic-uploader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

#modal-account-preview {
    width: 100px;  
    height: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#modal-account-preview:hover {
    opacity: 0.8;
    box-shadow: 0 0 0 4px #667eea;
}

#account-pic-input {
    display: none;
}

#account-success {
    color: green; 
    text-align: center; 
    min-height: 20px;
}

/* =================================================================== */
/* 3. FRIENDS MODAL & SOCIAL
/* =================================================================== */

/* --- Friend List (used in multiple modals) --- */
.friend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    position: relative;
}

/* Official friend styling (admin account) */
.friend-item.official-friend {
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* Official badge styling */
.official-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    flex-shrink: 0;
}

.friend-item .account-icon-circle {
    width: 40px; 
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
}

.friend-item-info {
    flex-grow: 1;
}

.friend-item-info strong {
    font-size: 1.1em;
    color: #333;
    font-weight: normal;
}
.friend-item-info span {
    font-size: 0.9em;
    color: #888;
}

.friend-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Icon button sizing for friend list */
.friend-item-actions .btn-small.message,
.friend-item-actions .btn-small.view,
.friend-item-actions .btn-small.remove,
.friend-item-actions .btn-small.profile {
    padding: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Friends Modal Specifics --- */
.search-bar-container {
    display: flex;
    gap: 10px;
}
#friend-search-input {
    flex-grow: 1;
}

#friend-search-results p {
    text-align: center;
    color: #888;
    padding: 10px 0;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.collapsible-header h3 {
    margin: 0;
}
.collapse-icon {
    font-size: 0.9em;
    transition: transform 0.2s ease-in-out;
}
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.collapsible-content[style*="max-height"][style*="0px"] {
    /* When collapsed, keep hidden */
    overflow: hidden;
}

/* When expanded, allow internal scrolling */
.friend-list {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#pending-requests-list:empty::after,
#my-friends-list:empty::after,
#sent-requests-list:empty::after,
#mutual-friends-list:empty::after {
    content: 'None';
    text-align: center;
    color: #888;
    padding: 10px 0;
    display: block;
}

#profile-modal-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.profile-details .form-group {
    margin-bottom: 15px;
}

.profile-details .form-group label {
    font-size: 0.9em;
    color: #888;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-details p {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
    padding: 8px 0;
}

/* --- Header Search Bar --- */
#header-search-container {
    display: none; /* Hide by default, show via JS */
    position: relative;
    width: 400px;
}

#header-search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 20px; /* Rounded pill shape */
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#header-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

#header-search-results {
    display: none; /* Hidden by default */
    position: absolute;
    top: 110%; /* Just below the input */
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 101; /* Above header */
}

#header-search-results .friend-item {
    background: #fff;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
}
#header-search-results .friend-item:last-child {
    border-bottom: none;
}
#header-search-results .friend-item:hover {
    background: #f9f9f9;
}
#header-search-results .btn-small {
    padding: 6px 12px;
}
#header-search-results p {
    text-align: center;
    color: #888;
    padding: 10px 0;
}

/* =================================================================== */
/* 4. MESSAGE MODAL
/* =================================================================== */

.message-modal-content {
    max-width: 900px;
    width: 90%;
    height: 80vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.message-modal-content h2 {
    padding: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.message-modal-content .modal-close-btn {
    top: 20px;
    right: 25px;
}

.message-container {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

/* --- Conversation Sidebar --- */
.message-sidebar {
    width: 300px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.message-search {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

#message-search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.9em;
    border-radius: 20px;
    border: 2px solid #ddd;
}

.message-controls {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    display: flex;
    gap: 12px;
    align-items: center;
}

.message-controls .sort-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.message-controls .sort-controls label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.message-controls .sort-controls select {
    padding: 4px 28px 4px 0;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    background-color: white !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
    appearance: none;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.message-controls .sort-controls select:hover {
    background-color: #f5f5f5;
}

.message-controls .sort-controls select:focus {
    outline: none;
    background-color: #f0f0f0;
}

.message-controls .filter-controls {
    display: flex;
    gap: 8px;
}

.message-controls .btn-filter {
    padding: 6px 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #657080;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.message-controls .btn-filter:hover {
    background-color: #f5f5f5;
}

.message-controls .btn-filter.active {
    background-color: #ffcdd2;
    color: #d32f2f;
}

.message-controls .btn-filter svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#conversation-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.convo-item {
    background: #fff;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 10px;
}

.convo-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.convo-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.convo-item:last-child {
    border-bottom: none;
}
.convo-item:hover {
    background: #f9f9f9;
}
.convo-item.active {
    background: #edf2fa;
}

/* Styling for conversations with deleted users */
.convo-item.from-deleted-friend {
    opacity: 0.75;
}

.convo-item.from-deleted-friend .convo-item-name {
    font-style: italic;
    color: #999;
}

.convo-item-info {
    overflow: hidden;
    padding: 5px 0;
}

.convo-name {
    font-weight: 500;
    font-size: 0.95em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.convo-last-message {
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.convo-item-preview {
    display: none; /* Hides the preview text */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
    color: #666;
}

.convo-item-info .convo-item-name {
    font-weight: normal;
    font-size: 1.1em;
    color: #333;
}

.convo-options-container {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 60px;
    margin-right: 5px;
}

.convo-unread-indicator {
    width: 10px;
    height: 10px;
    background-image: linear-gradient(135deg, #ff6b6b, #f44336);
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.3);
}

.convo-last-message-date {
    font-size: 0.8em;
    color: #888;
    font-weight: 500;
    padding: 0 5px;
    display: block; /* Show by default */
}

.convo-options-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none; /* Hide by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.convo-item:hover .convo-options-btn {
    display: flex;
}

.convo-item:hover .convo-last-message-date {
    display: none; /* Hide date on hover */
}

.convo-options-btn svg {
    width: 20px;
    height: 20px;
    fill: #888;
}

.convo-options-btn:hover {
    background-color: #f0f0f0;
}

.convo-options-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    width: 140px;
    overflow: hidden;
    padding: 5px 0;
}

.convo-options-menu.show {
    display: block;
}

.convo-options-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
}

.convo-options-menu button:hover {
    background-color: #f9f9f9;
}

.convo-options-menu .convo-delete-option {
    color: #f44336;
}

/* --- Main Chat Window --- */
.message-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#message-header {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    border-radius: 0;
}

#message-header-name {
    font-size: 1.1em;
    color: #333;
    font-weight: normal;
}

#message-window {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

.chat-bubble-wrapper {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
    gap: 8px;
}
.chat-bubble-wrapper.sent {
    justify-content: flex-end;
}
.chat-bubble-wrapper.received {
    justify-content: flex-start;
}

/* Styling for messages from deleted users */
.chat-bubble-wrapper.from-deleted-user .chat-bubble {
    opacity: 0.7;
    font-style: italic;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 20px;
}

.chat-bubble-wrapper.sent .chat-bubble {
    background: #667eea;
    color: white;
    border-top-right-radius: 5px;
}

.chat-bubble-wrapper.received .chat-bubble {
    background: #e0e0e0;
    color: #333;
    border-top-left-radius: 5px;
}

/* Visual indicator for deleted user messages */
.chat-bubble-wrapper.from-deleted-user .chat-bubble {
    border: 1px dashed #999;
}

.chat-text {
    display: block;
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-timestamp {
    display: block;
    font-size: 0.75em;
    text-align: right;
    opacity: 0.7;
}

#message-input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background: #fff;
    margin-bottom: 0;
}

#message-input {
    flex-grow: 1;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 1em;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    max-height: 130px;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#message-input:focus {
    border-color: #667eea;
}

#message-send-btn {
    flex-shrink: 0;
    background: #667eea;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
    padding: 0;
    margin-bottom: 5px;
}

#message-send-btn:hover {
    background: #5567d8;
}

#message-send-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

/* Textarea scrollbar */
#message-input::-webkit-scrollbar {
    width: 18px;
}
#message-input::-webkit-scrollbar-track {
    background: transparent;
}
#message-input::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    background-clip: content-box;
}
#message-input::-webkit-scrollbar-thumb:hover {
    background-color: #bbb;
}

/* =================================================================== */
/* 5. EVENT & TIMELINE MODALS
/* =================================================================== */

/* --- Timeline Manager Modal --- */
.timeline-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}

.timeline-header-item:hover {
    opacity: 0.9;
}

.timeline-controls {
    display: flex;
    gap: 8px;
}

#timelinesList {
    min-height: calc((50px + 10px) * 4);
    max-height: 400px; 
    overflow-y: auto; 
    margin-bottom: 20px;
}

/* --- Event Details Modal --- */
#eventDetailsModal .modal-content {
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
}

#eventDetailsModal h2 {
    font-size: 2.2em;
    margin-bottom: 5px;
    word-wrap: break-word; 
}

.details-date {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.details-notes {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    max-height: 40vh; 
    overflow-y: auto;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    white-space: pre-wrap; 
}

.details-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.details-tag-item {
    background-color: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-block;
}

/* =================================================================== */
/* 6. FILTER MODAL
/* =================================================================== */

#filterModal .modal-content {
    max-width: 450px;
}

/* Make modal buttons stretch */
#filterModal .modal-buttons div {
    display: flex;
    flex: 1;
}

/* Special layout for "Clear All" */
.modal-buttons.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#clearFiltersBtn {
    flex: 0 1 auto; /* Don't grow, just fit content */
    background: none;
    border: none;
    color: #f44336;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9em;
}
#clearFiltersBtn:hover {
    background: #fdf0f0;
}

/* Date filter inputs */
.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-group-inline {
    flex: 1;
}

.form-group-inline label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
}

.form-group-inline input[type="date"] {
    width: 100%;
    padding: 10px 8px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 0.9em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =================================================================== */
/* 7. FILTER MODAL PILLBOX
/* =================================================================== */

.tag-pillbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    min-height: 50px; /* Give it some empty space */
    background-color: #f9f9f9; /* Light bg to show it's a container */
}

/* If the pillbox is empty, show a message */
.tag-pillbox:empty::after {
    content: "No tags selected";
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

/* We can reuse the .tag and .tag-remove-btn styles from 3-components.css */
/* This just makes the tags in the pillbox match the ones in the event modal */
.tag-pillbox .tag {
    display: inline-flex;
    align-items: center;
    background-color: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
}

.tag-pillbox .tag .tag-remove-btn {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    margin-left: 8px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1.1em;
}

/* --- Filter Modal Header & Button Styles --- */

/* Re-use profile-header for flex layout */
#filterModal .profile-header {
    margin-bottom: 25px; /* Add margin back */
}

/* Style the new "Clear" button in the header */
#filterModal #clearFiltersBtn {
    flex: 0 1 auto; /* Don't grow */
    background: none;
    border: none;
    color: #f44336;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9em;
    margin-top: -10px; /* Align with header text */
    cursor: pointer;
}
#filterModal #clearFiltersBtn:hover {
    background: #fdf0f0;
}

/* Make the "Apply" button align to the right */
#filter-modal-buttons {
    justify-content: flex-end;
}
#filter-modal-buttons div {
    display: flex;
    flex: 0 1 150px; /* Give apply button a fixed-ish width */
}


/* =================================================================== */
/* 8. CHAT DATE SEPARATOR
/* =================================================================== */

.chat-date-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-size: 0.8em;
    font-weight: 600;
}

/* Creates the horizontal lines on either side of the text */
.chat-date-separator::before,
.chat-date-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

/* Adds spacing between the text and the lines */
.chat-date-separator span {
    padding: 0 15px;
}

/* ═════════════════════════════════════════════════════════════════ */
/* MESSAGE EDITING UI */
/* ═════════════════════════════════════════════════════════════════ */

/* Edit button on message hover (direct messages) */
.message-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
    color: #666;
    flex-shrink: 0;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.chat-bubble-wrapper:hover .message-edit-btn {
    opacity: 1;
}

.message-edit-btn:hover {
    color: #333;
    transform: scale(1.1);
}

/* Edited indicator in direct messages */
.chat-edited-indicator {
    display: inline-block;
    font-size: 0.75em;
    opacity: 0.7;
    margin-left: 4px;
}

/* Edit button on message hover (group messages) */
.group-message-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
    color: #666;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.group-message-item:hover .group-message-edit-btn {
    opacity: 1;
}

.group-message-edit-btn:hover {
    color: #333;
    transform: scale(1.1);
}

/* Edited indicator in group messages */
.group-message-edited-indicator {
    display: inline-block;
    font-size: 0.8em;
    opacity: 0.6;
    margin-left: 6px;
}
/* =================================================================== */
/* MESSAGE REACTIONS
/* =================================================================== */

/* Reaction button - appears on hover on right side */
.message-reaction-btn,
.group-message-reaction-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.1s ease;
    color: #666;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.message-reaction-btn svg,
.group-message-reaction-btn svg {
    display: block;
}

.reaction-plus {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 10px;
    font-weight: bold;
    background: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chat-bubble-wrapper:hover .message-reaction-btn,
.group-message-item:hover .group-message-reaction-btn {
    opacity: 1;
}

.message-reaction-btn:hover,
.group-message-reaction-btn:hover {
    transform: scale(1.15);
    color: #333;
}

/* Emoji picker popup */
.reaction-emoji-picker {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 4px;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reaction-emoji-option {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.reaction-emoji-option:hover {
    background: #f0f0f0;
    transform: scale(1.15);
}

/* Reaction display badges */
.message-reactions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.reaction-badge {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reaction-badge:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.reaction-badge.user-reacted {
    background: rgba(102, 126, 234, 0.55);
    color: white;
    border-color: rgba(102, 126, 234, 0.6);
}

.reaction-badge.user-reacted:hover {
    background: rgba(102, 126, 234, 0.75);
}
