/* =========================================================
   EASY RIDER AI
   Interfaccia Chat - Modal Bootstrap 3
   ========================================================= */

/* Dimensione finestra */
#easyRiderAiModal .modal-dialog {
    width: 680px;
    max-width: 94%;
    margin: 25px auto;
}

/* Contenitore principale */
#easyRiderAiModal .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.30);
}

/* Intestazione */
#easyRiderAiModal .modal-header {
    background: #174766;
    color: #ffffff;
    border-bottom: 0;
    padding: 18px 20px;
}

/* Titolo */
#easyRiderAiModal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* X chiusura */
#easyRiderAiModal .modal-header .close {
    color: #ffffff;
    opacity: 0.8;
    text-shadow: none;
    font-size: 28px;
}

#easyRiderAiModal .modal-header .close:hover {
    opacity: 1;
}

/* Corpo del modal */
#easyRiderAiModal .modal-body {
    padding: 0;
    background: #f5f7f8;
}

/* Contenitore chat */
#easy-rider-ai-chat {
    height: 650px;
    display: flex;
    flex-direction: column;
}

/* Area messaggi */
#easy-rider-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

/* Messaggio generico */
.easy-rider-ai-message {
    max-width: 82%;
    padding: 13px 16px;
    margin-bottom: 15px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
}

/* Messaggi Easy Rider AI */
.easy-rider-ai-bot {
    background: #ffffff;
    color: #444444;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Messaggi cliente - ci servirà nel prossimo passaggio */
.easy-rider-ai-user {
    background: #4ab9cf;
    color: #ffffff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

/* Zona scrittura */
#easy-rider-ai-input-area {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

/* Campo messaggio */
#easy-rider-ai-input {
    flex: 1;
    height: 46px;
    background: #ffffff;
    border: 1px solid #d5d5d5;
    border-radius: 23px;
    padding: 0 18px;
    box-shadow: none;
    font-size: 15px;
}

#easy-rider-ai-input:focus {
    border-color: #4ab9cf;
    outline: none;
    box-shadow: none;
}

/* Pulsante INVIA */
#easy-rider-ai-send {
    height: 46px;
    margin-left: 10px;
    padding: 0 20px;
    border-radius: 23px;
    background: #4ab9cf;
    border-color: #4ab9cf;
    color: #ffffff;
    font-weight: 600;
}

#easy-rider-ai-send:hover,
#easy-rider-ai-send:focus {
    background: #30a0b6;
    border-color: #30a0b6;
    color: #ffffff;
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 600px) {

    #easyRiderAiModal .modal-dialog {
        width: auto;
        max-width: none;
        margin: 10px;
    }

    #easyRiderAiModal .modal-content {
        border-radius: 8px;
    }

    #easy-rider-ai-chat {
        height: calc(100vh - 110px);
        min-height: 400px;
    }

    #easy-rider-ai-messages {
        padding: 15px;
    }

    .easy-rider-ai-message {
        max-width: 90%;
    }

    #easy-rider-ai-send {
        padding-left: 16px;
        padding-right: 16px;
    }
}