/* Messages System - Francis & Princess Wedding */

/* Floating Action Buttons (FAB) System */
.floating-action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    overflow: visible;
    transform: scale(1);
    animation: fabEntrance 0.6s ease-out;
}

/* Entrance Animation */
@keyframes fabEntrance {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Stagger the animation for multiple buttons */
.fab:nth-child(1) {
    animation-delay: 0.1s;
}

.fab:nth-child(2) {
    animation-delay: 0.2s;
}

/* Individual FAB Styling */
.fab-memory {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(229, 152, 155, 0.3);
}

.fab-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Hover Effects */
.fab:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.fab-memory:hover {
    box-shadow: 0 8px 25px rgba(229, 152, 155, 0.5);
}

.fab-message:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* Pulse Animation on Hover */
.fab:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: fabPulse 1.5s infinite;
}

@keyframes fabPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip Styling */
.fab-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.fab:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Active/Click Animation */
.fab:active {
    transform: translateY(-1px) scale(0.95);
}

.fab i {
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.fab:hover i {
    transform: scale(1.1);
}

/* Leave a Message Modal */
.leave-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12000;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leave-message-modal.show {
    opacity: 1;
}

.leave-message-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.leave-message-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.leave-message-modal.show .leave-message-modal-content {
    transform: scale(1);
}

.leave-message-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.leave-message-modal-title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
}

.leave-message-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leave-message-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.leave-message-modal-body {
    padding: 30px;
}

.message-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.message-form .form-group {
    margin-bottom: 25px;
}

.message-form .form-label {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.message-type-select,
.message-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.message-type-select:focus,
.message-textarea:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.message-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.character-count {
    text-align: right;
    color: #666;
    font-size: 12px;
    margin-top: 8px;
}

.character-count .current-count {
    font-weight: 600;
    color: #ff6b6b;
}

.message-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.message-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.message-btn.primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.message-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.message-btn.secondary {
    background: #f5f5f5;
    color: var(--dark-color);
    border: 2px solid #e0e0e0;
}

.message-btn.secondary:hover {
    background: #e0e0e0;
}

/* Messages Wall Modal */
.messages-wall-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.messages-wall-modal.show {
    opacity: 1;
}

.messages-wall-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.messages-wall-modal-content {
    position: relative;
    background: white;
    margin: 2% auto;
    border-radius: 20px;
    max-width: 95%;
    width: 1200px;
    height: 90vh;
    max-height: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messages-wall-modal.show .messages-wall-modal-content {
    transform: scale(1);
}

.messages-wall-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.messages-wall-modal-title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
}

.messages-wall-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messages-wall-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.messages-wall-modal-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #fafafa;
}

/* Messages Filters */
.messages-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.messages-filter-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background: white;
}

.messages-filter-select:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.messages-stats {
    margin-left: auto;
    padding: 12px 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 25px;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 15px;
}

/* Loading State */
.messages-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.messages-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Messages Grid */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

/* Message Card */
.message-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #ff6b6b;
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.message-card.featured {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6, #ffffff);
}

.message-card.featured::before {
    content: "⭐";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.message-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.message-meta {
    flex: 1;
    min-width: 0;
}

.message-guest-name {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 16px;
    margin-bottom: 3px;
}

.message-time {
    color: #666;
    font-size: 12px;
}

.message-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.message-text {
    color: var(--dark-color);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 15px;
}

.message-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.message-love-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.message-love-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.2);
}

.message-info {
    color: #666;
    font-size: 11px;
}

