body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f7fb;
}

.chat-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.chat-list {
    width: 320px;
    background: #23243a;
    color: #fff;
    padding: 0;
    box-shadow: 2px 0 8px rgba(34,34,59,0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    overflow-y: auto;
    gap: 0;
}

.new-chat-btn {
    background: linear-gradient(90deg, #3e8ef7, #7f53ac);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    margin: 20px 16px 12px 16px;
    font-size: 1.13rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(34,34,59,0.12);
    outline: none;
}

.new-chat-btn:hover, .new-chat-btn:focus {
    background: linear-gradient(90deg, #2e7bcf, #7f53ac);
    box-shadow: 0 4px 16px rgba(34,34,59,0.16);
}

.chat-session {
    padding: 16px 28px;
    margin: 0 12px 6px 12px;
    background: #292a44;
    border-radius: 10px;
    font-size: 1.08rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 4px rgba(34,34,59,0.04);
    user-select: none;
    border: 2px solid transparent;
}

.chat-session:hover {
    background: #3e3f5e;
    color: #c3e0ff;
    border-color: #3e8ef7;
}

.chat-session.active {
    background: #3e8ef7;
    color: #fff;
    border-color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(62,142,247,0.10);
}


.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(34,34,59,0.08);
    overflow: hidden;
}

.chat-header {
    padding: 24px;
    border-bottom: 1px solid #ececec;
    background: #f6f7fb;
}

.chat-header h2 {
    margin: 0;
    font-size: 1.7rem;
    color: #22223b;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafaff;
}

.message {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(34,34,59,0.06);
    word-break: break-word;
}

.message.user {
    align-self: flex-end;
    background: #2e7bcf;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message.bot {
    align-self: flex-start;
    background: #e9ecef;
    color: #22223b;
    border-bottom-left-radius: 4px;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ececec;
    padding: 18px 24px;
    background: #f6f7fb;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #fff;
    margin-right: 16px;
    outline: none;
    box-shadow: 0 1px 4px rgba(34,34,59,0.04);
}

.chat-input button {
    background: #2e7bcf;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input button:hover {
    background: #235b96;
}
