/**
 * ═══════════════════════════════════════════════════════════════════════════════════════
 * PLIK: chat.css - CLEANED & OPTIMIZED
 * Opis: Style dla globalnego komponentu czatu (Glassmorphism + Retro Sci-Fi)
 * ═══════════════════════════════════════════════════════════════════════════════════════
 */

/* -----------------------------------------------------------------------------
   1. TOGGLE BUTTON (Prawy dolny róg)
----------------------------------------------------------------------------- */
.chat-toggle-btn {
    position: fixed !important;
    bottom: 1px;
    right: 33px; /* ZMIANA Z 43px na 33px */
    z-index: 99999;
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    
    /* FIX DOTYKU */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Hitbox */
.chat-toggle-btn::after {
    content: '';
    position: absolute;
    top: -10px; bottom: -10px; left: -10px; right: -10px;
    z-index: 10;
}

.chat-toggle-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.chat-toggle-btn:hover .chat-toggle-icon { transform: scale(1.15); }
.chat-toggle-btn:active .chat-toggle-icon { transform: scale(0.9); }

/* -----------------------------------------------------------------------------
   2. MAIN PANEL
----------------------------------------------------------------------------- */
.chat-panel {
    position: fixed !important;
    top: 85px;
    right: 0;
    z-index: 100000;
    width: 520px;
    height: calc(100vh - 175px);
    max-height: 100vh;
    
    display: flex;
    flex-direction: column;
    
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 7px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    
    /* Animacja */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-panel:not(.chat-hidden) { transform: translateX(0); }
.chat-panel.chat-hidden { transform: translateX(100%); }

/* -----------------------------------------------------------------------------
   3. HEADER (Top Bar)
----------------------------------------------------------------------------- */
.chat-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    min-height: 50px;
    flex-shrink: 0;

    /* Wygląd */
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    
    border-top: 2px solid rgba(255, 140, 0, 1);
    border-bottom: 1px solid rgba(68, 68, 68, 0.5);
    border-left: 2px solid rgba(68, 68, 68, 0.4);
    border-right: 2px solid rgba(68, 68, 68, 0.4);
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(68, 68, 68, 0.2);
}

.chat-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: -42px;
    white-space: nowrap;
}

/* Przyciski Mode (Global/Priv) */
.chat-mode-switch { display: flex; gap: 5px; }

.chat-mode-btn {
    background: rgba(68, 68, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    touch-action: manipulation;
    position: relative;
}

.chat-mode-btn::after {
    content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -10px; z-index: 1;
}

.chat-mode-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ff8c00;
    color: #ffffff;
}

.chat-mode-btn.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ff8c00;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

/* Specyficzne dla Priv (czerwony) */
.chat-mode-btn[data-mode="priv"] { border-color: rgba(204, 0, 0, 0.4); }
.chat-mode-btn[data-mode="priv"]:hover,
.chat-mode-btn[data-mode="priv"].active {
    border-color: #cc0000;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* Close Button (X) */
.chat-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5em;
    font-weight: 300;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
    text-shadow: none;
    
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

.chat-close-btn::after {
    content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -10px;
}

.chat-close-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* -----------------------------------------------------------------------------
   4. TABS & SEARCH TRIGGER
----------------------------------------------------------------------------- */
.chat-tabs-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
    margin-right: 10px;
}

.chat-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.chat-tabs::-webkit-scrollbar { display: none; }

/* Scroll Arrows */
.chat-tab-scroll-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 10;
    padding: 0;
}
.chat-tab-scroll-btn:hover { background: rgba(255, 255, 255, 0.1); border-radius: 4px; color: #fff; }
.chat-tab-scroll-btn.left { margin-right: 4px; }
.chat-tab-scroll-btn.right { margin-left: 4px; }

/* Single Tab */
.chat-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(68, 68, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    
    touch-action: manipulation;
    position: relative;
}

.chat-tab::after {
    content: ''; position: absolute; top: -5px; bottom: -5px; left: 0; right: 0; z-index: 1;
}

.chat-tab:hover, .chat-tab.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ff8c00;
}
.chat-tab.active { box-shadow: 0 0 8px rgba(255, 140, 0, 0.3); }

