body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Password Overlay */
#password-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.login-box input {
    padding: 12px;
    width: 220px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
    margin: 20px 0;
    font-size: 16px;
}

/* Header & Logo */
.chat-header {
    background: #252525;
    padding: 12px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    background: #333; /* Placeholder background */
}

/* Chat Layout */
.chat-container {
    width: 95%;
    max-width: 550px;
    height: 85vh;
    background: #181818;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
}

#chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-area {
    padding: 20px;
    background: #252525;
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #333;
    color: white;
    outline: none;
}

button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

button:hover { background: #0056b3; }

.message {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.5;
    font-size: 15px;
}

.user { align-self: flex-end; background: #007bff; color: white; border-bottom-right-radius: 2px; }
.ai { align-self: flex-start; background: #2d2d2d; color: #e0e0e0; border-bottom-left-radius: 2px; }
.reset-btn { background: #e74c3c; font-size: 11px; padding: 6px 12px; }