:root {

    --primary-color: #2C2F57;
    --primary-text-color: white; 
    --hover: #6165A4;
    --gradient:linear-gradient(45deg,#6165A4,#d0d0d0,#B895B9); 
    --input-primary: #272727 ;
    --primary-widget:#6165A4;
    --secondary-widget:#B895B9;
}


.assistantInteraction{
    background-color: var(--primary-color);
    color: var(--primary-text-color);
    display: flex;
    flex-direction: column;
   position: relative;
    height: 100vh;
    align-items: center;
}

.main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;

}

.main div{
    width: 100%;
    max-width: 50rem;

}

.main .info{
    display: flex;
    align-items: center;
    flex-direction: column;
}

.scrollable{
    height: 65vh;
    overflow-y: scroll; 
}

/* Apply to the target element */
.scrollable {
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.scrollable::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
}

header{
    width: 100%;
    display: flex;
}

header h2{
   
    font-size: 1.2em;
}

header a{
    padding: 1em;
    border-radius: 5em;
}
header a:hover{
    background-color: var(--hover);
}

header .aboutus{
    margin-left: auto;
}

.assistantInteraction h1{
    font-size: 6em;
    font-weight: bold;
}

.assistantInteraction p{
    font-size: 2em;
    font-weight: 300;
}
.assistantInteraction form.input{
    padding: 1rem 4px;
    background-color: var(--input-primary);
    width: 100%;
    height: 3em;
    border-radius: 10rem;
    display: flex;
    margin-top: 2em;
    position: relative;
    z-index: 1;
}

.assistantInteraction form.input::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10rem; 
    padding: 4px; 
    background: var(--gradient); 
    mask: 
      linear-gradient(#000 0 0) content-box, 
      linear-gradient(#000 0 0);
    mask-composite: exclude; 
    z-index: -1;
  }



.assistantInteraction input[type=text]{
    background-color: inherit;
    outline: none;
    font-size: 1.2rem;
    flex-grow: 1;
}

.assistantInteraction input[type=file], .assistantInteraction input[type=submit]{
  display: none;

}


.assistantInteraction .custom-file-label {

    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius:  10rem ;
  }

  .assistantInteraction .custom-file-label:hover {
    background-color: var(--hover); /* Darker indigo */
  }

  .assistantInteraction .custom-file-label i {
    font-size: 1.2em; /* Adjust icon size */
  }


.assistantInteraction .msg{
    background-color: var(--primary-widget);
    width: 45%;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 1rem;
    font-size: 10px;
    text-align: justify;
}


.assistantInteraction .msg.user{
    background-color: var(--secondary-widget);
    margin-left: auto;
}

.project{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    overflow-y: scroll;
}
.project .card{
    width: 10rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color:  var(--primary-widget);
    color: white;
    padding: 1rem;
    min-width: 20rem;
    min-height: 10rem;
   
}

.project .card.new{
    background-color:  var(--secondary-widget);
    justify-content: center;
    align-items: center;
}

.project .card.new i{
 
    font-size: 3.5rem;
}



.project .card p{
    font-size: 1rem;
}
.project .card h2{
    font-size: 1.2rem;
    font-weight: 900;
}

.assistantInteraction .msg h1,
.assistantInteraction .msg h2,
.assistantInteraction .msg h3,
.assistantInteraction .msg h4,
.assistantInteraction .msg h5,
.assistantInteraction .msg h6 {
    font-size: 2em;
    margin: 0.5em 0;
}

.assistantInteraction .msg p {
    font-size: 1.5em;
    margin: 0.5em 0;
}

.assistantInteraction .msg ul,
.assistantInteraction .msg ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.assistantInteraction .msg li {
    font-size: 1.5em;
    margin: 0.5em 0;
}

.assistantInteraction .msg ul li p {
    font-size: 1em;
    margin: 0.5em 0;
}

.assistantInteraction .msg ol li p {
    font-size: 1.0715em;
    margin: 0.5em 0;
}

.assistantInteraction .msg ol li {
    font-size: 1em;
    margin: 0.5em 0;
}

.selected-files {
    margin: 10px 0;
    max-height: 100px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: var(--secondary-widget);
    margin: 5px 0;
    border-radius: 4px;
}

.file-item button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

.file-item button:hover {
    color: var(--primary-widget);
}

.loading-msg {
    background-color: var(--primary-widget);
    width: 45%;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 1rem;
    font-size: 10px;
    text-align: justify;
}

.loading-msg.user {
    background-color: var(--secondary-widget);
    margin-left: auto;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.loading-dots div {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: var(--primary-text-color);
    border-radius: 50%;
    animation: loading-dots 1s infinite;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

.attachments {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    position: relative;
}

.attachments i {
    margin-right: 0.5rem;
}

.attachments:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--primary-text-color);
    padding: 0.5rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s;
}

.attachments::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--primary-text-color);
    padding: 0.5rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.loading-popup {
    position: fixed;
    top: 0;
    left: 100;
    width: 50%;
    height: 100%;
    background-color: rgba(44, 47, 87, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-popup-content {
    background-color: var(--primary-color);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
    border: 2px solid var(--primary-widget);
    animation: popup-fade 0.3s ease-in-out;
    max-width: 90%;
    width: 400px;
    position: relative;
}

/* Update animation timing */
@keyframes popup-fade {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.loading-popup-content h2 {
    color: var(--primary-text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.loading-popup-content p {
    color: var(--primary-text-color);
    font-size: 1rem;
    opacity: 0.8;
}

.loading-popup-content::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 1rem auto 0;
    border: 3px solid var(--primary-widget);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 1s linear infinite;
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-name {
    display: flex;
    width: 98%;
    justify-content: left;
    margin-bottom: 1rem;
}

.button-row {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

header h1 {
    font-size: 2em;
    font-weight: bold;
}

header h2 {
    font-size: 1.2em;
}

header a {
    padding: 1em;
    border-radius: 5em;
}

header a:hover {
    background-color: var(--hover);
}

header .aboutus {
    margin-left: auto;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes popup-fade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .assistantInteraction .msg{
        width: 80%;
    }

    .main div{
        width: 100%;
        max-width: 100%;
    
    }

}