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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f1117;
    color: #fff;
    height: 100vh;
}

.app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: #161a23;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.subtext {
    color: #9aa4b2;
    font-size: 14px;
    margin-top: -10px;
}

.status-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1d2330;
    padding: 12px 14px;
    border-radius: 14px;
    width: fit-content;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
}

.info-card {
    background: #1d2330;
    padding: 18px;
    border-radius: 18px;
    color: #dbe4ee;
    line-height: 1.6;
    font-size: 14px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: #fff;
}

.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0f1117;
}

.chat-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: #121620;
}

.chat-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.chat-header p {
    color: #9aa4b2;
    font-size: 14px;
}

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

.message {
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
}

.message.user .bubble {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.message.bot .bubble {
    background: #1d2330;
    color: #f1f5f9;
    border-bottom-left-radius: 6px;
}

.chat-input-area {
    display: flex;
    gap: 14px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #121620;
}

.chat-input-area textarea {
    flex: 1;
    resize: none;
    height: 56px;
    border: none;
    outline: none;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 15px;
    background: #1d2330;
    color: #fff;
}

.chat-input-area button {
    min-width: 120px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.chat-input-area button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.typing {
    opacity: 0.7;
    font-style: italic;
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .bubble {
        max-width: 90%;
    }

    .chat-input-area {
        padding: 16px;
    }

    .chat-header {
        padding: 18px 20px;
    }

    .chat-box {
        padding: 18px;
    }
}