*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Poppins,Arial,sans-serif;
}

body{
    background:#eef3f9;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* =========================
   CHAT CONTAINER
========================= */

.chat-container{
    width:950px;
    max-width:96%;
    height:92vh;
    background:#ffffff;
    border-radius:20px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 15px 45px rgba(0,0,0,.15);
}

/* =========================
   HEADER
========================= */

.chat-header{

    background:#003A70;
    color:#ffffff;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:16px 25px;

    border-bottom:3px solid #C96F1A;

}
/* =========================
   CHAT BODY
========================= */

.chat-body{
    flex:1;
    overflow-y:auto;
    padding:25px;
    background:#f7f9fc;
    scroll-behavior:smooth;
}

.chat-body::-webkit-scrollbar{
    width:8px;
}

.chat-body::-webkit-scrollbar-thumb{
    background:#c9c9c9;
    border-radius:20px;
}

/* =========================
   CHAT BUBBLES
========================= */

.bot-message,
.user-message{

    max-width:75%;
    padding:15px 18px;
    border-radius:18px;
    margin-bottom:18px;
    line-height:1.8;
    animation:fadeIn .25s ease;
    word-wrap:break-word;

}

.bot-message{

    background:#ffffff;
    border:1px solid #e8e8e8;
    color:#333;
    margin-right:auto;
    box-shadow:0 3px 12px rgba(0,0,0,.06);

}

.user-message{

    background:#C96F1A;
    color:#fff;
    margin-left:auto;
    box-shadow:0 3px 12px rgba(201,111,26,.25);

}

/* =========================
   TYPING INDICATOR
========================= */

.typing{

    display:flex;
    align-items:center;
    gap:6px;

}

.typing span{

    width:8px;
    height:8px;
    border-radius:50%;
    background:#888;
    animation:bounce 1.2s infinite;

}

.typing span:nth-child(2){

    animation-delay:.2s;

}

.typing span:nth-child(3){

    animation-delay:.4s;

}

/* =========================
   FOOTER INPUT
========================= */

.chat-footer{

    display:flex;
    gap:10px;
    padding:18px;
    background:#fff;
    border-top:1px solid #ececec;

}

.chat-footer input{

    flex:1;
    padding:15px;
    border-radius:12px;
    border:1px solid #d8d8d8;
    font-size:16px;
    outline:none;

}

.chat-footer input:focus{

    border-color:#003A70;

}

.chat-footer button{

    background:#C96F1A;
    color:#fff;
    border:none;
    padding:15px 28px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:.25s;

}

.chat-footer button:hover{

    background:#003A70;

}

.chat-footer button:disabled{

    background:#9b9b9b;
    cursor:not-allowed;

}

/* =========================
   BOTTOM BAR
========================= */

.bottom-bar{

    background:#f5f5f5;
    border-top:1px solid #e5e5e5;
    padding:12px 20px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    font-size:13px;
    color:#555;

}

.bottom-links{

    display:flex;
    gap:10px;
    align-items:center;

}

.bottom-links a{

    color:#003A70;
    text-decoration:none;
    font-weight:600;

}

.bottom-links a:hover{

    color:#C96F1A;

}

/* =========================
   ABOUT WINDOW
========================= */

.modal {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, .65);

    z-index: 9999;

    padding: 20px;
    box-sizing: border-box;

}

.modal-content {

    width: 720px;
    max-width: 95%;

    background: #fff;

    /* Position higher on the screen */
    margin: 2vh auto 0 auto;

    border-radius: 18px;

    padding: 30px 35px;

    position: relative;

    /* Prevent the window from extending below the screen */
    max-height: 92vh;

    box-sizing: border-box;

    /* Scroll the About content when necessary */
    overflow-y: auto;
    overflow-x: hidden;

    animation: fadeIn .25s ease;

    line-height: 1.8;

}

.modal-content h2 {

    color: #003A70;

    margin-top: 0;

}

.close {

    position: sticky;

    float: right;

    top: 0;
    right: 0;

    font-size: 30px;

    cursor: pointer;

    color: #777;

    z-index: 10;

}

.close:hover {

    color: #C96F1A;

}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(15px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

@keyframes bounce{

    0%,80%,100%{

        transform:scale(0);

    }

    40%{

        transform:scale(1);

    }

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

.chat-container{

    width:100%;
    height:100vh;
    border-radius:0;

}

.bot-message,
.user-message{

    max-width:92%;

}

.bottom-bar{

    flex-direction:column;
    gap:8px;
    text-align:center;

}

.modal-content{

    margin:20px auto;

}

}
/* ===========================
   HEADER
=========================== */

.header-title{

    display:flex;
    align-items:center;
    gap:15px;

    font-size:24px;
    font-weight:700;

}

.online-status{

    font-size:14px;
    font-weight:500;

    color:#9cff9c;

}

.library-logo{

    width:58px;
    height:58px;

    object-fit:contain;

    background:#ffffff;

    border-radius:50%;

    padding:4px;

}
.message-time{

    font-size:11px;

    color:#777;

    margin-top:4px;

    margin-bottom:12px;

    text-align:right;

    padding-right:10px;

}
.message-actions {

    display:flex;

    gap:8px;

    margin-top:5px;

    margin-left:5px;

}


.message-actions button {

    border:none;

    background:none;

    cursor:pointer;

    font-size:16px;

    padding:3px 6px;

}


.message-actions button:hover {

    background:#eeeeee;

    border-radius:6px;

}
.assist-prompt {
    color: #006994;
}
.ai-disclaimer {
    text-align: center;
    margin: 8px auto;
    padding: 0 15px;
    width: 90%;
    box-sizing: border-box;

    font-size: 11px;
    opacity: 0.55;
    line-height: 1.4;

    background: #eef3f9;
}