@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* keyframes contains the bounce animation */
@keyframes bounce {
    70% { transform:translateY(0%); }
    80% { transform:translateY(-15%); }
    90% { transform:translateY(0%); }
    95% { transform:translateY(-7%); }
    97% { transform:translateY(0%); }
    99% { transform:translateY(-3%); }
    100% { transform:translateY(0); }
}

@media only screen and (max-width: 700px) {
 body .Chatbot {
    position: relative;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;
  }

  
}

/* Scrollbar overall styling */
*::-webkit-scrollbar {
    width: 10px; 
}

/* Scrollbar track (background) */
*::-webkit-scrollbar-track {
    background: #f2f2f2; 
    border-radius: 6px;
}


/* Scrollbar thumb (the draggable part) */
*::-webkit-scrollbar-thumb {
    background-color: #e8e8e8; 
    border-radius: 6px;
    border: 2px solid #f0f0f0; 
}

/* design elements inherited by all elements */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}



/* || Main Chatbot */
/* design elements for the box containing the UI */
.Chatbot{
    /* DISPLAY HAS BEEN CHANGED TO FLEX */
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 30px;
    bottom: 70px;
    width: 320px;
    height: 80vh;
    overflow: hidden;

    
    background-color: lightgrey;
    background-image: url("background-image.png");
    border-radius: 15px;

    /* there is a shadow behind the container which adds dimension */
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
                0 32px 64px -48px rgba(0,0,0,0.5);

    /* OLD 80% VALUES */
    /* width: 350px; */
    /* bottom: 100px; */
    /* right: 40px; */
}

/* design choices welcome screen */
.welcome{
    background: linear-gradient(to right, #00bf63, #02b4ab);
    border: none;
    position: absolute;
    text-align: center;

    /* note that height and width are always the same size as the full container */
    width: 100%;
    height: 100%;
    bottom: 0px;
    /* welcome screen is a layer over the UI, the opacity change makes it invisible when the start button is pressed */
    opacity: 1;
    transition: opacity 0.3s ease;
    /* z-index determines which layer comes first */
    z-index: 10;
    overflow-y: auto;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    gap: clamp(0.875rem, 2vh, 2.5rem);
    padding-top: clamp(2rem, 5vw, 3rem); 
}

/* .logo img{ */
    /* origin: h: 895 w: 411. im: w: 351, h: 284*/
    /* width: 290px;
    height: 80%;
    position: relative;
    bottom: 125px; */
    /* margin:auto; */
/* } */

/* contains the welcome image */
.logo {
    position: relative;
    width: 100%;
    max-width: clamp(150px, 25vh, 300px); 
    height: auto;
    margin: 0 auto;
}

/* design choices for the welcome image */
.logo img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
}

.pbAI {
    position: absolute;
    right: 10px;
    top: 10px;
    /* width: 100%; */
    /* background-color: yellow; */
    /* max-width: clamp(15px, 2.5vh, 30px);  */
    height: auto;
    margin: 0 auto;
    border-radius: 15px;
}

.pbAI img {
    height: auto;
    /* max-width: clamp(80px, 2.5vh, 150px); */
    max-width: clamp(70px, 2.5vh, 150px);
    border-radius: 50%;
}

.welcome h2{
    color: white; 
    /* font-size: 30px; */
    font-size: clamp(1.5rem, 2vh + 1rem, 2.5rem);
    line-height: 1.2;
    overflow: hidden;
    /* position: relative;
    bottom: 100px; */
}

.welcome p{
    color: white;
    font-size: clamp(0.75rem, 0.5vh + 0.5rem, 1.4rem);
    /* position: relative;
    bottom: 10%; */
    line-break: strict;
}

/* design choices start button */
.start-button {
    background-color: white;
    color: #00bf63;
    border: none;
    border-radius: 999px;
    padding: clamp(0.6rem, 1.2vh, 1rem) clamp(1rem, 2vh, 2rem); /* responsive padding */
    width: min(70%, 250px);
    font-size: clamp(0.875rem, 1vh + 0.5rem, 1.4rem); /* responsive font size */
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 3;
  
    display: block;
    margin: 1rem auto;
    position: relative; 
  }