.chat-tab-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-tab-close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    touch-action: manipulation;
    position: relative;
    z-index: 2;
}
.chat-tab-close::after {
    content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -10px;
}
.chat-tab-close:hover { color: #ff6b6b; transform: scale(1.2); }

/* Search Trigger (Lupa) */
.chat-new-pm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent !important;
    border: none !important;
    color: #ffffff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 4px; /* Odsunięcie od X */
    box-shadow: none !important;
    outline: none !important;
    
    touch-action: manipulation;
    position: relative;
}
.chat-new-pm-btn::after {
    content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -10px;
}
.chat-new-pm-btn:hover {
    transform: rotate(90deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background: transparent !important;
}

/* -----------------------------------------------------------------------------
   5. SEARCH PANEL
----------------------------------------------------------------------------- */
.chat-search-panel {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-bottom: 1px solid rgba(68, 68, 68, 0.5);
    padding: 10px 15px;
}

.chat-search-container { display: flex; align-items: center; gap: 8px; }

.chat-search-panel input[type="text"] {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    background: rgba(68, 68, 68, 0.4);
    border: 1px solid #ff8c00;
    box-shadow: 0 0 8px rgba(255,140,0,0.3);
    border-radius: 4px;
    color: #ffffff;
    font-family: "Black Ops One", sans-serif !important;
    font-size: 0.8em; 
    font-weight: 550; 
    letter-spacing: 1px;
    text-transform: uppercase;
    outline: none;
}
.chat-search-panel input[type="text"]::placeholder { color: rgba(255, 255, 255, 0.4); }

/* Search Close */
.chat-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4em;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    position: relative;
}
.chat-search-close::after { content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -10px; }
.chat-search-close:hover { transform: rotate(90deg); text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }

/* Search Results */
.chat-search-results {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    scrollbar-width: thin;
}
.chat-search-results::-webkit-scrollbar { width: 4px; }
.chat-search-results::-webkit-scrollbar-thumb { background: rgba(102, 126, 234, 0.5); border-radius: 2px; }

.chat-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 35px;
    background: rgba(68, 68, 68, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.chat-search-item:hover { background: rgba(102, 126, 234, 0.3); }

.chat-search-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(68, 68, 68, 0.4);
    border: 1px solid rgba(102, 102, 102, 1);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.chat-search-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-search-avatar i { color: rgba(255, 255, 255, 0.7); font-size: 1em; }

.chat-search-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    font-weight: 600;
    position: relative;
    display: inline-block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Glitch Effect Reuse */
.chat-search-item:hover .chat-search-name { color: transparent; }
.chat-search-name::before, .chat-search-name::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    color: #ffffff; pointer-events: none; opacity: 0;
}
.chat-search-item:hover .chat-search-name::before, .chat-search-item:hover .chat-search-name::after { opacity: 1; }
.chat-search-item:hover .chat-search-name::before { animation: glitch-anim-text 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.chat-search-item:hover .chat-search-name::after { animation: glitch-anim-text 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both; }

.chat-search-empty { color: rgba(255, 255, 255, 0.5); font-size: 0.85em; text-align: center; padding: 15px 0; }

/* -----------------------------------------------------------------------------
   6. MESSAGES AREA
----------------------------------------------------------------------------- */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1.5px) !important;
    -webkit-backdrop-filter: blur(1.5px) !important;
    border-left: 2px solid rgba(68, 68, 68, 0.4);
    border-right: none;
    
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-messages::-webkit-scrollbar { display: none; }

/* Sprężyna */
.chat-messages::before { content: ""; margin-top: auto; flex-shrink: 0; }

/* -----------------------------------------------------------------------------
   7. SINGLE MESSAGE
----------------------------------------------------------------------------- */
.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start !important; /* FIX: Wymuszone wyrównanie do góry */
    flex-shrink: 0;
    
    /* Animacja wejścia kontenera (WLOT Z LEWEJ) */
    overflow: hidden;
    max-height: 0px;
    opacity: 0;
    padding: 3px;
    transform: translateX(-30%); /* Start z -30% */
    
    transition: margin-bottom 300ms, max-height 500ms, opacity 200ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 0;
}

