
html, body {
    width: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
   /* display: flex;
    flex-direction: column;*/
    min-height: 100vh;
    align-items: stretch;
    background: linear-gradient(to top, #f8f1de 0%, #ffffff 40%);
}




.logo img {
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}


.titles {
    text-align: center;
    margin-bottom: 16px;
}

.titles h2 {
    font-size: 16px;
    font-weight: 400;
    margin: 8px 0 8px;
    color: #555;

}

h1{
    margin-top: 0px;
}


.divider,.divider-footer {
    height: 1px;
    width: 100%;
    max-width: 100px;
    margin: 0 auto 25px;
    border-radius: 1px;
    background: linear-gradient(to right, transparent, #e6b843, transparent);
}

.divider,.divider-footer {

    margin: 0 auto 10px;

}



.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



.wrapper {
    margin: 0 auto;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;





}
.content-wrapper {
    flex: 1;
    width: 100%;
    /* max-width: 1200px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    scroll-behavior: smooth;
    overflow-y: auto;

    padding-right: 20px;
    background-clip: content-box;

}

.chat-box{
    width: 100%;


}

.content-wrapper h1 {
    font-size: 25px;
    margin: 0 0 15px 0;
    text-align: center;
    width: 100%;
}


.triangle-text, .step p{
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    flex-grow: 1;
}




.content-wrapper h2{
    text-align: center;
    justify-content: center;
}


.steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 35px auto;
    font-family: Arial, sans-serif;
    text-align: center;
}

.step {
    background: #fff;
    border-radius: 8px;
    padding: 40px 15px 20px;
    flex: 1 1 220px;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    position: relative;
}

.step .icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px;
    border-radius: 50%;
}

.step .icon img {
    width: 55px;
    height: auto;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    margin-top: 10px;
}

.step p {
    font-size: 15px;
    line-height: 1.4;
    flex-grow: 1;
    font-family: 'Inter', sans-serif;
}

.arrow {
    width: 15px;
    height: auto;
    align-self: center;
}



.chat-input {
    --radius: 20px;
    --shadow: 0 6px 16px rgba(0,0,0,.08);

    flex-shrink: 0;

    display: flex;
    flex-direction: row;
     align-items: center;
    justify-content: space-between;
    /*align-items: flex-start;*/
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 10px auto;
    padding: 10px 10px 10px 15px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid #e6e6e6;
    box-sizing: border-box;
}


.chat-input textarea {
    flex: 1;
    resize: none;
    border: none;
    outline: none;
    font-size: 15px;
    line-height: 1.5;
    max-height: 180px;
    overflow-y: auto;
    /* overflow-y: hidden;*/
    min-height: 40px;
    flex-shrink: 0;
}


.chat-input-bottom{
    flex: 9;
display: flex;
    flex-direction: column;
     align-items: stretch;

}

@media (max-width: 480px) {
    .chat-input {
        padding: 8px 40px 8px 12px;
    }
}


.chat-input__field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: 500 17px/1.5 Inter, sans-serif;
    color: #111;

        display: block !important;
    flex: none !important;


    resize: none;
    overflow: hidden;

    min-height: 22px;
    line-height: 22px;
    padding: 0;

    white-space: pre-wrap;
    word-wrap: break-word;
}
.chat-input__field::placeholder {
    color: #9aa0a6;
}

.input_buttons{
     flex: 1;
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: flex-end;
   /* position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);*/

}

.chat-input__send, .chat-input__attach{
     display: flex;
    align-items: center;
    justify-content: center;


    border: none;
    background: #0b0b0c;
    color: #fff;
    border-radius: 50%;
    place-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
}
.chat-input__attach{
    background: #fff;
    color: #6c6969;
    transition: background 0.2s ease;
    position: relative;

}

.chat-input__attach:hover{
    background: rgba(230, 230, 230, 0.8);
}

.chat-input__send .icon, .chat-input__attach .icon{
    width: 16px;
    height: 16px;
}


.chat-input:focus-within{
    border-color: #d7b256;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.chat-input__send:hover{
    filter: brightness(1.08);
}

.footer {
    text-align: center;
    font-size: 15px;
    color: #999;
    margin-top: 5px;
}


.right-buttons{
    display: flex;
    gap: 10px;

    flex: 1;
    justify-content: flex-end;
}

.auth-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.auth-buttons .btn {
    padding: 6px 14px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.left-icons {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 1;

    justify-content: flex-start;
}


.center-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}


.icon-btn,.icon-bubble {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}



.icon-btn::after,.icon-bubble::after,.chat-input__attach::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.icon-btn:hover::after,
.icon-btn:hover::before,
.icon-bubble:hover::after,
.icon-bubble:hover::before{
    opacity: 1;
}

.chat-input__attach:hover::after,
.chat-input__attach:hover::before {
    opacity: 1;
    transform: translateX(-50%);
}



.icon-btn:hover, .icon-bubble:hover{
    background-color: rgba(230, 230, 230, 0.8);
}

.icon-btn img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.icon-bubble img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}



.bubble-buttons{
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}



.auth-buttons .sign-up { display: inline-flex; }


@media (max-width: 501px) {
    .auth-buttons .sign-up { display: none; }
}

@media (max-width: 900px) {
    .arrow {
        display: none;
    }
    .steps{
        gap: 30px;
    }

}


.sign-in {
    background-color: #f0f0f0;
    color: #333;
}

.sign-in:hover {
    background-color: #e0e0e0;
}


.sign-up {
    background-color: black;
    color: white;
}

.sign-up:hover {
    background-color: #333;
}