.left-start-text {
    color: #00bf63;
}

.right-start-text {
    color: #02b4ab;
}

/* loadingscreen */
.loadingscreen {
    background: linear-gradient(to right, #00bf63, #02b4ab);
    border: none;
    position: absolute;
    text-align: center;

    /* note that height and width are always the same size as the full container */
    width: 100%;
    height: 100%;
    bottom: 0px;
    /* welcome screen is a layer over the UI, the opacity change makes it invisible when the start button is pressed */
    opacity: 1;
    transition: opacity 0.3s ease 2s;
    /* z-index determines which layer comes first */
    z-index: 9;
    /* overflow-y: auto; */
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.pulsing-circle {
    display: inline-block;
    width: 70px;
    height: 70px;
    /* background-color: #FF5C35; */
    /* background-image: url("logo_seven_green.png"); */
    border-radius: 50%;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.loginscreen {
    background: linear-gradient(to right, #00bf63, #02b4ab);
    border: none;
    position: absolute;
    text-align: center;

    /* note that height and width are always the same size as the full container */
    width: 100%;
    height: 100%;
    bottom: 0px;
    /* welcome screen is a layer over the UI, the opacity change makes it invisible when the start button is pressed */
    opacity: 1;
    transition: opacity 0.3s ease 2s;
    /* z-index determines which layer comes first */
    z-index: 9;
    overflow-y: auto;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
    /* test values */
    /* align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    gap: clamp(0.875rem, 4vw);
    padding-top: clamp(2rem, 5vw, 3rem);  */
}

.loginscreen .seven-logo {
    width: 50%;
    height: auto;
    border-radius: 50%;
    position: relative;
    margin-bottom: 20px;
}

.loginscreen H2 {
    color: white;
    margin-bottom: 20px;
}

#loginForm {
    all: unset; /* Remove all default styles */
    display: contents; /* Makes form behave like it's not there */
  }

.loginscreen input{
    background-color: white;
    border: none;
    border-radius: 999px;
    padding: 5px;
    font-size: 0.6rem;
}

.loginscreen label {
    color: white;
}

.password {
    margin-top: 10px;
}
.buttons {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10px;
    width: 40%;

    /* OLD 80% VALUES */
    /* width: 30%; */
}

.buttons button{
    font-size: 0.75rem;
    background-color: white;
    border-radius: 999px;
    padding: 5px 5px 5px 5px;
    cursor: pointer;  
    border: 1px solid lightgrey;
    transition: background-color 0.3s;
}

.buttons button:hover {
    background-color: #2c4c7c;
    border: none
}

.loginbtn{
    color: #00bf63;
    margin-right: 10px;
}

.cancelbtn{ 
    color: #02b4ab;
}

/* aboutus page */

.aboutus {
    background: linear-gradient(to right, #00bf63, #02b4ab);
    border: none;
    position: absolute;
    text-align: center;

    /* note that height and width are always the same size as the full container */
    width: 100%;
    height: 100%;
    bottom: 0px;
    /* welcome screen is a layer over the UI, the opacity change makes it invisible when the start button is pressed */
    opacity: 1;
    transition: opacity 0.3s ease 2s;
    /* z-index determines which layer comes first */
    z-index: 9;
    /* overflow-y: auto; */
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
}

#closeabu {
    position: relative;
    /* top: 20px;
    right: 20px; */
    margin-bottom: 10px;
    /* justify-content: flex-end;
    align-items: flex-start; */
    color:#02b4ab;
    cursor: pointer;
    border-radius: 999px;
    background-color: white;
}

.aboutusbox {
    background-color: white;
    height: 80%;
    width: 90%;
    border-radius: 15px;
    overflow-y: auto;
}

.aboutus H1 {
    color: black;
}

.aboutus p {
    color: black;
    font-size: 0.7rem;
    padding-left: 20px;
    padding-right: 20px;
}

.aboutus li {
    font-size: 0.7rem;
}

/* .loginscreen input {
    border-radius: 50%;
} */

.head {
    /* this is the main color used throughout the design */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: linear-gradient(to right, #00bf63, #02b4ab);
    padding: 30px 7px 30px 7px;
    margin: 7px 7px 7px 7px;
    border-radius: 15px;
    z-index: 8;

    flex-wrap: nowrap;           /* prevent wrapping */
    overflow: hidden;            /* optional, to contain overflow */
    
    /* OLD 80% VALUES */
    /* padding: 30px 10px 30px 10px; */
    /* margin: 10px 10px 10px 10px; */
}

.head .left_head{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px; /* optional spacing between logo and text */
}

/* design choices for the header text */
.head .header_txt {
    display: flex;
    color: #fff;
    flex-direction: column;
    width: 112px;

    /* OLD 80% VALUES */
    /* width: 150px; */
}

.head .header_title {
    font-size: 0.75rem; 
    font-weight: 400;
    
    /* OLD 80% VALUES */
    /* font-size: 1rem;  */
}

.head .header_app_name {
    font-size: 1.12rem;
    font-weight: 600;

    /* OLD 80% VALUES */
    font-size: 1.5rem;
}

.head .seven-logo{
    display: flex;
    flex-direction: row;
    width: 14%;
    height: auto;
    border-radius: 50%;
    position: relative;

    /* OLD 80% VALUES */
    /* width: 12%;
    height: 12%; */
}

.head .head_icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* space between refresh and close */

    /* OLD 80% VALUES */
    /* width: 75px; */
    /* display: inline-block; */
    /* margin-left: 8%; */
    /* align-self: flex-end; */
}

.Navigator {
    all: unset;
    display: contents;
}

/* design choices for the 3 dots button */
.head #more_vert{
    color: #fff;
    font-size: 150%;

    cursor: pointer;

    /* OLD 80% VALUES */
    /* font-size: 200%; */
    /* position: relative; */
}

#more_vert:hover{
    color:#c69ef3;
}

.main_menu {
    position: absolute;
    /* top: 100%; */
    right: 20%; 
    /* margin-left: 25%; */
    width: 100px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid lightgray;
    display: none; /* hidden by default */
    z-index: 1000;

    /* OLD 80% VALUES */
    /* right: 0.000000000001%; /* aligns right edge of menu with right edge of icon */
    /* width: 150px; */
}

/* .main_menu.visible {
    display: visible;
} */

.main_menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.main_menu li {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%; /* 💡 This is crucial */
}

.main_menu button {
    width: 100%;
    background-color: white;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    font-size: 0.7rem; /* or 14px */
}

.main_menu button:hover {
    background-color: lightgrey;
}

/* #refreshBtn {
    margin-top: 5px;
} */

#logBtn {
    margin-bottom: 5px;
    margin-top: 5px;
}

