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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #dff9fb, #f9f9f9);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}

/* Header Logo */
.header {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #0077ff;
    letter-spacing: 1px;
}

.logo i {
    color: #ff4081;
    margin-right: 8px;
}

/* Container */
.container {
    width: 95%;
    max-width: 800px;
    padding: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Conversational Frame */
.frame {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
    padding: 20px;
    overflow-y: auto;
}

#conversational-frame {
    height: 350px;
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Chat Bubble Styles */
#conversation-output > div {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    line-height: 1.4;
}

.user-message {
    background-color: #0077ff;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}

.bot-message {
    background-color: #e0f2f1;
    color: #333;
    align-self: flex-start;
    margin-right: auto;
}

/* Input Area */
.input-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

#text-input {
    flex: 1;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
}

#text-input:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
}

.button {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
}

.blue { background-color: #0077ff; }
.yellow { background-color: #fbc531; color: #000; }
.green { background-color: #44bd32; }
.red { background-color: #e84118; }

/* Voice Actions */
#voice-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

/* Buttons Frame */
#buttons-frame {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#buttons-frame button {
    flex: 1;
    min-width: 30%;
}

/* Status Bar */
.status-bar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border-top: 1px solid #ddd;
    width: 100%;
    padding: 10px 20px;
    text-align: left;
    font-size: 14px;
    color: #555;
    position: fixed;
    bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .input-area {
        flex-direction: column;
    }

    #buttons-frame {
        flex-direction: column;
    }

    .logo {
        font-size: 22px;
    }
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #555;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}