:root {
    --color: rgb(211, 211, 211);
    --muted: rgb(99, 99, 99);
    --muted2: rgb(59, 59, 59);
    --mutedlight: rgb(128, 128, 128);
    --bg: #131414;

    --darker-gray: #101011;
    --light-gray: #2b2b2b;
}


button {
    background: none;
    border: none;
    outline: none;
    all: unset;
    display: inline-flex; 
}

body {
    background: var(--bg) !important;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-size: 16px;
}

p {
    color: var(--color);
}

.site {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow-y: scroll;
    overflow-x: hidden;
}

.site::-webkit-scrollbar {
  width: 12px;
}

.site::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 10px;
}

.site::-webkit-scrollbar-thumb {
  background-color: var(--muted);
  border-radius: 10px;
  border: 3px solid var(--bg);
}

.site::-webkit-scrollbar-thumb:hover {
  background-color: var(--color);
}

.content {
    width: 93vw;
    max-width: 768px;
    display: flex;
    flex-direction: column;
}

.hide {
    position: fixed;
    background-color: var(--bg);
    width: 100%;
    left: 0;
    bottom: 0;
    height: 70px;
    z-index: 5;
    
}

.input-banner {
    position: fixed;
    bottom: 5vh;
    max-width: 768px;
    width: 93vw;
    background-color: var(--light-gray);
    border-radius: 28px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 10px;
    gap: 5px;
    z-index: 100;
    transition: bottom 0.3s ease;
}


textarea {
    width: calc(100% - 36px - 36px - 10px - clamp(1px, 0.75vw, 10px) - clamp(1px, 0.75vw, 10px) - 10px);
    height: 24px;
    border: none;
    outline: none;
    background: none;
    color: var(--color);
    caret-color: var(--color);
    padding: 0;
    margin-left: clamp(1px, 1vw, 10px);
    margin-right: clamp(1px, 1vw, 10px);
    font-weight: 400;
    resize: none;
    overflow-y: auto;
    z-index: 100;
}

textarea:hover,
textarea::placeholder,
textarea:focus {
    border: none;
    outline: none;
}
textarea::placeholder {
    color: var(--mutedlight);
}

textarea::-webkit-scrollbar {
    width: 6px;
}

textarea::-webkit-scrollbar-thumb {
    background-color: var(--mutedlight);
    border-radius: 3px;
}

textarea::-webkit-scrollbar-track {
    background: transparent;
}

.input-banner button{
    z-index: 100;
    height: 36px !important;
    width: 36px !important;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    background: none;
    color: var(--color);
}

button.dropupbutton:hover {
    background-color: var(--muted);
}

.input-banner i {
    font-size: 17px;
}

button.submit {
    background-color: white;
    color: black;
}


button.submit:disabled {
    background-color: var(--muted2) ;
    color: var(--color);
    cursor: default;
}


.fileuploadedcontainer {
    position: absolute;
    max-width: 768px;
    width: 93vw;
    height: 105px;
    bottom: 25px;
    background: var(--light-gray);
    margin-left: -10px;
    z-index: -5;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding-left: 10px;
    padding-top: 10px;
    display: flex;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: hidden;
    flex-wrap: nowrap;
    box-sizing: border-box;
}