#SettingsBtn {
    margin-bottom: 5px;
}

#aboutusBtn {
    margin-bottom: 5px;
}

#user {
    display: none;
    flex-direction: row;
    align-items: center; /* vertically center items */
    list-style: none; /* optional: remove bullet */
}

#online {
    height: 10px;
    width: auto;
    margin-right: 5px;
    margin-left: 5px;
}

/* design choices for the close button */
.head #arrow_drop_down{
    color: #fff;
    /* position: relative; */
    font-size: 150%;
    /* align-self: flex-end; */
    /* position: absolute;
    right: 16px;
    top: 34%; */
    cursor: pointer;
    
    /* OLD 80% VALUES */
    /* font-size: 200%; */
}

#close:hover{
    color:#c69ef3;
    animation: bounce 2s ease infinite;
}

/* design choices for the box containing the messages  */
.Chatbox{
    height: 100%;
    min-height: 100px;
    width: 100%;

    padding: 5px 20px 0px;
    display: flex;
    flex-direction: column;

    /* OLD 80% VALUES */
    /* padding: 5px 20px 100px; */
    /* min-height: 200px; */
}


/* extra design choices which makes the chat scrollable */
.Chatbox .Boxtext{
    max-height: 100%;
    overflow-y: auto;
}

.Chatbox .chat {
    display: flex;
}

