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

body{
    background:#0B0B0F;
    font-family:Arial;
    color:white;
    overflow:hidden;
}

.app{
    display:flex;
    height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:260px;
    background:#111114;
    border-right:1px solid #222;
    padding:20px;
    display:flex;
    flex-direction:column;
}

/* LOGO */

.logo{

    display:flex;
    align-items:center;
    gap:12px;

    margin-bottom:30px;

}

.logo-img{

    width:55px;
    height:55px;

    border-radius:15px;

    object-fit:cover;

    box-shadow:0 0 20px #8B5CF6;

}

.logo-text{

    font-size:28px;
    font-weight:bold;
    color:#8B5CF6;

}

/* NEW CHAT */

.new-chat{
    width:100%;
    padding:15px;
    border:none;
    border-radius:15px;
    background:#8B5CF6;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
    margin-bottom:25px;
}

.new-chat:hover{
    opacity:0.8;
}

/* MENU */

.menu{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.menu-item{
    padding:15px;
    border-radius:15px;
    cursor:pointer;
    transition:0.3s;
}

.menu-item:hover{
    background:#1A1A22;
}

/* MAIN */

.main{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* TOP BAR */

.top-bar{
    padding:20px;
    border-bottom:1px solid #222;
    font-size:20px;
    background:#111114;
}

/* CHAT BOX */

.chat-box{
    flex:1;
    padding:25px;
    overflow-y:auto;
}

/* MESSAGES */

.user-message{
    background:#8B5CF6;
    padding:15px;
    border-radius:18px;
    margin-bottom:20px;
    width:fit-content;
    max-width:70%;
    margin-left:auto;
    line-height:1.5;
}

.ai-message{
    background:#1A1A22;
    padding:15px;
    border-radius:18px;
    margin-bottom:20px;
    width:fit-content;
    max-width:70%;
    line-height:1.5;
}

/* IMAGE / VIDEO */

.chat-box img,
.chat-box video{
    max-width:250px;
    border-radius:15px;
}

audio{
    width:250px;
}

/* PREVIEW AREA */

.preview-area{

    padding:10px 20px;

    display:flex;
    gap:10px;

    overflow-x:auto;

    background:#111114;

}

.preview-box{
    position:relative;
}

.preview-box img,
.preview-box video{
    width:120px;
    border-radius:15px;
}

/* REMOVE PREVIEW */

.remove-preview{

    position:absolute;
    top:5px;
    right:5px;

    width:25px;
    height:25px;

    background:red;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:12px;

}

/* INPUT AREA */

.input-area{
    display:flex;
    align-items:center;
    gap:10px;
    padding:20px;
    border-top:1px solid #222;
    background:#111114;
}

/* PLUS BUTTON */

.plus-btn{

    width:55px;
    height:55px;

    background:#1A1A22;

    border:1px solid #2A2A35;

    border-radius:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:30px;
    color:white;

    transition:0.3s;

}

.plus-btn:hover{
    background:#8B5CF6;
}

/* INPUT */

input{
    flex:1;
    padding:18px;
    border:none;
    border-radius:18px;
    background:#1A1A22;
    color:white;
    outline:none;
    font-size:15px;
}

input::placeholder{
    color:#777;
}

/* BUTTON */

button{
    padding:18px 25px;
    border:none;
    border-radius:18px;
    background:#8B5CF6;
    color:white;
    cursor:pointer;
    transition:0.3s;
}

button:hover{
    opacity:0.8;
}

/* FOOTER */

.powered{
    text-align:center;
    padding:10px;
    color:#777;
    font-size:13px;
    border-top:1px solid #222;
    background:#111114;
}

/* TYPING DOTS */

.typing-dot{

    width:10px;
    height:10px;

    background:white;

    border-radius:50%;

    display:inline-block;

    margin-right:5px;

    animation:bounce 1s infinite;

}

.typing-dot:nth-child(2){
    animation-delay:0.2s;
}

.typing-dot:nth-child(3){
    animation-delay:0.4s;
}

@keyframes bounce{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-5px);
    }

    100%{
        transform:translateY(0);
    }

}

/* ANIMATION */

.fade-in{
    animation:fade 0.3s ease;
}

@keyframes fade{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* SCROLLBAR */

.chat-box::-webkit-scrollbar{
    width:5px;
}

.chat-box::-webkit-scrollbar-thumb{
    background:#8B5CF6;
    border-radius:10px;
}

/* MOBILE */

@media(max-width:768px){

    .sidebar{
        display:none;
    }

    .chat-box{
        padding:15px;
    }

    .user-message,
    .ai-message{
        max-width:90%;
    }

}