@media (max-width: 768px) {
    .wrapper{
        padding-top: 20px;
    }

    .content {
        flex-direction: column;
        position: static;
    }
    .content::before {
        display: none;
    }
    .left-column, .right-column {
        padding: 0;
    }


    .content-wrapper {
        display: block;
        height: auto !important;
        padding: 0px 16px 20px 16px;

    }

    #content-main[style*="opacity: 0"] {
        display: none !important;
    }


    .step{
        max-width: 110px;
    }

    .chat-box{
        width: 95%;
    }

    .chat-box.fixed-bottom{
        width: 95%;!important;
    }

    .auth-buttons {
        padding: 5px 10px 5px 10px;
    }

}


@media (max-width: 400px) {
    .wrapper{
        padding-top: 0px;
    }

    .step{
        max-width: 100px;
    }

}





@keyframes fadeInDrop {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo,
.titles,
.divider,
.content-wrapper,
.step,
.chat-input,
.footer {
    opacity: 0;
    animation: fadeInDrop 0.8s ease-out forwards;
}


.logo { animation-delay: 0.1s; }
.titles { animation-delay: 0.3s; }
.divider { animation-delay: 0.5s; }
.content-wrapper { animation-delay: 0.7s; }
.step { animation-delay: 0.9s; }
.chat-input { animation-delay: 1.2s; }
.footer { animation-delay: 1.5s; }



@keyframes slideUpFade {
    0% {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
        max-height: 0;
        margin: 0;
        padding: 0;
    }
}

.hidden-up {
    animation: slideUpFade 0.4s ease forwards;
    overflow: hidden;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.chat-active {
    overflow: hidden;
    height: 100vh;
}



.content-wrapper.chat-mode {
    display: flex;
    gap: 25px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px 16px 0 16px;
    box-sizing: border-box;
}


.content-wrapper.chat-mode::-webkit-scrollbar {
    width: 8px;
}

.content-wrapper.chat-mode::-webkit-scrollbar-thumb {
    background-color: rgba(180, 180, 180, 0.6);
    border-radius: 10px;
}

.content-wrapper.chat-mode::-webkit-scrollbar-thumb:hover {
    background-color: rgba(120, 120, 120, 0.8);
}


.message {
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.bubble-wrap{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: fit-content;
}

.message.assistant {
    justify-content: flex-start;
}

.bubble {
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 85%;
    font-size: 17px;
    line-height: 1.5;
    word-wrap: break-word;
    font-family: 'Inter', sans-serif;
}

.message.user .bubble {
    background-color: #f1f1f1;
    color: #000000;
}

.message.assistant .bubble {
    color: #000;
    max-width: 90%;!important;

}


@media (max-width: 768px) {
    .content-wrapper.chat-mode::-webkit-scrollbar {
        display: none;
    }
    .content-wrapper.chat-mode {
        scrollbar-width: none;
    }
}


.chat-box.fixed-bottom {
    position: absolute;
    bottom: 40px;
    display: flex;
    justify-content: center;
    background: transparent;
}

body.chat-active .footer {
    position: absolute;
    bottom:25px;
    left: 0;
    width: 100%;
    text-align: center;
    background: transparent;
    z-index: 4;
    margin-bottom: 0;
}

body.chat-active .divider-footer {
    position: absolute;
    bottom: 5px;
    width: 100px;
    height: 1px;
    z-index: 3;
}

.logo-auth-buttons {
    height: 30px;
}

.bubble h4{
 margin: 0px;

}

.bubble p{
    margin: 5px 0px 5px 0px;

}

.centered-box{
transition: none !important;    opacity: 1 !important;
    transform: none !important;
}


@keyframes fadeIn {
    from { opacity:0; transform: translateY(4px); }
    to   { opacity:1; transform: translateY(0); }
}

.attached-file-bubble,.attached-preview{


     align-self: flex-start; 
    width: auto;
    display: inline-flex;

    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 10px 14px;
    align-items: center;
    gap: 12px;

    margin-bottom: 10px;

    animation: fadeIn 0.2s ease-out;
}

.attached-file-bubble.hidden,.attached-preview.hidden{
    display: none;
}

.attached-file-icon {
    width: 32px;
    height: 32px;
    background: #e8ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attached-file-icon svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.attached-file-name {
    font-size: 15px;
    flex: 1;
    color: #333;
    cursor: pointer;
}

.attached-file-remove {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attached-file-remove:hover {
    background: #ddd;
}

.attached-file-remove svg {
    width: 12px;
    height: 12px;
}


.bubble p.assistant-text.thinking {


  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  margin: 10px 0;
  font-size: 17px;

}
.bubble p.assistant-text.thinking .thinking-label {
  background: linear-gradient(90deg, #777, #bbb, #777);
  background-size: 200%;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 1.5s infinite linear;
  font-weight: 500;
}



.bubble p.assistant-text.thinking .dots {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 5px;
}


.bubble p.assistant-text.thinking .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #999;
  opacity: 0.8;
  animation: bounce 0.6s infinite alternate;
}


.bubble p.assistant-text.thinking .dot2 {
  animation-delay: 0.15s;
}
.bubble p.assistant-text.thinking .dot3 {
  animation-delay: 0.30s;
}


@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes bounce {
  from { transform: translateY(0);   opacity: 0.5; }
  to   { transform: translateY(-4px); opacity: 1; }
}

.inline-code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.bubble .bold { font-weight: bold; }
.bubble .italic { font-style: italic; }
.bubble .h1 { font-weight: bold; font-size: 1.4rem; display:block; margin-top:10px; }
.bubble .h2 { font-weight: bold; font-size: 1.2rem; display:block; margin-top:8px; }
.bubble .h3 { font-weight: bold; font-size: 1.1rem; display:block; margin-top:6px; }
.bubble .bullet { display:block; margin-left:1rem; }
