/* ======================================================
   RNEC AI Assistant
====================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
}

/* ======================================================
   Floating Button
====================================================== */

#chatbot-toggle{

    position:fixed;

    bottom:25px;

    right:25px;

    width:65px;

    height:65px;

    border:none;

    border-radius:50%;

    background:#0d6e4d;

    color:#fff;

    font-size:28px;

    cursor:pointer;

    box-shadow:0 15px 35px rgba(0,0,0,.25);

    z-index:99999;

    transition:.3s;

}

#chatbot-toggle:hover{

    transform:scale(1.08);

}

/* ======================================================
   Window
====================================================== */

#chatbot-window{

    position:fixed;

    bottom:100px;

    right:25px;

    width:420px;

    height:720px;

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    display:none;

    flex-direction:column;

    box-shadow:0 25px 60px rgba(0,0,0,.20);

    z-index:99999;

}

/* ======================================================
   Header
====================================================== */

#chatbot-header{

    background:#0d6e4d;

    color:#fff;

    padding:18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.header-left{

    display:flex;

    align-items:center;

}

.bot-avatar{

    width:55px;

    height:55px;

    border-radius:50%;

    background:#fff;

    color:#0d6e4d;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:26px;

    margin-right:15px;

}

.bot-title{

    font-size:18px;

    font-weight:700;

}

.bot-status{

    font-size:13px;

    opacity:.9;

}

.status-dot{

    width:8px;

    height:8px;

    display:inline-block;

    background:#32d74b;

    border-radius:50%;

    margin-right:6px;

}

/* ======================================================
   Close
====================================================== */

#chatbot-close{

    border:none;

    background:none;

    color:#fff;

    font-size:24px;

    cursor:pointer;

}

/* ======================================================
   Messages
====================================================== */

#chat-messages{

    flex:1;

    overflow-y:auto;

    background:#f7f9fc;

    padding:20px;

}

.bot-message{

    background:#fff;

    padding:18px;

    border-radius:18px;

    margin-bottom:15px;

    box-shadow:0 5px 20px rgba(0,0,0,.06);

    line-height:1.7;

}

.user-message{

    background:#0d6e4d;

    color:#fff;

    padding:16px;

    border-radius:18px;

    margin:15px 0;

    margin-left:50px;

}

.welcome-message h3{

    margin-bottom:12px;

}

.welcome-message ul{

    margin-top:10px;

    padding-left:20px;

}

/* ======================================================
   Quick Actions
====================================================== */

#rnec-quick-actions{

    padding:15px;

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    background:#fff;

    border-top:1px solid #eee;

}

.quick-action{

    border:1px solid #0d6e4d;

    background:#fff;

    color:#0d6e4d;

    padding:10px 16px;

    border-radius:30px;

    cursor:pointer;

    transition:.25s;

    font-size:13px;

    font-weight:600;

}

.quick-action:hover{

    background:#0d6e4d;

    color:#fff;

}

/* ======================================================
   Typing
====================================================== */

#typing-indicator{

    display:none;

    padding:15px 20px;

}

#typing-indicator span{

    width:8px;

    height:8px;

    border-radius:50%;

    display:inline-block;

    background:#777;

    margin-right:4px;

    animation:typing 1.2s infinite;

}

#typing-indicator span:nth-child(2){

    animation-delay:.2s;

}

#typing-indicator span:nth-child(3){

    animation-delay:.4s;

}

@keyframes typing{

    0%,100%{

        opacity:.2;

        transform:translateY(0);

    }

    50%{

        opacity:1;

        transform:translateY(-4px);

    }

}

/* ======================================================
   Input
====================================================== */

#chat-input-area{

    display:flex;

    padding:15px;

    border-top:1px solid #eee;

    background:#fff;

}

#chat-input{

    flex:1;

    resize:none;

    border:1px solid #ddd;

    border-radius:15px;

    padding:12px;

    font-size:15px;

    outline:none;

    max-height:120px;

}

#send-button{

    width:50px;

    margin-left:10px;

    border:none;

    border-radius:15px;

    background:#0d6e4d;

    color:#fff;

    cursor:pointer;

    font-size:22px;

}

/* ======================================================
   Source Cards
====================================================== */

.chat-sources-title{

    margin-top:20px;

    margin-bottom:12px;

    font-weight:700;

    color:#777;

}

.chat-source-card{

    display:flex;

    text-decoration:none;

    background:#fff;

    border-radius:16px;

    padding:15px;

    margin-top:10px;

    border:1px solid #e6e6e6;

    transition:.25s;

}

.chat-source-card:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.chat-source-icon{

    width:48px;

    height:48px;

    border-radius:12px;

    background:#eef8f4;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    margin-right:14px;

}

.chat-source-title{

    font-weight:700;

    color:#222;

}

.chat-source-desc{

    color:#666;

    font-size:13px;

    margin-top:5px;

}

.chat-source-action{

    color:#0d6e4d;

    margin-top:8px;

    font-weight:600;

}

/* ======================================================
   Mobile
====================================================== */

@media(max-width:768px){

#chatbot-window{

    width:100%;

    height:100%;

    right:0;

    bottom:0;

    border-radius:0;

}

#chatbot-toggle{

    right:18px;

    bottom:18px;

}

}

.chat-feedback{

display:flex;

gap:10px;

margin-top:15px;

}

.feedback-btn,
.copy-btn{

border:none;

padding:8px 14px;

border-radius:25px;

cursor:pointer;

background:#f2f2f2;

transition:.25s;

font-size:13px;

}

.feedback-btn:hover{

background:#0d6e4d;

color:#fff;

}

.copy-btn:hover{

background:#0d6e4d;

color:#fff;

}