/* ==========================================================================
   1. Main Modal Container (Glassmorphism & Overlay)
   ========================================================================== */
.chat-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.35); /* Soft and modern dark theme */
    backdrop-filter: blur(12px); /* Glassmorphism blur effect for the background */
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl; /* Standard RTL layout */
}

/* Smooth and organic entry animation for the modal */
.chat-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   2. Main Chat Box Body (Chat Box Container)
   ========================================================================== */
.chat-modal-box {
    width: 580px; /* Chat page width increased from 440px to 580px */
    max-width: 95%; /* Maintain responsiveness on small monitors and mobile */
    height: 700px; /* Height increased slightly to maintain aspect ratio proportions */
    max-height: 85vh;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-modal.show .chat-modal-box {
    transform: scale(1) translateY(0);
}

/* ==========================================================================
   3. Modal Header (Premium Header)
   ========================================================================== */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #83aed3;
    border-bottom: 1px solid #f1f5f9;
    min-height: 65px;
    position: relative;
}

.modal-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Online pulse circle */
.modal-status-badge {
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #ffe4e6;
    color: #f43f5e;
    transform: rotate(90deg);
}

/* ==========================================================================
   4. Dynamic Message Management and Bubbles (Messages & Dynamic Alignment)
   ========================================================================== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #cfe3f1; /* Highly soothing background color */
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    position: relative;
}

