:root {
    --gradient-primary: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --gradient-secondary: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --color-text-primary: #1a1a2e;
    --color-text-secondary: #4b4b6a;
    --color-background: #f4f4f8;
    --color-white: #ffffff;
    --color-accent: #5d3fd3;
    --shadow-subtle: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.chat-container {
    display: flex;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    background: var(--color-white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: var(--gradient-secondary);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: var(--shadow-subtle);
}

.logo h2 {
    font-weight: 600;
    color: var(--color-text-primary);
}

.new-chat-button {
    display: flex;
    align-items: center;
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
}

.new-chat-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.plus-icon {
    margin-right: 10px;
    font-weight: bold;
}

.main-chat {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom right, #f9f9fc, #f1f2f6);
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 25px;
    text-align: center;
}

.header-content h1 {
    font-weight: 600;
    margin-bottom: 10px;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 800px;
    width: 100%;
    margin: 10px auto;
    padding: 15px 20px;
    border-radius: 15px;
    position: relative;
}

.user-message {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    align-self: flex-end;
}

.bot-message {
    background: var(--color-white);
    box-shadow: var(--shadow-subtle);
    color: var(--color-text-primary);
    align-self: flex-start;
}

.chat-input-container {
    background: var(--color-white);
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.input-wrapper {
    display: flex;
    background: #f1f2f6;
    border-radius: 15px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

#user-input {
    flex-grow: 1;
    border: none;
    padding: 15px;
    background: transparent;
    resize: none;
    max-height: 150px;
}

.send-button {
    background: var(--color-accent);
    border: none;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.send-button:hover {
    opacity: 0.9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f2f6;
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}