/* design choices for the text bubbles */
.Chatbot .chat p{
    color: #fff;
    max-width: 75%;
    font-size: 0.7em;
    padding: 8px 12px;
    border-radius: 10px 10px 0 10px;
    background: #007bff;

    /* breaks words that are too long */
    word-break: break-word;
    overflow-wrap: break-word;

    /* OLD 80% VALUES */
    /* font-size: 0.8rem; */
    /* padding: 12px 16px; */
}

.Chatbox .usermsg p {
    color: #fff;
    max-width: 75%;
    border-radius: 30px 30px 30px 30px;
    background: linear-gradient(to right, #00bf63, #02b4ab);
}

/* design choices user messages */
.Chatbox .usermsg{
    margin: 20px 0;
    justify-content: flex-end;

    /* OLD 80% VALUES */
    margin: 15px 0;
}

.Chatbot .botmsg p {
    color: #000;
    margin: 4px;
    border-radius: 30px 30px 30px 30px;
    background: #fff;
    
    /* OLD 80% VALUES */
    margin: 6px;
}

/* .loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
} */

.bouncing-dots {
    display: flex;
    justify-content: space-between;
    width: 15px;

    /* OLD 80% VALUES */
    /* width: 20px; */
}

.dot {
    width: 3px;
    height: 3px;
    background-color: grey;
    border-radius: 50%;
    animation: bounce 1.5s infinite;

    /* OLD 80% VALUES */
    /* width: 5px; */
    /* height: 5px; */
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
0%, 100% {
    transform: translateY(0);
}
50% {
    transform: translateY(-6px);

    /* OLD 80% VALUES */
    /* transform: translateY(-8px); */
}
}

.Chatbox .botmsg .file-upload-message {
    /*font-weight: bold;*/
    color: #000000;
    background: linear-gradient(to right, #f2f2f2 0%, #f2f2f2 50%, #4788b0 50%, #4788b0 100%);
    background-size: 200% 100%;
    background-position: 0 0; /* Initial background position */
    padding: 10px;
    border-radius: 8px;
}

@keyframes loadingProgressHalf {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -80% 0;
    }
}

@keyframes loadingProgressSecondHalf {
    0% {
        background-position: -80% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* .Chatbot .summLi p {

    color: #000;
    font-size: 0.95em;
    padding: 12px 16px;
    border-radius: 10px 10px 10px 0;
    background: #f2f2f2;
} */

/* .image-container {
    position: relative;
    width: fit-content;
    height: fit-content;
    margin-right: 10px;
    /* Space between the images and the message 
} */

/* .Chatbot .bubble-icon {
    position: absolute;
    bottom: 6px;
    right: 9px;
    width: 15px;
    height: 15px;    
    border-radius: 50%;
    box-shadow: 0 0 0 2px white;
} */

/* .suggestions {
    position: absolute;
    bottom: 90px;
    display: flex;
    justify-content: space-between;
    left: 0;             
    width: 100%;         
    padding: 0 15px;    
} */

/* .suggestion_button {
    background-color: white;
    text-align: right;
    height: 40px;
    /* width: 110px; *
    border: 2px solid grey;
    border-radius: 25px;
    padding-top: 5px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 5px;
    display: flex;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 3;
} */

/* .sum {
    font-size: 15px;
    position: relative;
} */

.Chatbot .user-input {
    /* background-color: #00bf63; */
    position: relative;
    /* bottom: 10px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin-bottom: 10px;
    z-index: 8;

    /* OLD 80% VALUES */
    /* bottom: 10px;
    width: 95%;
    margin-top: 10px; */
    /* position: absolute; */
}
.Chatbot .Chatinput {
    display: flex;
    align-self: flex-start;
    align-items: center;
    /* justify-content: space-evenly; */
    /* position: relative; */
    width: 80%;
    min-height: 33px;
    max-height: 200px;
    gap: 5px;
    background-color: white;
    /* background: black; */
    /* padding: 5px 20px; */
    margin: 10px 10px 10px 10px;
    /* border-top: 1px solid #ccc; */
    border-radius: 999px;
    /* z-index: 10; */

    /* OLD 80% VALUES */
    /* height: 45px; */
}

/* design choices submit button */
.Chatinput #submit{
    display: flex;
    align-self: flex-start;
    font-size: 1.2em;
    /* height: 30%; */
    /* margin-top:10px; */
    color:#724ae8;
    /* font-size: 1.85rem; */
    /* font-size: 1.85em; */
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: grey;
    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

.tooltiptext {
    visibility: hidden ;
    background-color: lightgrey;
    position: absolute;
    /* bottom: 115%;
    left: 21%;
    margin-left: -60px; */
    bottom: 100%; /* Position above the element */

    /* with summarize */
    /* left: 52px; Center horizontally */
    /* without summarize */
    left: 38px; /* Center horizontally */

    transform: translateX(-50%); /* Center the tooltip */
    margin-bottom: 5px; /* Small gap between tooltip and element */

    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    /* color: #fff; */
    text-align: center;
    font-size: 0.1em;
    border-radius: 12px;
    padding: 5px 5px 5px 5px;
    /* width: 120px; */
    /* -webkit-text-fill-color:white; */
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    z-index: 9;
  }

.tooltiptext::after {
    content: '';
    position: absolute;
    bottom: -20px; /* Position arrow below the tooltip */
    left: 5px; /* Align arrow to the left */
    border-width: 8px;
    border-style: solid;
    border-color: lightgrey transparent transparent transparent; /* Black for top, transparent for sides */
}

/* .tooltiptext::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -30px;
    pointer-events: auto; 
    z-index: -1;
}  */

.tooltiptext {
    z-index: 1000;
}

.tooltiptext_summary {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    /* font-size: 0.5em; */
    border-radius: 12px;
    padding: 5px 5px 5px 5px;
    /* width: 120px; */
    bottom: 115%;
    left: 21%;
    margin-left: -60px;
    /* Position the tooltip */
    position: absolute;
    -webkit-text-fill-color:white;
  }

.tooltiptext_summary::after {
    content: '';
    position: absolute;
    bottom: -20px; /* Position arrow below the tooltip */
    left: 5px; /* Align arrow to the left */
    border-width: 8px;
    border-style: solid;
    border-color: lightgrey transparent transparent transparent; /* Black for top, transparent for sides */
}

.tooltiptext::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -15px;
    pointer-events: auto; /* IMPORTANT → allow this area to be hovered*/
    z-index: -1;

    /* OLD 80% VALUES */
    /* bottom: -20px; */
} 

.tooltiptext_summary {
    z-index: 1000;
}

#question {
    color: green;
    background-color: white;
    /* margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px; */
    margin: 5px  5px  5px  5px;
    padding: 5px  5px  5px  5px;
    border-radius: 50%; 
}

#mail {
    color: orange;
    background-color: white;
    /* margin-right: 5px;
    margin-top: 5px; */
    margin: 5px  5px  5px  5px;
    padding: 5px  5px  5px  5px;
    border-radius: 50%; 
}

