 /*==============================
      GOOGLE FONT & RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

:root{

    --primary:#00E5FF;
    --secondary:#6C63FF;
    --dark:#050816;
    --card:rgba(15,23,42,.82);
    --border:rgba(255,255,255,.08);
    --text:#ffffff;
    --text-light:#B5C2D9;

}

body{

    background:#050816;
    color:var(--text);
    overflow:hidden;

}

/*==============================
      BACKGROUND
==============================*/

.background{

    position:fixed;
    inset:0;

    background:
    linear-gradient(rgba(5,8,22,.82),rgba(5,8,22,.90)),
    url("images/background.jpg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    z-index:-2;

}

.background::after{

    content:"";

    position:absolute;

    inset:0;

    backdrop-filter:blur(8px);

}

/*==============================
        CHAT APP
==============================*/

.chat-app{

    width:100%;
    height:100vh;

    display:flex;

}

/*==============================
        SIDEBAR
==============================*/

.sidebar{

    width:300px;

    background:rgba(10,15,30,.82);

    backdrop-filter:blur(18px);

    border-right:1px solid rgba(255,255,255,.08);

    display:flex;

    flex-direction:column;

    padding:30px;

}

/*==============================
        LOGO
==============================*/

.logo{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:35px;

}

.logo img{

    width:60px;

    filter:drop-shadow(0 0 20px var(--primary));

    animation:floatLogo 4s ease-in-out infinite;

}

.logo h2{

    font-size:30px;

    font-weight:700;

}

@keyframes floatLogo{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-8px);

}

100%{

transform:translateY(0);

}

}

/*==============================
      NEW CHAT BUTTON
==============================*/

.new-chat{

    width:100%;

    padding:16px;

    border:none;

    border-radius:16px;

    background:var(--primary);

    color:#000;

    font-size:17px;

    font-weight:600;

    cursor:pointer;

    transition:.4s;

    margin-bottom:35px;

}

.new-chat:hover{

    transform:translateY(-5px);

    box-shadow:0 0 25px var(--primary);

}

/*==============================
      CHAT HISTORY
==============================*/

.chat-history{

    flex:1;

}

.chat-history h3{

    margin-bottom:18px;

    color:var(--primary);

}

.chat-history ul{

    list-style:none;

}

.chat-history li{

    padding:14px;

    margin-bottom:12px;

    border-radius:14px;

    cursor:pointer;

    transition:.35s;

    color:var(--text-light);

}

.chat-history li:hover{

    background:rgba(0,229,255,.12);

    color:white;

}

.chat-history i{

    margin-right:10px;

    color:var(--primary);

}

/*==============================
      MAIN CONTENT
==============================*/

.main-content{

    flex:1;

    display:flex;

    flex-direction:column;

}/*==============================
        TOP BAR
==============================*/

.top-bar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:25px 35px;

    border-bottom:1px solid rgba(255,255,255,.08);

    background:rgba(10,15,30,.45);

    backdrop-filter:blur(15px);

}

/*==============================
        SEARCH BOX
==============================*/

.search-box{

    width:420px;

    display:flex;
    align-items:center;
    gap:12px;

    background:rgba(255,255,255,.05);

    padding:14px 20px;

    border-radius:50px;

}

.search-box i{

    color:var(--primary);

}

.search-box input{

    flex:1;

    background:none;

    border:none;

    outline:none;

    color:white;

    font-size:16px;

}

.search-box input::placeholder{

    color:#A0AEC0;

}

/*==============================
        PROFILE
==============================*/

.profile{

    display:flex;
    align-items:center;
    gap:12px;

}

.profile img{

    width:50px;
    height:50px;

    border-radius:50%;

    border:2px solid var(--primary);

    box-shadow:0 0 20px rgba(0,229,255,.4);

}

.profile span{

    font-weight:600;

}

/*==============================
        CHAT AREA
==============================*/

.chat-area{

    flex:1;

    padding:40px;

    overflow-y:auto;

}

/*==============================
        WELCOME
==============================*/

.welcome{

    text-align:center;

    margin-bottom:50px;

}

.welcome img{

    width:170px;

    margin-bottom:20px;

    animation:floatAI 5s ease-in-out infinite;

    filter:drop-shadow(0 0 35px rgba(0,229,255,.5));

}

@keyframes floatAI{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-12px);

}

100%{

transform:translateY(0);

}

}

