/* =========================
   GLOBAL RESET
========================= */

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

body {

    font-family: "Inter", sans-serif;
    background: #05070d;
    color: #e8edf7;
    height: 100vh;
    overflow: hidden;

}


/* =========================
   APP LAYOUT
========================= */

.app {

    display: flex;
    height: 100vh;

}


/* =========================
   SIDEBAR
========================= */

.sidebar {

    width: 280px;
    background: linear-gradient(
        180deg,
        #0b1020,
        #070a12
    );

    border-right: 1px solid rgba(255,255,255,0.08);

    padding: 25px;

    display: flex;
    flex-direction: column;

}


/* BRAND */

.brand {

    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;

}


.brand-logo {

    width: 50px;
    height: 50px;

    border-radius: 14px;

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

    font-size: 26px;
    font-weight: 800;

    color: white;

    background:

    linear-gradient(
        135deg,
        #00e5ff,
        #0066ff
    );

    box-shadow:
    0 0 30px rgba(0,229,255,.35);

}


.brand h2 {

    font-size: 22px;
    font-weight: 700;

}


.brand span {

    color: #8b95aa;
    font-size: 13px;

}


/* NEW CHAT */

.new-chat {

    width:100%;

    padding:14px;

    border:none;

    border-radius:12px;

    background:

    linear-gradient(
        135deg,
        #007cf0,
        #00dfd8
    );

    color:white;

    font-size:15px;
    font-weight:600;

    cursor:pointer;

    transition:.3s;

}


.new-chat:hover {

    transform:translateY(-2px);

    box-shadow:
    0 10px 30px rgba(0,220,255,.25);

}


/* NAVIGATION */

nav {

    margin-top:35px;

}


nav h3 {

    color:#667085;

    font-size:12px;

    text-transform:uppercase;

    letter-spacing:1px;

    margin-bottom:15px;

}


nav a {

    display:block;

    text-decoration:none;

    color:#b8c1d9;

    padding:12px 15px;

    border-radius:10px;

    margin-bottom:5px;

    transition:.25s;

}


nav a:hover {

    background:
    rgba(255,255,255,.06);

    color:white;

}


nav .active {

    background:
    rgba(0,229,255,.12);

    color:#00e5ff;

}


/* FOOTER */

.sidebar-footer {

    margin-top:auto;

    color:#667085;

    font-size:13px;

}


/* =========================
   MAIN AREA
========================= */


.main {

    flex:1;

    display:flex;

    flex-direction:column;

}


/* TOP BAR */

.topbar {

    height:90px;

    padding:25px 40px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-bottom:
    1px solid rgba(255,255,255,.08);

}


.topbar h1 {

    font-size:25px;

}


.topbar p {

    margin-top:5px;

    color:#8892a8;

}


.online {

    display:flex;

    align-items:center;

    gap:10px;

    color:#9aa4b8;

}


.online-dot {

    width:10px;

    height:10px;

    background:#00ff88;

    border-radius:50%;

    box-shadow:
    0 0 15px #00ff88;

}



/* =========================
   CHAT AREA
========================= */


.chat {

    flex:1;

    padding:40px;

    overflow-y:auto;

}


.welcome {

    text-align:center;

    margin-top:40px;

    margin-bottom:60px;

}


.welcome h2 {

    font-size:40px;

    background:

    linear-gradient(
        90deg,
        #00e5ff,
        #007cf0
    );

    -webkit-background-clip:text;

    color:transparent;

}


.welcome p {

    color:#8993a8;

    margin-top:10px;

    font-size:18px;

}



/* MESSAGE */


.message {

    display:flex;

    gap:15px;

    max-width:800px;

}


.avatar {

    width:42px;

    height:42px;

    border-radius:12px;

    background:#007cf0;

    display:flex;

    justify-content:center;

    align-items:center;

    font-weight:700;

}


.bubble {

    background:

    rgba(255,255,255,.06);

    border:

    1px solid rgba(255,255,255,.08);

    padding:18px 22px;

    border-radius:18px;

    line-height:1.6;

    backdrop-filter:blur(15px);

}



/* =========================
   INPUT AREA
========================= */


.composer {

    padding:25px 40px;

}


.composer-box {

    max-width:900px;

    margin:auto;

    background:#111827;

    border:

    1px solid rgba(255,255,255,.1);

    border-radius:18px;

    display:flex;

    align-items:center;

    padding:10px;

}


.icon {

    width:45px;

    height:45px;

    border:none;

    background:none;

    color:white;

    font-size:25px;

    cursor:pointer;

}


input {

    flex:1;

    background:none;

    border:none;

    outline:none;

    color:white;

    font-size:16px;

    padding:15px;

}


input::placeholder {

    color:#718096;

}


.send {

    width:45px;

    height:45px;

    border-radius:12px;

    border:none;

    cursor:pointer;

    background:

    linear-gradient(
        135deg,
        #00e5ff,
        #007cf0
    );

    color:white;

    font-size:20px;

    transition:.3s;

}


.send:hover {

    transform:scale(1.08);

}


/* =========================
   SCROLLBAR
========================= */


::-webkit-scrollbar {

    width:8px;

}


::-webkit-scrollbar-thumb {

    background:#1f2937;

    border-radius:20px;

}


/* =========================
   MOBILE
========================= */


@media(max-width:900px){

.sidebar{

    display:none;

}

.topbar{

    padding:20px;

}

.chat{

    padding:20px;

}

.composer{

    padding:15px;

}

}