#summarize {
    font-size: 1.2rem;
    color: purple;
    background-color: white;
    /* margin-right: 5px;
    margin-left: 5px;
    margin-bottom: 5px; */
    margin: 3px;
    padding: 3px;
    border-radius: 50%; 
    cursor: pointer;
}

#attach_file{
    font-size: 1.2rem;
    color: blue;
    background-color: white;
    /* margin-right: 5px;
    margin-bottom: 5px; */
    margin: 3px;
    padding: 3px;
    border-radius: 50%; 
    cursor: pointer;
}

#submit:hover{
    color:#c69ef3;
}

.tooltip-wrapper:hover .tooltiptext {
    opacity: 1;
    visibility: visible;
}

.tooltiptext:hover .tooltiptext {
    opacity: 1;
    visibility: visible;
}

/* .suggestion_button:hover {
    background-color: lightgrey;
} */

.Chatinput #text-menu{
    align-self: flex-start;
    color: light grey;
}

/* design choices text area */
.Chatinput textarea{
    display: flex;
    align-self: center;
    height: auto;        /* let rows=1 control height */
    width: 100%;
    border: none;
    outline: none;
    overflow-y: hidden;  /* hide vertical scrollbar */
    font-size: 0.8em;
    resize: none;
    /* line-height: 1.2em;   */
    padding: 0; /* Important for consistent scrollHeight */
    margin-right: 35px;
    margin-top: 8px;
    margin-bottom: 8px;
    min-height: 1.2em;
    max-height: 6em; /* Optional: set max height */
    overflow-y: auto;

    box-sizing: border-box;

    transition: height 0.1s ease-in-out;

    /* padding: 16px 15px 16px 0; */
    /* margin-left: 10px; */
    /* margin-top: 10px; */

    /* OLD 80% VALUES */
    /* height: 30px; */
    /* width: 80%; */
}