.welcome h1{

    font-size:46px;

    margin-bottom:15px;

}

.welcome p{

    max-width:700px;

    margin:auto;

    color:var(--text-light);

    line-height:1.8;

    font-size:17px;

}

.welcome strong{

    color:var(--primary);

}/*==============================
        CHAT MESSAGES
==============================*/

.messages{

    display:flex;
    flex-direction:column;
    gap:25px;

}

.message{

    display:flex;
    align-items:flex-start;
    gap:15px;

}

.message img{

    width:50px;
    height:50px;
    border-radius:50%;
    border:2px solid var(--primary);
    box-shadow:0 0 20px rgba(0,229,255,.35);

}

.message-content{

    max-width:700px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

    padding:18px 22px;

    border-radius:20px;

    color:white;

    line-height:1.8;

}

.user-message{

    justify-content:flex-end;

}

.user-message .message-content{

    background:linear-gradient(135deg,#00E5FF,#0099ff);

    color:#000;

    font-weight:500;

}

/*==============================
        CHAT INPUT
==============================*/

.chat-input-area{

    display:flex;
    align-items:center;
    gap:15px;

    padding:20px 30px;

    background:rgba(10,15,30,.75);

    backdrop-filter:blur(20px);

    border-top:1px solid rgba(255,255,255,.08);

}

.chat-input-area input{

    flex:1;

    background:rgba(255,255,255,.06);

    border:none;

    outline:none;

    color:white;

    padding:18px 22px;

    border-radius:50px;

    font-size:16px;

}

.chat-input-area input::placeholder{

    color:#A0AEC0;

}

.attach-btn,
.send-btn{

    width:55px;
    height:55px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    font-size:20px;

    transition:.35s;

}

.attach-btn{

    background:rgba(255,255,255,.08);

    color:var(--primary);

}

.send-btn{

    background:var(--primary);

    color:#000;

}

.attach-btn:hover{

    background:rgba(0,229,255,.15);

    transform:scale(1.08);

}

.send-btn:hover{

    transform:scale(1.08);

    box-shadow:0 0 25px var(--primary);

}

/*==============================
      CUSTOM SCROLLBAR
==============================*/

.chat-area::-webkit-scrollbar{

    width:8px;

}

.chat-area::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

.chat-area::-webkit-scrollbar-track{

    background:transparent;

}/*==============================
        RESPONSIVE DESIGN
==============================*/

@media (max-width:1100px){

    .sidebar{

        width:260px;

    }

    .search-box{

        width:300px;

    }

    .welcome h1{

        font-size:38px;

    }

}

@media (max-width:900px){

    .chat-app{

        flex-direction:column;

    }

    .sidebar{

        width:100%;
        height:auto;

        border-right:none;

        border-bottom:1px solid rgba(255,255,255,.08);

    }

    .chat-history{

        display:none;

    }

    .top-bar{

        padding:18px;

    }

    .search-box{

        width:220px;

    }

}

@media (max-width:768px){

    .top-bar{

        flex-direction:column;
        gap:20px;

    }

    .search-box{

        width:100%;

    }

    .profile{

        align-self:flex-end;

    }

    .welcome img{

        width:130px;

    }

    .welcome h1{

        font-size:32px;

    }

    .welcome p{

        font-size:15px;

    }

    .message{

        gap:10px;

    }

    .message img{

        width:40px;
        height:40px;

    }

    .message-content{

        max-width:100%;

        font-size:15px;

    }

    .chat-input-area{

        padding:15px;

    }

}

@media (max-width:500px){

    .logo h2{

        font-size:24px;

    }

    .new-chat{

        font-size:15px;

    }

    .chat-input-area input{

        font-size:14px;

    }

}

/*==============================
        HOVER EFFECTS
==============================*/

.logo img:hover{

    transform:scale(1.08);

}

.profile img:hover{

    transform:scale(1.08);

}

.message-content:hover{

    transform:translateY(-4px);

    transition:.3s;

    box-shadow:0 0 20px rgba(0,229,255,.18);

}

/*==============================
        FADE ANIMATION
==============================*/

.fade{

    opacity:0;

    transform:translateY(30px);

    transition:1s;

}

.fade.show{

    opacity:1;

    transform:translateY(0);

}

/*==============================
        SELECTION COLOR
==============================*/

::selection{

    background:var(--primary);

    color:#000;

}