* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    height: 100vh;
    background: url("https://plus.unsplash.com/premium_photo-1737597230788-21c5a56d5d8a")
        center / cover no-repeat fixed;
}

/* Blur overlay */
.overlay {
    height: 100%;
    backdrop-filter: blur(14px);
    background: rgba(0,0,0,0.65);
    display: flex;
    flex-direction: column;
    color: #fff;
}

/* Top bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
}

/* Chat area */
.chat-area {
    flex: 1;
    padding: 25px 20%;
    overflow-y: auto;
}

/* Chat bubbles */
.user-bubble,
.ai-bubble {
    max-width: 85%;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.user-bubble {
    background: #ff9800;
    color: #000;
    margin-left: auto;
}

.ai-bubble {
    background: rgba(255,255,255,0.1);
}

/* Code blocks */
.ai-bubble pre {
    background: #000;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 10px;
}

/* Input bar */
.input-bar {
    display: flex;
    gap: 10px;
    padding: 14px 20%;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(10,10,10,0.9);
}

textarea {
    flex: 1;
    resize: none;
    padding: 12px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 1rem;
    max-height: 180px;
}

button {
    padding: 0 18px;
    border-radius: 10px;
    border: none;
    background: #ff9800;
    font-weight: bold;
    cursor: pointer;
}

.voice-btn {
    background: #03a9f4;
}

/* Light mode */
.light {
    background: rgba(255,255,255,0.7);
    color: #000;
}

.light .ai-bubble {
    background: rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
    .chat-area,
    .input-bar {
        padding: 15px;
    }
}

