:root {
    --primary-color: #1a73e8;
    --primary-light: #e8f0fe;
    --primary-dark: #1557b0;
    --gradient-bg: linear-gradient(135deg, #0033cc, #1a73e8);
    --border-radius: 25px; /* Added this for consistent rounding */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-bg);
}

.chat-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    height: 80vh;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #e8f0fe;
    text-align: center;
    background-color: var(--primary-light);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.chat-header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #fff;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid #e8f0fe;
    display: flex;
    gap: 10px;
    background-color: var(--primary-light);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.chat-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 2px solid #e8f0fe;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.chat-submit {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.chat-submit:active {
    transform: translateY(0);
}

.message {
    margin: 15px 0;
}

.message.user {
    text-align: right;
}

.message-content {
    padding: 12px 20px;
    border-radius: 20px;
    display: inline-block;
    max-width: 70%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.user .message-content {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) 0 var(--border-radius)
        var(--border-radius);
}

/* Bot messages (if you add them later) */
.message.bot .message-content {
    background-color: #f0f2f5;
    color: #000;
    border-radius: 0 var(--border-radius) var(--border-radius)
        var(--border-radius);
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1d3f6;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.message.bot .message-content {
    background-color: #f0f2f5;
    color: #333;
    border-radius: 0 var(--border-radius) var(--border-radius)
        var(--border-radius);
}

.message-content.error {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

.message.bot {
    text-align: left;
}

/* Add responsive design for smaller screens */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .chat-container {
        height: 90vh;
    }
}

/* Extra small screens */
@media (max-width: 350px) {
    .chat-input-container {
        flex-direction: column;
    }

    .chat-submit {
        width: 100%;
    }
}
