/* style.css (REVISED) */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');
/* Add Roboto Slab for the options */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    transition: filter 0.3s ease; /* Smooth transition for blur */
}
/* Loading Overlay Styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    backdrop-filter: blur(5px); /*  Blur the background */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    z-index: 1000; /*  Make sure it's on top */
    display: none; /*  Hidden by default */
    justify-content: center;
    align-items: center;

}

#loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


body.loading #loading-overlay {
    display: flex; /* Show when body has 'loading' class */
}

/* Prevent interactions while loading */
body.loading * {
    pointer-events: none;
}
header {
    text-align: center;
    margin-bottom: 30px;
}

#logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #444444;
    margin-bottom: 15px;
}

/* Buttons -  Keeping this for now, might be useful later */
.button {
    background-color: #a6c8e0;
    color: #333333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color: 0.3s ease;
}

.button:hover {
    background-color: #90b2c8;
}

/* Links - Keeping this for now */
a {
    color: #546e7a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #435a6f;
    text-decoration: underline;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
     position: relative; /*  Important for the overlay  */
}

/* Card Example (Optional) - Keeping this for now */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* --- Options Styles (Revised) --- */
.options-container {
    display: flex;
    justify-content: space-around; /* Distributes space around items */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
}

.option {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1em;
    padding: 10px 15px;
    margin: 5px; /*  Reduced margin for tighter spacing */
    cursor: pointer;
    background-color: transparent;
    color: #555;
    transition: background-color: 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border-radius: 5px;
    /*  --- KEY CHANGES --- */
    flex: 1;  /*  Grow to fill available space equally */
    text-align: center; /* Center the text within the option */
    /*  --- END KEY CHANGES --- */
    min-width: 200px;   /*  Minimum width to prevent squishing */
    max-width: 300px; /* Maximum width to prevent stretching too far */
}

.option.selected,
.option:hover {
    background-color: rgba(166, 200, 224, 0.3);
    color: #333;
    transform: translateY(-2px);
}
/* --- Styles for Message Container --- */
.message-container {
    min-height: 2em; /* Ensure it always takes up some space */
    margin-bottom: 10px;
    text-align: center; /* Center the messages */
}

.coming-soon-message,
.empty-message {
    display: none; /* Hidden by default */
    font-style: italic;
    color: #888;
    font-size: 1.1em;
}

.coming-soon-message.active,
.empty-message.active {
    display: block; /* Show when active */
}

/* --- Chatbot Styles (NEW) --- */
.chatbot-container {
    width: 80%;
    height: 800px;
    margin: 0 auto;
    border: 4px solid transparent; /*  Important: Make space for the gradient border */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(white, white) padding-box, /*  Inner background */
              linear-gradient(to right, #4285f4, #34a853, #fbbc05, #ea4335) border-box; /*  Gradient border */
    animation: gradient-border-animation 5s linear infinite; /* Animate the gradient */
}

@keyframes gradient-border-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0; /*  Shift the gradient horizontally */
    }
}

.chatbot-messages {
    height: calc(100% - 60px); /*  Dynamic height */
    overflow-y: auto; /*  Enable vertical scrolling */
    padding: 10px;
}

.chatbot-input-area {
    display: flex;
    border-top: 1px solid #ccc;
    padding: 10px;
     align-items: center; /*  Vertically center items */
}

#user-input {
    flex: 1; /* Take up remaining space */
    resize: none; /* Prevent manual resizing */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 10px;
    margin-right: 10px; /* Spacing between input and button */
}

#send-button {
    padding: 8px 15px;
    background-color: #4285f4; /* Google Blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    /*margin-left: 10px;  Removed margin here*/
}

#send-button:hover{
      background-color: #3367d6; /* Darker blue */
}

.user-message {
    text-align: right;
    margin-bottom: 5px;
    color: blue;
    margin-left: auto;
    word-wrap: break-word; /* Allows long words to break */
    max-width: 70%;
    margin-top: 5px;

}

.bot-message {
    text-align: left;
    margin-bottom: 5px;
    color: black;
    margin-right: auto;
    word-wrap: break-word; /* Allows long words to break */
    max-width: 70%;
     margin-top: 5px;
}
/* File Upload Button Styles (NEW) */
#file-upload-label {
    display: inline-flex; /*  Important for centering content */
    align-items: center; /*  Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 8px 12px;
    background-color: #f0f0f0; /* Light gray */
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em; /*  Make the "+" larger */
    color: #555;
}

#file-upload {
    display: none; /* Hide the actual file input */
}
/* Disabled Input Styles (NEW) */
.disabled-input {
    opacity: 0.5; /* Reduce opacity */
    cursor: not-allowed; /* Change cursor */
}

.disabled-input #send-button{
     opacity: 0.5; /* Reduce opacity */
    cursor: not-allowed; /* Change cursor */
}
 .disabled-input #file-upload-label{
      opacity: 0.5; /* Reduce opacity */
    cursor: not-allowed; /* Change cursor */
 }
