:root {
    --bg-color: #ffffff;
    --chat-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --input-bg: #ffffff;
    --accent-color: #000000;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Page */
.auth-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.auth-title {
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.password-form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 300px;
}

.password-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
}

.password-input:focus {
    border-color: #999;
}

.submit-btn {
    padding: 12px 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.submit-btn:hover {
    opacity: 0.9;
}

.login-error {
    margin-top: 15px;
    color: #ef4444;
    font-size: 0.9rem;
    display: none;
    /* JS will show this */
}

/* Chat Interface */
.chat-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    width: 100%;
    opacity: 0;
    /* Hidden by default until login */
    transition: opacity 0.5s;
    pointer-events: none;
    /* Disable interaction when hidden */
}

/* When active */
.chat-interface.active {
    opacity: 1;
    pointer-events: all;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 120px;
    padding-top: 20px;
}

.message {
    width: 100%;
    /* No border, no background difference -> Seamless */
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.bubble {
    width: 100%;
    max-width: 700px;
    /* Readability width */
    display: flex;
    gap: 1.5rem;
    line-height: 1.6;
    font-size: 16px;
    color: var(--text-primary);
}

.avatar {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .avatar {
    color: #999;
}

.bot-message .avatar {
    color: #000;
}

.content {
    flex: 1;
}

/* Input Area */
.input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

#chat-form {
    width: 100%;
    max-width: 700px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    /* Subtle border */
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

#user-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

#send-btn {
    background: transparent;
    border: none;
    color: #999;
    padding: 5px;
    cursor: pointer;
}

#send-btn:hover {
    color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 3px;
}

/* Additions for new Landing Page elements */
.persona-title-top {
    position: absolute;
    top: 60px;
    /* Bit more spacing */
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    z-index: 10;
    text-align: center;
    width: 100%;
    transition: all 0.8s ease-in-out;
    /* Smooth movement */
}

/* Move to top-left when logged in */
body.logged-in .persona-title-top {
    top: 10%;
    left: 40px;
    transform: none;
    text-align: left;
    width: auto;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}