/* body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
}

.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 300px;
    background: #1e293b;
    padding: 20px;
    overflow-y: auto;
}

.sidebar h2 {
    margin-top: 0;
}

.btn {
    display: block;
    background: #334155;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 5px;
}

.chat-history a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #cbd5e1;
}

.chat-history a.active {
    background: #334155;
    border-radius: 5px;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.title {
    text-align: center;
    margin: 20px 0;
    font-size: 28px;
}

.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
}

.message.user {
    background: #334155;
    text-align: right;
}

.message.ai {
    background: #1e40af;
}

.input-area {
    display: flex;
    padding: 15px;
    background: #1e293b;
}

.input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: none;
}

.input-area button {
    margin-left: 10px;
    padding: 10px 20px;
    border-radius: 50%;
    border: none;
    background: #3b82f6;
    color: white;
} */





:root {
--bg-dark: #0f172a;
--sidebar-bg: #1e293b;
--accent: #3b82f6;
--accent-hover: #2563eb;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--user-msg: #3b82f6;
--ai-msg: #334155;
--border: #334155;
--transition: all 0.2s ease;
}

* { box-sizing: border-box; }

body {
margin: 0;
font-family: 'Inter', sans-serif;
background: var(--bg-dark);
color: var(--text-primary);
overflow: hidden;
}

nav {
display: flex;
align-items: center;
padding: 0 24px;
height: 60px;
background: var(--sidebar-bg);
border-bottom: 1px solid var(--border);
gap: 20px;
}

nav a {
color: var(--text-secondary);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: var(--transition);
}

nav a:hover { color: var(--text-primary); }

.app-container {
display: flex;
height: calc(100vh - 60px);
}

.sidebar {
width: 320px;
background: var(--sidebar-bg);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 24px;
}

.btn {
display: block;
background: var(--accent);
color: white;
padding: 12px;
text-align: center;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
margin-bottom: 24px;
transition: var(--transition);
}

.btn:hover { background: var(--accent-hover); }

.upload-box {
background: rgba(0,0,0,0.2);
padding: 16px;
border-radius: 12px;
border: 1px dashed var(--border);
margin-bottom: 24px;
}

.upload-box button {
width: 100%;
padding: 8px;
border: none;
border-radius: 6px;
background: var(--ai-msg);
color: white;
cursor: pointer;
}

.chat-history {
flex: 1;
overflow-y: auto;
}

.chat-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-radius: 8px;
transition: var(--transition);
}

.chat-item:hover { background: rgba(255,255,255,0.05); }
.chat-item.active { background: var(--ai-msg); }

.chat-title {
flex: 1;
color: var(--text-secondary);
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.chat-item.active .chat-title { color: white; }

.chat-actions {
display: flex;
gap: 6px;
opacity: 0;
transition: var(--transition);
}

.chat-item:hover .chat-actions { opacity: 1; }

.chat-actions button {
background: transparent;
border: none;
cursor: pointer;
font-size: 14px;
padding: 4px;
border-radius: 4px;
}

.chat-actions button:hover {
background: rgba(255,255,255,0.1);
}

.main-area {
flex: 1;
display: flex;
flex-direction: column;
}

.title {
padding: 20px;
margin: 0;
border-bottom: 1px solid var(--border);
}

.messages {
flex: 1;
padding: 40px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 20px;
}

.message {
max-width: 80%;
padding: 14px 18px;
border-radius: 18px;
}

.message.user {
align-self: flex-end;
background: var(--user-msg);
color: white;
}

.message.ai {
align-self: flex-start;
background: var(--ai-msg);
}

.input-wrapper {
padding: 24px 40px 40px 40px;
}

.input-area {
display: flex;
background: var(--sidebar-bg);
border: 1px solid var(--border);
border-radius: 100px;
padding: 8px 20px;
}

.input-area input {
flex: 1;
background: transparent;
border: none;
color: white;
outline: none;
}

.input-area button {
background: var(--accent);
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
color: white;
cursor: pointer;
}
