
:root {
    --bg: #0b0e14;
    --card-bg: rgba(23, 28, 36, 0.8);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text: #f3f4f6;
    --text-dim: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
}

/* Setup Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.setup-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.setup-card h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.setup-card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.input-group input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

#start-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    border: none;
    border-radius: 0.8rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

#start-btn:hover {
    background: var(--primary-hover);
}

.hint {
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--glass);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

header {
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.message {
    max-width: 80%;
    padding: 1.2rem;
    line-height: 1.6;
    border-radius: 1.2rem;
    font-size: 0.95rem;
    animation: slideUp 0.3s ease-out;
}

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

.message.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-bottom-left-radius: 0.2rem;
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.2rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

footer {
    padding: 1.5rem 2rem 2.5rem;
}

.input-area {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
    padding: 0.4rem 0;
    max-height: 200px;
}

#send-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
}

#send-btn:hover {
    transform: scale(1.1);
    color: var(--primary-hover);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.2rem;
}
