* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #0f0f10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e7e7e0;
}

header {
    width: 100%;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #151517;
    border-bottom: 1px solid #2a2a2e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #f1f1ea;
}

.logo span {
    color: #c56a35;
}

.new-chat-btn {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid #3a3a40;
    background: transparent;
    color: #cfcfc6;
    cursor: pointer;
    transition: 0.2s ease;
}

.new-chat-btn:hover {
    background: #232326;
    transform: translateY(-1px);
}

#chat-window {
    flex: 1;
    width: 100%;
    max-width: 760px;
    overflow-y: auto;
    padding: 36px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.avatar.claude-av {
    background: #c56a35;
    color: #fff;
}

.avatar.user-av {
    background: #2f2f33;
    color: #fff;
}

.bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
}

.message.assistant .bubble {
    background: #1a1a1d;
    border: 1px solid #2a2a2e;
    border-radius: 10px 14px 14px 14px;
    color: #e7e7e0;
}

.message.user .bubble {
    background: #c56a35;
    color: #fff;
    border-radius: 14px 10px 14px 14px;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 12px 14px;
    background: #1a1a1d;
    border: 1px solid #2a2a2e;
    border-radius: 10px 14px 14px 14px;
    width: fit-content;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c56a35;
    animation: bounce 1.2s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.input-area {
    width: 100%;
    max-width: 760px;
    padding: 12px 20px 22px;
}

.input-box {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: #151517;
    border: 1px solid #2a2a2e;
    border-radius: 16px;
    padding: 10px 12px;
    transition: 0.2s ease;
}

.input-box:focus-within {
    border-color: #c56a35;
    box-shadow: 0 0 0 3px rgba(197, 106, 53, 0.15);
}

#user-input {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 15px;
    line-height: 1.6;
    background: transparent;
    font-family: 'Georgia', serif;
    color: #e7e7e0;
    max-height: 140px;
    min-height: 24px;
}

#user-input::placeholder {
    color: #8c8c86;
}

#send-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #c56a35;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

#send-btn:hover {
    background: #a85828;
    transform: translateY(-1px);
}

#send-btn:active {
    transform: scale(0.92);
}

#send-btn:disabled {
    background: #3a3a3f;
    cursor: not-allowed;
}

.hint {
    text-align: center;
    font-size: 12px;
    color: #7d7d77;
    margin-top: 8px;
}

.welcome {
    text-align: center;
    padding: 40px 0 10px;
}

.welcome h1 {
    font-size: 28px;
    font-weight: 600;
    color: #f1f1ea;
}

.welcome p {
    font-size: 15px;
    color: #9a9a93;
    margin-top: 6px;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.suggestion-chip {
    padding: 8px 14px;
    background: #1a1a1d;
    border: 1px solid #2a2a2e;
    border-radius: 20px;
    font-size: 13px;
    color: #cfcfc6;
    cursor: pointer;
    transition: 0.2s ease;
}

.suggestion-chip:hover {
    background: #232327;
    transform: translateY(-1px);
    border-color: #3a3a40;
}

#chat-window::-webkit-scrollbar {
    width: 6px;
}

#chat-window::-webkit-scrollbar-thumb {
    background: #2f2f35;
    border-radius: 10px;
}