:root {
    --primary: #4e9af1;
    --accent: #ffd700;
    --bg-dark: rgba(10, 20, 40, 0.85);
    --glass: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
    --text-dim: #b0c4de;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, html, #app {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#app {
    background: url('/background.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: var(--bg-dark);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.tagline {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

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

main::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.content {
    background: var(--glass);
    padding: 12px 18px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    border: 1px solid var(--border);
    white-space: pre-wrap;
}

.message.user .content {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 4px;
    border: none;
}

footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
}

.input-area {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 8px 8px 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.input-area:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(78, 154, 241, 0.3);
}

input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

button:hover {
    transform: scale(1.05);
    background: #3b82f6;
}

button svg {
    width: 20px;
    height: 20px;
}

/* Typing indicator */
.typing {
    font-style: italic;
    font-size: 12px;
    color: var(--text-dim);
    margin-left: 55px;
}