.send-button{
    position: relative;
    background: linear-gradient(to right, #00bf63, #02b4ab);
    border: none;
    border-radius: 50%;      /* Makes it round */
    width: 43px;             /* Equal width and height = perfect circle */
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;              /* Remove default padding */

    /* OLD 80% VALUES */
    /* width: 58px;          */
    /* height: 58px; */
}

/* design choices send button */
.send-button span{
    color: #724ae8;
    font-size: 1.7em;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#submit:hover .tooltiptext {
    visibility: visible;
  }

#submit:hover .tooltiptext_summary {
    visibility: hidden;
  }

.Chatinput span:hover{
    color:#c69ef3;

}

/* the send button is only visible when text has been typed */
/* .Chatinput textarea:valid ~ span{
    visibility: visible;
} */

/* design choices for anything outside the UI */
body {
    font-family: Arial, sans-serif;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.start-button:hover {
    /* background-color: #2c4c7c; */
    background-color: whitesmoke;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.5);
    border-left-color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.widget{
    animation: 2s infinite bounce; 
}

#AI {
    position: fixed; 
    text-align: center;
    bottom: 60px;
    right: 15px;
    width: 25px;
    height: 25px;
    line-height: 25px; /* Matches height for vertical centering */
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center center; 
    /* border: solid rgb(0, 191, 99);  */
    border-radius: 999px; 
    /* animation: 2s infinite bounce;  */
    display: none;
    background-color: red;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
}


/* Add or update the styling for the openChatButton */


/* Optional: Add a pulsing effect for more visibility */
/* @keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 191, 99, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 191, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 191, 99, 0);
    }
} */

/* === MARKDOWN CSS === */
/* Replace your markdown-content CSS with this to match the original exactly: */

.Chatbot .botmsg .markdown-content {
    /* Copy the EXACT styling from .Chatbot .chat p */
    color: #000; /* Changed from #fff to #000 for bot messages */
    max-width: 75%;
    font-size: 0.7em;
    padding: 8px 12px;
    border-radius: 30px 30px 30px 30px; /* Updated border-radius for bot messages */
    background: #fff; /* Changed from #007bff to #fff for bot messages */
    
    /* breaks words that are too long */
    word-break: break-word;
    overflow-wrap: break-word;
    
    /* Add the margin from .Chatbot .botmsg p */
    margin: 4px;
}

