* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* CONTAINER */
.chat-container {
    width: 95%;
    max-width: 400px;
    height: 90vh;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* HEADER */
.chat-header {
    padding: 15px;
    text-align: center;
    background: rgba(255,255,255,0.08);
}

.chat-header h2 {
    color: #fff;
}

.chat-header p {
    color: #94a3b8;
    font-size: 12px;
}

/* CHAT BOX */
.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* MESSAGES */
.bot-message, .user-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 75%;
    font-size: 14px;
}

.bot-message {
    background: rgba(255,255,255,0.1);
    color: #fff;
    align-self: flex-start;
}

.user-message {
    background: #3b82f6;
    color: white;
    align-self: flex-end;
}

/* INPUT */
.chat-input {
    display: flex;
    padding: 10px;
    background: rgba(255,255,255,0.08);
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    outline: none;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 500px) {
    .chat-container {
        height: 100vh;
        border-radius: 0;
    }
}
.chat-footer {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.08);
    
    /* IMPORTANT FIX */
    flex-shrink: 0;
}

.chat-footer span {
    color: #3b82f6;
    font-weight: 600;
}

/* glow effect */
.chat-footer:hover span {
    text-shadow: 0 0 8px #3b82f6;
}