/* No Messages State */
.no-messages-wall {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-messages-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-messages-wall h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

.no-messages-wall p {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.btn-leave-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-leave-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .leave-message-modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-height: none;
    }
    
    .leave-message-modal-header {
        padding: 15px 20px;
        border-bottom: 2px solid var(--primary-color);
        background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
        border-radius: 0;
    }
    
    .leave-message-modal-title {
        font-size: 1.6rem;
        color: white;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    }
    
    .leave-message-modal-close {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.2);
        color: white;
        border: 2px solid rgba(255,255,255,0.3);
        font-size: 18px;
        transition: all 0.3s ease;
    }
    
    .leave-message-modal-close:hover {
        background: rgba(255,255,255,0.3);
        transform: scale(1.1);
    }
    
    .leave-message-modal-body {
        padding: 20px;
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
    }
    
    .messages-wall-modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
    
    .messages-wall-modal-header {
        padding: 15px 20px;
        border-bottom: 2px solid var(--primary-color);
        background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
        border-radius: 0;
    }
    
    .messages-wall-modal-title {
        font-size: 1.6rem;
        color: white;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    }
    
    .messages-wall-modal-close {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.2);
        color: white;
        border: 2px solid rgba(255,255,255,0.3);
        font-size: 18px;
        transition: all 0.3s ease;
    }
    
    .messages-wall-modal-close:hover {
        background: rgba(255,255,255,0.3);
        transform: scale(1.1);
    }
    
    .messages-wall-modal-body {
        padding: 20px;
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
    }
    
    .messages-filters {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        padding: 20px;
        border-radius: 0;
        margin: 0;
        border-bottom: 3px solid var(--primary-color);
        box-shadow: 0 3px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 8px;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .messages-filter-select {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        border: 2px solid var(--primary-color);
        border-radius: 25px;
        background: white;
        color: var(--dark-color);
        box-shadow: 0 4px 12px rgba(229, 152, 155, 0.2);
        transition: all 0.3s ease;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23e5989b' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
    }
    
    .messages-filter-select:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 6px 20px rgba(229, 152, 155, 0.3);
        transform: translateY(-2px);
    }
    
    .messages-stats {
        background: var(--primary-color);
        color: white;
        padding: 15px 20px;
        text-align: center;
        font-size: 18px;
        font-weight: 600;
        border-radius: 30px;
        margin: 20px;
        box-shadow: 0 6px 20px rgba(229, 152, 155, 0.4);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }
    
    .messages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px;
        padding: 0;
    }
    
    .message-card {
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid transparent;
        background: white;
    }
    
    .message-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.2);
        border-color: var(--primary-color);
    }
    
    .message-card.featured {
        border-color: var(--primary-color);
        box-shadow: 0 12px 35px rgba(229, 152, 155, 0.3);
    }
    
    .message-header {
        margin-bottom: 15px;
        gap: 15px;
        align-items: center;
    }
    
    .message-avatar {
        width: 50px;
        height: 50px;
        font-size: 18px;
        border: 3px solid var(--primary-color);
        box-shadow: 0 4px 12px rgba(229, 152, 155, 0.3);
    }
    
    .message-guest-name {
        font-size: 16px;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .message-time {
        font-size: 13px;
        color: #666;
        font-weight: 500;
    }
    
    .message-type-badge {
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .message-text {
        font-size: 15px;
        line-height: 1.6;
        color: #444;
        margin-bottom: 15px;
        font-weight: 400;
    }
    
    .message-actions {
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid #eee;
        gap: 10px;
    }
    
    .message-love-btn {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(229, 152, 155, 0.3);
        transition: all 0.3s ease;
    }
    
    .message-love-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(229, 152, 155, 0.4);
        color: white;
    }
    
    /* Leave a Message Form Mobile Optimization */
    .leave-message-modal .message-actions {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        align-items: stretch;
    }
    
    .leave-message-modal .message-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 25px;
        transition: all 0.3s ease;
        justify-content: center;
        min-height: 50px;
        border: none;
        cursor: pointer;
    }
    
    .leave-message-modal .message-btn.primary {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        box-shadow: 0 6px 20px rgba(229, 152, 155, 0.3);
        order: 1;
    }
    
    .leave-message-modal .message-btn.primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(229, 152, 155, 0.4);
    }
    
    .leave-message-modal .message-btn.secondary {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        order: 2;
    }
    
    .leave-message-modal .message-btn.secondary:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }
    
    /* Form Elements Mobile */
    .message-type-select,
    .message-textarea {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        border: 2px solid var(--primary-color);
        border-radius: 15px;
        background: white;
        transition: all 0.3s ease;
    }
    
    .message-type-select:focus,
    .message-textarea:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 6px 20px rgba(229, 152, 155, 0.3);
        transform: translateY(-2px);
    }
    
    .message-textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .character-count {
        text-align: right;
        font-size: 14px;
        color: #666;
        margin-top: 8px;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .leave-message-modal-header,
    .messages-wall-modal-header {
        padding: 15px;
    }
    
    .leave-message-modal-title,
    .messages-wall-modal-title {
        font-size: 1.3rem;
    }
    
    .leave-message-modal-body,
    .messages-wall-modal-body {
        padding: 15px;
    }
    
    .messages-filters {
        padding: 15px;
    }
    
    .message-header {
        gap: 10px;
    }
    
    .message-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .message-guest-name {
        font-size: 15px;
    }
    
    .message-text {
        font-size: 14px;
    }
    
    /* Leave a Message modal - Extra Small Mobile Optimization */
    .leave-message-modal .message-actions {
        margin-top: 15px;
        gap: 12px;
        flex-direction: column;
    }
    
    .leave-message-modal .message-btn {
        padding: 12px;
        font-size: 15px;
        min-height: 45px;
        border-radius: 20px;
        width: 100%;
    }
    
    .message-type-select,
    .message-textarea {
        padding: 10px 14px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .message-textarea {
        min-height: 100px;
    }
    
    .character-count {
        font-size: 13px;
        margin-top: 6px;
    }
    
    .leave-message-modal .message-btn.primary {
        flex-shrink: 0;
    }
}

/* Scrollbar Styling */
.messages-wall-modal-body::-webkit-scrollbar,
.leave-message-modal-content::-webkit-scrollbar {
    width: 8px;
}

.messages-wall-modal-body::-webkit-scrollbar-track,
.leave-message-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.messages-wall-modal-body::-webkit-scrollbar-thumb,
.leave-message-modal-content::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 10px;
}