/* Remove ALL width constraints and styling from inner elements */
.Chatbot .botmsg .markdown-content p,
.Chatbot .botmsg .markdown-content h1,
.Chatbot .botmsg .markdown-content h2,
.Chatbot .botmsg .markdown-content h3,
.Chatbot .botmsg .markdown-content h4,
.Chatbot .botmsg .markdown-content h5,
.Chatbot .botmsg .markdown-content h6,
.Chatbot .botmsg .markdown-content ul,
.Chatbot .botmsg .markdown-content ol,
.Chatbot .botmsg .markdown-content li,
.Chatbot .botmsg .markdown-content div,
.Chatbot .botmsg .markdown-content blockquote,
.Chatbot .botmsg .markdown-content pre {
    /* Remove all width/size constraints - let content flow naturally */
    margin: 0;
    padding: 0;
    width: auto;
    max-width: none;
    font-size: inherit;
    line-height: 1.4;
}

/* Only add minimal spacing between elements */
.Chatbot .botmsg .markdown-content p + p,
.Chatbot .botmsg .markdown-content h1 + p,
.Chatbot .botmsg .markdown-content h2 + p,
.Chatbot .botmsg .markdown-content h3 + p {
    margin-top: 0.3em;
}

/* Style headers but keep them natural width */
.Chatbot .botmsg .markdown-content h1 { font-size: 1.2em; font-weight: 600; color: #333; }
.Chatbot .botmsg .markdown-content h2 { font-size: 1.1em; font-weight: 600; color: #333; }
.Chatbot .botmsg .markdown-content h3 { font-size: 1.05em; font-weight: 600; color: #333; }

.Chatbot .botmsg .markdown-content strong,
.Chatbot .botmsg .markdown-content b {
    font-weight: 600;
    color: #333;
}

.Chatbot .botmsg .markdown-content ul,
.Chatbot .botmsg .markdown-content ol {
    padding-left: 1.2em;
    margin: 0.2em 0;
}

.Chatbot .botmsg .markdown-content code {
    background: #f5f5f5;
    padding: 1px 3px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}


/* Ensure bouncing dots container works properly */
.Chatbot .botmsg .markdown-content .bouncing-dots {
    display: flex !important;
    justify-content: space-between !important;
    width: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 15px !important;
}

/* Ensure individual dots work properly */
.Chatbot .botmsg .markdown-content .bouncing-dots .dot {
    width: 3px !important;
    height: 3px !important;
    background-color: grey !important;
    border-radius: 50% !important;
    animation: bounce 1.5s infinite !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Maintain the animation delays */
.Chatbot .botmsg .markdown-content .bouncing-dots .dot:nth-child(1) {
    animation-delay: 0s !important;
}

.Chatbot .botmsg .markdown-content .bouncing-dots .dot:nth-child(2) {
    animation-delay: 0.3s !important;
}

.Chatbot .botmsg .markdown-content .bouncing-dots .dot:nth-child(3) {
    animation-delay: 0.6s !important;
}

/* === IFRAME CSS === */
/* Only layout positioning - all styling inherits automatically */

/* Basic iframe container setup */
body.in-iframe {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
}

/* Chatbot container - ONLY positioning changes */
body.in-iframe .Chatbot {
    /* Layout positioning only */
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: none !important;
    
    /* Remove standalone styling */
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    
    /* Keep flexbox structure */
    display: flex !important;
    flex-direction: column !important;
}

body.in-iframe .Chatbox {
    flex: 1; /* Take remaining space */
    height: auto !important;
    min-height: 0;
    overflow-y: auto !important;
}

body.in-iframe .user-input {
    flex-shrink: 0; /* Prevent input from shrinking */
}

/* Hide elements not needed in iframe */
body.in-iframe #openChatButton {
    display: none !important;
}

/* Mobile responsive - layout only */
@media only screen and (max-width: 700px) {
    body.in-iframe .Chatbot {
        position: relative !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
}

/* Fix for head too big  */
body.in-iframe .head {
    height: 100px !important;
    padding: 15px 7px !important;
    box-sizing: border-box !important;
}