/* Ambient message box covering the full width of the chat box */
.message {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Inner container constraining the bubble and timestamp */
.message-container {
    display: flex;
    flex-direction: column;
    max-width: 72%; /* Maximum chat bubble width ceiling */
}

/* Outgoing messages (self) -> Forced 100% alignment to the right side */
.message.outgoing {
    justify-content: flex-start !important; /* Due to RTL direction, this aligns to the right */
}

.message.outgoing .message-container {
    align-items: flex-end !important; /* Aligns timestamp and bubble edge to the right */
}

.message.outgoing .message-bubble {
    background: linear-gradient(135deg, #3b82f6, #243a5e) !important;
    color: #ffffff !important;
    border-radius: 16px 16px 0 16px !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Incoming messages (other person) -> Forced 100% alignment to the left side */
.message.incoming {
    justify-content: flex-end !important; /* Due to RTL direction, this aligns to the left */
}

.message.incoming .message-container {
    align-items: flex-start !important; /* Aligns timestamp and bubble edge to the left */
}

.message.incoming .message-bubble {
    background: linear-gradient( #8fb6d8, #5f86a6) !important;
    color: #ffffff !important;
    border-radius: 16px 16px 16px 0 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Base styling for bubbles */
.message-bubble {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    text-align: right; /* Keeps text right-aligned for RTL content */
}

.message-time {
    font-size: 11px;
    margin-top: 5px;
    color: #94a3b8;
    padding: 0 4px;
}

/* Media inside chat */
.chat-preview-image, .chat-video {
    max-width: 100%;
    max-height: 230px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin-bottom: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.chat-audio {
    max-width: 100%;
    margin-bottom: 4px;
}

/* ==========================================================================
   5. Wide Input Layout Adjustment & Left Button Placement (Wide Input & Left Button)
   ========================================================================== */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 6px 12px; /* Slightly increased padding for typing comfort */
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    width: 100%;
}

.chat-textarea {
    width: 100% !important;
    height: 50px !important; /* Initial button height */
    min-height: 50px !important;
    max-height: 120px !important; /* Maximum height expansion ceiling */
    
    padding: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    
    resize: none !important; /* Prevents the user from deforming the box using the mouse */
    outline: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    
    /* Keeps side scrollbar hidden under normal conditions if desired */
    overflow-y: auto !important; 
}

/* Adjusted send button alignment to the left side */
.send-btn {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important; /* Prevents button squishing */
    
    /* Automatic right margin pins the button to the left wall in an RTL structure */
    margin-right: 0 !important; 
    margin-left: auto !important;
    
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Hover state: button scales slightly larger with a deeper shadow */
.send-btn:hover {
    transform: scale(1.06) !important;
    background: #2563eb !important; /* Slightly darker blue */
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35) !important;
}

/* Click state: button depresses slightly for a mechanical feel */
.send-btn:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.15) !important;
}

/* Direction of the rocket icon inside the left-aligned send button */
.send-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    transform: scaleX(-1) !important; /* Orients rocket to point right toward the chat area */
}

/* ==========================================================================
   Definitive Left-Alignment Fix for Send Button (Anti-Deform & Left-Aligned Send Button)
   ========================================================================== */
.send-btn {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    
    /* Locking dimensions to prevent squishing or line distortion */
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    
    border-radius: 12px !important;
    cursor: pointer !important;
    
    /* Standard flex alignment */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Smooth transition */
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    
    /* Placement fix: automatic left margin pushes the button leftward in RTL layouts */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    margin-left: auto !important; 
    
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.send-btn:hover {
    background: #1d4ed8 !important;
    /* Added translateY(-1px) alongside the spring effect */
    transform: scale(1.05) translateY(-1px) !important;
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
}

.send-btn:active {
    transform: scale(0.95) !important;
}

/* Constraining and fixing the icon inside the button */
.send-btn svg {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    display: block !important;
    transform: none !important; 
}

/* File upload button wrapper (attachment pin) */
.file-upload-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 12px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.file-upload-wrapper:hover {
    background-color: #e2e8f0;
    color: #334155;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ==========================================================================
   6. File Preview UI Before Sending (Media Preview UI)
   ========================================================================== */
.media-preview-container {
    display: none; 
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    position: relative;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    animation: slide-up 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-media-item {
    display: none;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
}

.preview-audio-icon {
    display: none;
    width: 48px;
    height: 48px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.preview-meta-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
    text-align: right;
}

.preview-file-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.preview-file-type {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.remove-preview-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: auto;
    margin-left: 0;
    font-weight: bold;
    transition: background 0.2s;
}

.remove-preview-btn:hover {
    background: #dc2626;
}

/* ==========================================================================
   7. Reply and Response System (Reply UI)
   ========================================================================== */
.reply-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 8px 12px;
    border-right: 4px solid #3b82f6; /* Swapped to the right for RTL compatibility */
    border-left: none;
    border-radius: 8px;
    margin-bottom: 8px;
    animation: slide-up 0.2s ease;
}

.reply-text {
    flex: 1;
    color: #334155;
    font-size: 12px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cancel-reply {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.cancel-reply:hover {
    color: #f43f5e;
}

.reply-box {
    background: rgba(15, 23, 42, 0.04);
    border-right: 3px solid #3b82f6;
    border-left: none;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #475569;
    text-align: right;
}

/* ==========================================================================
   8. Floating Ticket Buttons and Indicators (Badges & Support Buttons)
   ========================================================================== */
/* ==========================================================================
   Next-Gen Support Button (Futuristic Glass-Neon Support Button)
   ========================================================================== */

/* 1. Main button body styling (Glassmorphism design with neon depth) */
.support-btn-user, 
.support-btn-user-red, 
.support-btn, 
.support-btn-red {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px; /* Standard spacious sizing used by modern platforms */
    height: 54px;
    border: none;
    outline: none;
    border-radius: 50%; /* Floating circular form for optimized ergonomics */
    cursor: pointer;
    position: relative;
    
    /* Advanced Glassmorphism effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Multi-layered shadow to create floating spatial separation */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 
                0 12px 24px -4px rgba(15, 23, 42, 0.12);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Premium spring animation */
}

/* Inside the button: SVG tags or icon styling */
.support-btn-user svg, 
.support-btn-user-red svg, 
.support-btn svg, 
.support-btn-red svg {
    width: 22px;
    height: 22px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 2. Normal status button (Neon Glass Blue) */
.support-btn-user, .support-btn {
    background: rgba(59, 130, 246, 0.12); /* Soft blue glass body */
    color: #2563eb; /* Primary icon color */
    border: 1.5px solid rgba(59, 130, 246, 0.3); /* Subtle neon border border */
}

/* Blue button hover behavior: color fill and glow radiating */
.support-btn-user:hover, .support-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px -6px rgba(37, 99, 235, 0.35);
}

/* 3. Emergency / New Message status button (Active red with a pulsing halo aura) */
.support-btn-user-red, .support-btn-red {
    background: rgba(239, 68, 68, 0.15); /* Soft red glass */
    color: #dc2626;
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    animation: border-glow-pulse 2s infinite ease-in-out; /* Automatic gentle button border pulse */
}

/* Red button hover behavior: fill with bright neon red gradient */
.support-btn-user-red:hover, .support-btn-red:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px -6px rgba(220, 38, 38, 0.4);
}

/* Universal gentle icon rotation effect on button hover */
.support-btn-user:hover svg, 
.support-btn-user-red:hover svg, 
.support-btn:hover svg, 
.support-btn-red:hover svg {
    transform: rotate(15deg) scale(1.1);
}

/* Pressed/Click state for buttons */
.support-btn-user:active, .support-btn-user-red:active, .support-btn:active, .support-btn-red:active {
    transform: translateY(-1px) scale(0.98);
}

/* 4. Modern character/message counter indicator (Minimal Floating Badge) */
.ticket-badge, .ticket-badge-user {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff; /* Separation gap outline from button body */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Lighter badge color on standard button configuration */
.support-btn .ticket-badge {
    background: #2563eb;
}
/* Sharp neon badge color on the new message button */
.support-btn-red .ticket-badge, .support-btn-user-red .ticket-badge-user {
    background: #ef4444;
    animation: badge-pop 0.3s ease;
}

/* ==========================================================================
   5. Modern Button Animations (Futuristic Keyframes)
   ========================================================================== */

/* Non-intrusive ambient glow pulsing keyframes for the active red status button border */
@keyframes border-glow-pulse {
    0%, 100% {
        border-color: rgba(239, 68, 68, 0.4);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 0 0 0 rgba(239, 68, 68, 0.2);
    }
    50% {
        border-color: rgba(239, 68, 68, 0.8);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 0 14px 4px rgba(239, 68, 68, 0.25);
    }
}

/* Badge pop-up arrival expansion appearance keyframes */
@keyframes badge-pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   9. Advanced Neon Loading Overlay (100% Full Chat Page Coverage)
   ========================================================================== */
.chat-loading-container {
    display: none;
    position: absolute;
    inset: 0; /* Comprehensive coverage from uppermost header bound down to input */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999; /* Layering priority over all elements and control buttons */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 24px; /* Matches the rounded border radius edge constraints of the main chat box */
}

.chat-modern-loader {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(#3b82f6, #8b5cf6, #ec4899);
    animation: spin-gradient 0.8s linear infinite;
}

.chat-modern-loader::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: #ffffff;
    border-radius: 50%;
}

.chat-loading-text {
    margin-top: 14px;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    animation: pulse-text 1.5s ease-in-out infinite;
}
/* ==========================================================================
   10. Animations & Scrollbar Styles (Keyframes & Scrollbar)
   ========================================================================== */
@keyframes spin-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar optimization specifically for chat-messages block */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.char-counter {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    padding: 0 4px;
    user-select: none;
    transition: color 0.2s ease;
}

/* Color turns alarming warning red when user gets close to or exceeds limit restrictions */
.char-counter.limit-reached {
    color: #ef4444;
    animation: shake 0.2s ease-in-out 2;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.emoji-btn {
    background: none !important;
    border: none !important;
    outline: none !important;
    font-size: 22px !important;
    cursor: pointer !important;
    padding: 0 10px !important;
    transition: transform 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.emoji-btn:hover {
    transform: scale(1.15) !important;
}

/* Anchors the emoji container scope directly within input layout context */
.chat-input-container {
    position: relative !important;
    overflow: visible !important;
}

/* Dedicated custom emoji picker window scope */
.custom-emoji-picker {
    position: absolute !important;
    bottom: 55px !important; /* Positions exactly atop the message input bounds */
    right: 15px !important;  
    width: 260px !important;
    max-height: 150px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    padding: 10px !important;
    z-index: 99999999 !important; /* Safeguards layout rendering over all modular window layers */
    direction: ltr !important;
}

/* Image zoom expansion configuration triggered post click event */
/* Main Lightbox overlay container context */
.image-lightbox {
    display: none; /* Kept hidden by default conditions */
    position: fixed;
    z-index: 100000000; /* Stays above the chat modal and all other layout nodes */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Dark backdrop shielding */
}

/* Image element bounded within Lightbox context viewport */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    
    /* Image zoom expansion entry tracking configuration */
    animation-name: zoomIn;
    animation-duration: 0.25s;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Structural closing button component bound within overlay layout framework */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #bbb;
}

/* Utility layout helper highlighting click accessibility indicator on conversation content assets */
.chat-message img, .message-content img {
    cursor: pointer;
    transition: opacity 0.2s;
}
.chat-message img:hover, .message-content img:hover {
    opacity: 0.85;
}

/* Voice media button module styling profiles */
.voice-btn {
    background: none !important;
    border: none !important;
    outline: none !important;
    font-size: 22px !important;
    cursor: pointer !important;
    padding: 0 10px !important;
    transition: transform 0.2s;
}

/* Active voice capture runtime layout modification parameters */
.voice-btn.recording {
    color: #e74c3c !important;
    animation: pulseRecording 1.2s infinite;
    transform: scale(1.2);
}

@keyframes pulseRecording {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Modifies color profiles on elements during ongoing capturing phases (optional design accentuation) */
#messageInput.recording-active {
    background-color: #ffe6e6 !important;
    placeholder-color: #e74c3c;
}

/* Bounded wrapper component capturing audio processing preview metrics */
.voice-preview-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f2f6 !important;
    padding: 8px 15px !important;
    border-radius: 30px !important;
    margin-top: 8px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    animation: slideUp 0.2s ease-out;
}

/* Browser-native standard audio output player container scaling properties */
#audioPreview {
    height: 32px;
    flex-grow: 1;
}

/* Secondary control trigger properties contained directly inside local validation interfaces */
.preview-btn {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: transform 0.1s;
}
.preview-btn:hover {
    transform: scale(1.15);
}
.preview-btn.delete-btn {
    color: #e74c3c !important;
}
.preview-btn.send-btn {
    color: #2ecc71 !important;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}