.chat-message.animate-in {
    opacity: 1;
    max-height: 500px;
    transform: translateX(0px); /* Wjazd na miejsce */
    margin-bottom: 10px;
}

/* Avatar - Animacja "POP" od dołu */
.chat-msg-avatar {
    width: 65px; height: 65px; min-width: 65px; min-height: 65px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(36, 36, 36, 0.8);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    
    /* Start animacji: Mały, na dole, niewidoczny */
    transform: translateY(50px) scale(0.3);
    opacity: 0;
    transition: transform 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 300ms, border-color 0.3s, box-shadow 0.3s;
    
    cursor: pointer;
    touch-action: manipulation;
}

/* Gdy rodzic ma animate-in -> Avatar rośnie i wskakuje */
.chat-message.animate-in .chat-msg-avatar {
    transform: translateY(0) scale(1);
    opacity: 1;
    transition-delay: 100ms; /* Lekkie opóźnienie względem wjazdu kontenera */
}

.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg-avatar i { font-size: 1.4em; color: rgba(255, 255, 255, 0.9); text-shadow: 1px 1px 0 #000; }
.chat-msg-avatar:hover { border-color: #ff8c00; box-shadow: 0 0 12px rgba(255, 140, 0, 0.5); }

/* Content - Animacja wjazdu od dołu */
.chat-msg-content {
    display: flex; flex-direction: column; gap: 4px; max-width: calc(100% - 50px);
    
    /* Start animacji: Na dole, niewidoczny */
    transform: translateY(30px);
    opacity: 0;
    transition: transform 400ms ease-out, opacity 300ms;
}

/* Gdy rodzic ma animate-in -> Treść wjeżdża */
.chat-message.animate-in .chat-msg-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 150ms; /* Opóźnienie po awatarze */
}

.chat-msg-username {
    color: #ff8c00;
    font-weight: 700;
    font-size: 1.0em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 1px 1px 0 #000;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer;
    touch-action: manipulation;
}
.chat-msg-username:hover { text-decoration: underline; }

.chat-msg-bubble {
    background-color: rgba(68, 68, 68, 0.4); 
    backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
    
    border: 1px solid #666;
    border-radius: 8px;
    
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chat-message.animate-in {
    opacity: 1;
    max-height: 500px;
    transform: translateX(0px) scale(1);
    margin-bottom: 10px;
}

/* Avatar */
.chat-msg-avatar {
    width: 65px; height: 65px; min-width: 65px; min-height: 65px;
    border-radius: 10%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(36, 36, 36, 0.8);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    
    opacity: 0; transform: translateY(20px); transition: 200ms;
}
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg-avatar i { font-size: 1.4em; color: rgba(255, 255, 255, 0.9); text-shadow: 1px 1px 0 #000; }
.chat-msg-avatar:hover { border-color: #ff8c00; box-shadow: 0 0 12px rgba(255, 140, 0, 0.5); cursor: pointer; }

/* Content */
.chat-msg-content {
    display: flex; flex-direction: column; gap: 4px; max-width: calc(100% - 50px);
    opacity: 0; transform: translateY(20px); transition: 200ms;
}

.chat-msg-username {
    color: #ff8c00;
    font-weight: 700;
    font-size: 1.0em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 1px 1px 0 #000;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    
    opacity: 0; transform: translateY(20px); transition: 200ms;
}

.chat-msg-bubble {
    background-color: rgba(68, 68, 68, 0.4);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    border: 1px solid #666;
    border-radius: 4px;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    
    opacity: 0; transform: translateY(20px); transition: 200ms;
}

.chat-msg-text {
    color: #ffffff;
    font-family: "Black Ops One", sans-serif;
    font-weight: 550;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    text-shadow: 1px 1px 0 #000;
    word-wrap: break-word; word-break: break-word;
    display: block;
}

.chat-msg-image {
    max-width: 100%; max-height: 180px; border-radius: 6px; margin-top: 6px; object-fit: contain;
}

/* Klasa pomocnicza do sekwencyjnego pokazywania elementów */
.chat-element-visible { opacity: 1 !important; transform: translateY(0px) !important; }

/* -----------------------------------------------------------------------------
   8. INPUT AREA
----------------------------------------------------------------------------- */
.chat-input-container {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 15px;
    min-height: 70px;
    
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(2px) !important; -webkit-backdrop-filter: blur(2px) !important;
    border-top: 2px solid rgba(68, 68, 68, 0.5);
    border-bottom: 2px solid rgba(255, 140, 0, 1);
    border-left: 2px solid rgba(68, 68, 68, 0.4);
    border-right: 2px solid rgba(68, 68, 68, 0.4);
    box-shadow: 0 4px 20px rgba(68, 68, 68, 0.2);
    flex-shrink: 0;
}

/* Attach Button (+) */
.chat-attach-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ff8c00;
    box-shadow: 0 0 8px rgba(255,140,0,0.3);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 700;
    width: 42px; height: 42px; min-width: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    
    touch-action: manipulation;
    position: relative;
}
.chat-attach-btn::after { content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -10px; }
.chat-attach-btn:hover { background: rgba(239, 68, 68, 0.2); transform: rotate(90deg); }

/* Input Field */
.chat-input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    background: rgba(68, 68, 68, 0.2);
    border: 1px solid #ff8c00;
    box-shadow: 0 0 8px rgba(255,140,0,0.3);
    border-radius: 6px;
    
    font-family: "Black Ops One", sans-serif !important;
    color: #ffffff;
    font-weight: 550;
    font-size: 0.8em;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
    outline: none;
    transition: all 0.3s ease;
    
    touch-action: manipulation;
}
.chat-input:focus { border: 1px solid #ff8c00; box-shadow: 0 0 8px rgba(255,140,0,0.3); }
.chat-input::placeholder { color: rgba(255, 255, 255, 0.3); font-weight: 550; font-size: 0.8em; }

/* Send Button (Enter) */
.chat-send-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ff8c00;
    box-shadow: 0 0 8px rgba(255,140,0,0.3);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8em;
    font-weight: 550;
    width: 86px; height: 42px; min-width: 76px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    
    touch-action: manipulation;
    position: relative;
}
.chat-send-btn::after { content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -10px; }
.chat-send-btn:hover { background: rgba(239, 68, 68, 0.2); transform: none; }
.chat-send-btn:active { transform: scale(0.95); box-shadow: 0 0 4px rgba(255,140,0,0.2); }

/* -----------------------------------------------------------------------------
   9. RESPONSIVE
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .chat-panel { width: 100%; top: 77px; height: calc(100vh - 77px); right: 0; border-radius: 0; }
    .chat-toggle-btn { right: 15px; bottom: 1px; } /* TABLET: Zmieniono na 15px */
    .chat-header { padding: 10px; }
    .chat-input-container { padding: 10px; }
}

@media (max-width: 480px) {
    .chat-toggle-btn { width: 50px; height: 50px; right: 15px; bottom: 12px; } /* Zmieniono bottom z 10px na 12px (podniesiono o 2px) */
    .chat-messages { padding: 10px; }
    
    /* WYMUSZENIE UKŁADU PRZYCISKÓW POD INPUTEM */
    .chat-input-container { 
        flex-wrap: wrap; 
        height: auto !important; /* Pozwól kontenerowi rosnąć */
        padding-bottom: 55px !important; /* Zwiększono do 55px (podniesiono o 5px) */
    }
    
    .chat-input { 
        order: 1; 
        width: 100%; 
        flex: 100%; 
        margin-bottom: 8px; /* Odstęp między inputem a przyciskami */
    }
    
    .chat-attach-btn, 
    .chat-send-btn { 
        order: 2; 
        flex: 1; 
    }

    /* WYŁĄCZENIE ROTACJI PRZYCISKU + NA TELEFONIE */
    .chat-attach-btn:hover {
        transform: none !important;
    }
}