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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07111f;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

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

/* SIDEBAR */

.sidebar {
    width: 260px;
    background: #050d18;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 35px;
}

.logo span {
    color: #d45b18;
}

.new-chat {
    border: 1px solid rgba(212, 91, 24, 0.5);
    background: rgba(212, 91, 24, 0.08);
    color: white;
    padding: 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.new-chat:hover {
    background: rgba(212, 91, 24, 0.18);
}

.sidebar-info {
    margin-top: auto;
    color: #708096;
    font-size: 12px;
    line-height: 1.6;
}

/* MAIN */

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

.topbar {
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 28px;
    background: rgba(7, 17, 31, 0.8);
}

.topbar-title {
    font-size: 17px;
    font-weight: 600;
}

.status {
    margin-left: 15px;
    font-size: 12px;
    color: #7f91a8;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #d45b18;
    border-radius: 50%;
    margin-right: 5px;
}

/* CHAT */

.chat {
    flex: 1;
    overflow-y: auto;
    padding: 35px 15%;
}

.welcome {
    max-width: 750px;
    margin: 70px auto;
    text-align: center;
}

.welcome h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.welcome h1 span {
    color: #d45b18;
}

.welcome p {
    color: #8494aa;
    font-size: 15px;
}

/* MESSAGES */

.message {
    max-width: 850px;
    margin: 0 auto 28px;
    display: flex;
    gap: 14px;
}

.avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: #0d2035;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.message.user .avatar {
    background: #d45b18;
}

.message-content {
    padding-top: 5px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.message-name {
    font-size: 12px;
    color: #708096;
    margin-bottom: 5px;
}

/* INPUT */

.input-area {
    padding: 20px 15% 25px;
}

.input-box {
    max-width: 850px;
    margin: auto;
    background: #0b192b;
    border: 1px solid #1d344f;
    border-radius: 15px;
    padding: 10px;
    display: flex;
    align-items: center;
}

#messageInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
    padding: 12px;
    resize: none;
}

#messageInput::placeholder {
    color: #64758a;
}

#sendButton {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 11px;
    background: #d45b18;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

#sendButton:hover {
    background: #e36b28;
    transform: translateY(-1px);
}

/* MOBILE */

@media (max-width: 800px) {

    .sidebar {
        display: none;
    }

    .chat {
        padding: 25px 15px;
    }

    .input-area {
        padding: 12px;
    }

    .welcome h1 {
        font-size: 29px;
    }
}