
body {
    font-family: 'Roboto', sans-serif;
    background: url('https://cdn.pixabay.com/photo/2020/05/22/20/56/wheat-5207174_1280.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    /* Align items to the top */
    align-items: flex-start;
    /* Align items to the top */
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    /* Ensure the layout flows from top to bottom */
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(74, 124, 0, 0.95);
    z-index: 1000;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar .navbar-brand {
    color: white;
    font-family: 'Roboto', sans-serif;
}

.navbar .navbar-brand:hover {
    color: white;
}

.navbar img {
    filter: brightness(0) invert(1);
}
.navbar-toggler-icon {
    background-image: none;
    /* Remove default background */
    width: 30px;
    /* Adjust size */
    height: 30px;
    /* Adjust size */
    display: block;
}

.navbar-toggler-icon::before {
    content: "\2630";
    /* Unicode for hamburger icon */
    font-size: 30px;
    /* Adjust size */
    color: white;
    /* Ensure icon is white */
}
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Remove default button styling */
.navbar-toggler {
    border: none;
}

@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }
    .navbar-brand {
        display: none;
    }
}


/* Overlay styling to center chat container */
.overlay {
    position: fixed;
    /* Fix the position to make sure it covers the full screen */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    /* Horizontally center */
    align-items: center;
    /* Vertically center */
    background-color: rgba(26, 46, 0, 0.8);
    /* Semi-transparent dark background */
    padding-top: 80px;
    /* Adjust to provide space for the navbar */
}

/* Chat container adjustments */
#chat-container {
    background-color: #fff;
    /* background-color: rgba(255, 254, 235, 0.9);  */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chat history styling */
#chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    word-wrap: break-word;
    white-space: normal;
    scroll-behavior: smooth;
    background-color: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: calc(100% - 60px);
}

/* Message styles */
.user-message,
.bot-message {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 15px;
    margin-bottom: 8px;
    width: fit-content;
    max-width: 85%;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    line-height: 1.4;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease-in-out;
}

.bot-message {
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    color: #1a2e00;
    margin-right: auto;
    margin-left: 10px;
    left: 15px;
}

.user-message {
    background-color: #4a7c00;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 10px;
}

/* Form styling */
form {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 15px;
    background: white;
}

input {
    flex-grow: 1;
    margin-right: 10px;
    padding: 10px;
    border: 1px solid #4a7c00;
    border-radius: 8px;
    font-size: 16px;
}

input::placeholder {
    color: #9ca3af;
    font-weight: 300;
}

button {
    min-height: 44px;
    padding: 10px 20px;
    background-color: #4a7c00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #3e6f00;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4a7c00;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    margin-right: 8px;
}

/* Keyframe animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .overlay {
        padding: 10px;
    }

    #chat-container {
        height: 70vh;
        padding-bottom: 40px;
    }

    #chat-history {
        height: calc(100vh - 280px);
        max-height: none;
    }

    form {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}



.display-5 {
    color: #33475B;
    /* Matches the color in the screenshot */
    /* font-family: "Madimi One", serif; */
    font-family: "Dosis", serif;
    font-weight: 720;
    font-style: normal;
    letter-spacing: 0.5px;
    /* Adds subtle spacing for readability */
}

.display-6 {
    color: #ffffff;
    /* Matches the color in the screenshot */
    /* font-family: "Madimi One", serif; */
    font-family: "Dosis", serif;
    font-weight: 600;
    font-size: 22px;
    
    /* letter-spacing: 0.5px; */
    /* Adds subtle spacing for readability */
}

