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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

h1 {
    font-size: 28px;
    color: #1a1a18;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 12px;
    color: #9a9a92;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.05em;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 12px 15px;
    border-radius: 8px;
    word-wrap: break-word;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.5;
}

.user {
    background: #3d35e8;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.assistant {
    background: #e8e7e0;
    color: #1a1a18;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #3d35e8;
}

button {
    padding: 12px 24px;
    background: #3d35e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

button:hover {
    background: #2f2aa8;
}

button:active {
    transform: scale(0.98);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}