.messages-wall-modal-body::-webkit-scrollbar-thumb:hover,
.leave-message-modal-content::-webkit-scrollbar-thumb:hover {
    background: #ee5a24;
} 

/* Mobile Touch Support */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices - show tooltip on tap */
    .fab.touch-active .fab-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(-5px);
    }
    
    /* Disable hover effects on touch devices */
    .fab:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    .fab:hover::before {
        display: none;
    }
    
    .fab:hover i {
        transform: none;
    }
    
    /* Active state for touch */
    .fab:active {
        transform: scale(0.95);
    }
}

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {
    .floating-action-buttons {
        bottom: 25px;
        right: 25px;
        gap: 12px;
    }
    
    .fab {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .fab-tooltip {
        font-size: 11px;
        padding: 6px 10px;
        right: 65px;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .floating-action-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .fab {
        width: 48px;
        height: 48px;
        font-size: 16px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }
    
    .fab:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    
    .fab-tooltip {
        font-size: 10px;
        padding: 5px 8px;
        right: 58px;
        transform: translateY(-50%);
    }
    
    .fab:hover .fab-tooltip {
        transform: translateY(-50%) translateX(-3px);
    }
    
    .fab-tooltip::after {
        border-width: 4px;
    }
}

/* Small Mobile View (max-width: 480px) */
@media (max-width: 480px) {
    .floating-action-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .fab {
        width: 44px;
        height: 44px;
        font-size: 14px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
    
    .fab:hover {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .fab-tooltip {
        font-size: 9px;
        padding: 4px 6px;
        right: 54px;
    }
    
    .fab-tooltip::after {
        border-width: 3px;
    }
}

/* Very Small Mobile View (max-width: 320px) */
@media (max-width: 320px) {
    .floating-action-buttons {
        bottom: 12px;
        right: 12px;
        gap: 6px;
    }
    
    .fab {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .fab-tooltip {
        font-size: 8px;
        padding: 3px 5px;
        right: 50px;
    }
}

/* Accessibility Improvements */
.fab:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.fab:focus:not(:focus-visible) {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .fab {
        border: 2px solid white;
    }
    
    .fab-tooltip {
        background: black;
        border: 1px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fab,
    .fab-tooltip,
    .fab i {
        transition: none;
    }
    
    .fab:hover {
        transform: none;
    }
    
    .fab:hover .fab-tooltip {
        transform: translateY(-50%);
    }
} 