.bts-client-portal { max-width: 850px; margin: 40px auto; font-family: sans-serif; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; }
.bts-portal-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; background: #f8f9fa; border-bottom: 1px solid #eee; }
/* ... i tako dalje za sve ostale stilove ... */

/* Smanjivanje fonta koje smo malopre radili */
.bts-client-chat .reply-content p {
    font-size: 13px !important;
    line-height: 1.5;
    margin: 0;
}
.reply-meta {
    font-size: 11px;
    margin-bottom: 4px;
    opacity: 0.8;
}
.bts-client-portal { max-width: 850px; margin: 40px auto; font-family: sans-serif; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; }
.bts-portal-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; background: #f8f9fa; border-bottom: 1px solid #eee; }
.bts-header-info { display: flex; align-items: center; gap: 15px; }
.bts-ticket-id { background: #0073aa; color: #fff; padding: 4px 10px; border-radius: 6px; font-weight: bold; font-size: 14px; }
.bts-status-tag { padding: 6px 16px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.status-open { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-closed { background: #f8d7da; color: #721c24; }
.bts-client-chat { padding: 30px; display: flex; flex-direction: column; gap: 20px; max-height: 600px; overflow-y: auto; }
.bts-client-reply { padding: 15px 20px; border-radius: 15px; max-width: 80%; }
.is-admin { align-self: flex-start; background: #f1f3f5; border: 1px solid #e9ecef; }
.is-customer { align-self: flex-end; background: #0073aa; color: #fff; }
.bts-reply-box { padding: 30px; background: #f8f9fa; border-top: 1px solid #eee; }
.bts-textarea-wrapper {
    width: 100%;
    display: block;
    clear: both;
}

#bts-client-message {
    width: 100% !important;
    max-width: 100%;
    min-height: 120px;
    box-sizing: border-box; /* Kljucno: sprecava da padding proširi element van ekrana */
    display: block;
    margin: 10px 0;
    float: none !important; /* Poništava bilo kakvo "bežanje" u stranu */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
}
/* --- KONTEJNER ZA AKCIJE (Dugme i Prilog) --- */
.bts-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
    clear: both;
}

/* --- STIL ZA DUGME (Desktop) --- */
.bts-btn {
    background: #0073aa;
    color: #ffffff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;    /* Omogucava flexbox */
    align-items: center;     /* Vertikalno centriranje ikonice i teksta */
    justify-content: center; /* Horizontalno centriranje */
    gap: 10px;               /* Razmak izmedu avionceta i teksta */
    height: 40px;
    text-decoration: none;
    line-height: 1;
}

.bts-btn:hover {
    background: #005177;
}

/* --- SREĐIVANJE AVIONCETA (IKONICE) --- */
.bts-btn .dashicons-send {
    font-family: 'dashicons' !important; /* Osigurava da se font ucita */
    display: inline-block !important;    /* Force vidljivost */
    color: #ffffff !important;           /* Bela boja avionceta */
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin: 0 !important;                /* Resetuje margine koje kvare centar */
}

/* --- STIL ZA "PRILOŽI FAJL" --- */
.bts-file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f1f3f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    transition: all 0.2s;
    white-space: nowrap;
}

/* --- MOBILNA VERZIJA (ispod 782px) --- */
@media screen and (max-width: 782px) {
    .bts-form-actions {
        flex-direction: column; 
        align-items: stretch;
        gap: 10px;
    }

    .bts-btn, .bts-file-label {
        width: 100%;            /* Puna širina na mobilnom */
        justify-content: center; 
        height: 45px;           /* Vece za lakši dodir */
    }
}

/* --- DODACI ZA CHAT --- */
.bts-client-chat { max-height: 500px; overflow-y: auto; }

#bts-typing-indicator {
    padding: 8px 15px;
    background: #f1f3f5;
    border-radius: 10px;
    display: inline-block;
    color: #6c757d;
    font-size: 13px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}