.delete-button {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 1px;
    right: 1px;
    color: rgb(224, 10, 10);
    
    border: none;
    border-radius: 50%;
    width: 10px !important;
    height: 10px !important;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 0;
    
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

button.delete-button{
    padding: 3px;
    width: 10px !important;
    height: 10px !important;
    font-size: 14px !important;
    color: #ff0000 !important;
}

.delete-button:hover {
    color: white !important;
    background-color: #ff0000 !important;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    height: 50px;
    width: auto;
    border-radius: 5px;
    display: block;
    border: 1px solid var(--mutedlight);
}


/* Standard (PC / Desktop) */
.chat {
    font-size: 16px;
    width: 93vw;
    max-width: 768px;
    padding-bottom: 13vh;
    margin-top: 75px;
    box-sizing: border-box;
}

.chat::after {
    content: "";
    display: block;
    height: 10vh;
    width: 100%;
}

/* Tablet / Handy */
@media (max-width: 768px) {
    .chat {
        padding-bottom: 15vh; /* mehr Platz auf kleineren Geräten */
    }
    .chat::after {
        height: 15vh;
    }
}

/* Sehr kleine Handys */
@media (max-width: 480px) {
    .chat {
        padding-bottom: 15vh;
    }
    .chat::after {
        height: 18vh;
    }
}



.message {
    font-size: 17px;
    width: 100%;
    max-width: 93vw;
    margin-bottom: 25px;
    color: var(--color);
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.user {
    position: relative;
    font-size: 17px;
    width: 100%;
    margin-left: auto;
    max-width: 70%;
    background-color: var(--light-gray);
    padding: 10px 20px;
    border-radius: 25px;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.user.usererrormessage {
    box-shadow: 0 0 3px 0.5px red;
}

.ai {
    font-size: 17px;
    max-width: 93vw;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 15px;
}

.imgmessage img{
    width: auto;
    max-width: 750px;
    height: 300px;
    border-radius: 5px;
}

.ai p {
    font-size: 17px;
    max-width: 750px;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.chat pre {
    background-color: var(--darker-gray);
    border-radius: 20px;
    max-width: 100%;
    width: auto; 
    box-sizing: border-box;
    padding: 15px;
    padding-top: 40px;
    margin-bottom: 16px;
    margin-top: 16px;
    overflow-x: auto;
    font-size: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--light-gray) transparent;
}


.chat pre::before {
    content: "";
    color: var(--text1);
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 30px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: var(--darker-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#copybutton {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 1.5px;
    right: 8px;
    padding: 8px 8px;
    z-index: 1;
    color: var(--text1);
    font-size: 13px;
}

#codelanguage {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 1.5px;
    left: 8px;
    padding: 8px 8px;
    z-index: 1;
    color: var(--text1);
    font-size: 13px;
}

.chat pre::-webkit-scrollbar {
    height: 8px;
}

.chat pre::-webkit-scrollbar-track {
    background: transparent;
}

.chat pre::-webkit-scrollbar-thumb {
    background-color: var(--light-gray);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}


.chat code {
    background-color: var(--darker-gray);
    color: var(--text1);
    padding: 2px 6px;
    border-radius: 4px;
}

.chat pre code {
    background: none;
    padding: 3px;
}

#copybutton {
    background: none;
}


.uploadedimages {
    height: 80px;
    width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

img#usermessageuploadedimg {
    height: 80px;
    width: auto;
    border-radius: 5px;
}





























.dots-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color);
    display: inline-block;
    animation: bounce 1s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}


@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}




think {
    width: 55%;
    border-radius: 10px;
    padding: 7.5px;
    font-size: 16px;
    display: block;
    color: var(--text1);
    background: var(--light-gray);
    font-style: italic;
    margin-bottom: 10px;
}


#copybutton {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 1.5px;
    right: 8px;
    padding: 8px 8px;
    z-index: 1;
    color: var(--color);
    font-size: 13px;
}

#codelanguage {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 1.5px;
    left: 8px;
    padding: 8px 8px;
    z-index: 1;
    color: var(--color);
    font-size: 13px;
}



.alert-dark.custom-alert {
  background-color: var(--light-gray) !important;
  color: var(--color) !important;
  border: none !important;
}

.alert-dark.custom-alert .btn-close {
    filter: invert(1);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.alert-dark.custom-alert .btn-close:hover,
.alert-dark.custom-alert .btn-close:focus,
.alert-dark.custom-alert .btn-close:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


#alert-container {
    position: fixed;
    top: 10px;
    width: 93vw;
    max-width: 768px;
    z-index: 1050;
}



.dropdown-menu {
    background-color: var(--light-gray);
    border: none;
    border-radius: 10px;
    padding: 7.5px 0;
    min-width: 225px;
    width: calc(93vw / 2.5);
    max-width: 275px;
    box-shadow: 0 4px 12px rgba(27, 27, 27, 0.75);
}





.dropdown-item {
    color: var(--color);
    width: calc(100% - 10px);
    padding: 9px 10px;
    transition: background-color 0.2s ease;
    margin: 0 5px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    font-size: 15px;
    line-height: 1;
}

.dropdown-item svg {
    vertical-align: middle;
}


.dropdown-item:hover {
    background-color: var(--muted2);
    color: var(--color);
}

.dropdown-item.active-option {
    color: #0d89fd !important;
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--mutedlight);
    margin-left: 20px;
    margin-right: 20px;
}


.j-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35.99px !important;
}
.j-button svg {
    fill: #0d89fd;
    display: block;
    margin: auto;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.responseimg {
    max-width: 500px;
    width: 70%;
    height: auto;

}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-box {
  width: 100%;
  max-width: 768px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
}

.modal-header {
  width: 100%;
  background: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  box-sizing: border-box;
  color: var(--color);
}

.modal-header button {
  background: var(--muted);
  color: var(--color);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.modal-header button:hover {
  background: var(--muted2);
}

.modal-header span {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

.modal-content {
  width: 100%;
  max-height: 80vh;
  background: var(--light-gray);
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
}
.txtcopybutton {
    padding: 5px;
    color: var(--color);
}

.txtcopybutton:hover {
    background-color: var(--light-gray);
    border-radius: 10px;
}
