body {
margin: 0;
font-family: sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: rgb(12, 38, 51);
}

body.login {
background: rgb(229, 229, 229); 
}

/* login section */
.large-logo {
position: absolute;
top: -10vh;
left: -10vw;
width: 50vw;
max-width: 1000px;
z-index: -1;
opacity: 0.6;
}

._header_login_ {
font-size: 0.7em;
color: rgb(0, 0, 0);
}

.loginForm {
display: flex;
position: absolute;
top: 50%;
bottom: auto;
font-size: .8em;
font-family: sans-serif;
transform: translateY(-50%);
flex-direction: column;
align-items: center;
justify-content: center;
width: 300px;
border: 1px solid #ccc;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}

.loginForm label,
.loginForm input {
width: 100%;
margin-bottom: 10px;
}

.loginForm label {
margin-bottom: 5px;
font-weight: bold;
}

.loginForm input {
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}

.loginForm button {
background-color: #000000;
color: white;
border: none;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 1em;
margin: 4px 2px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s;
}

.loginForm button:hover {
background-color: #6b6b6b;
}

/* header elements */
.header-container {
display: flex;
align-items: center;
position: absolute;
top: 5px;
right: 5px;
gap: 5px;
line-height: 2;
}

._header_ {
font-size: 0.7em;
color: rgb(255, 255, 255);
}

.toggleTitle {
font-size: 0.8em;
color: rgb(255, 255, 255);
}

.modelButton {
width: 1.5vw;
cursor: pointer;
}

.logo {
width: 5vw;
}

.logoutButton {
width: 1.5vw;
cursor: pointer;
}

/* tabs */
.tablinks {
width: 1.5vw; 
cursor: pointer;
margin: 2px;
}

/* hidden */
.hidden {
display: none;
}

/* container */
.container {
position: relative;
width: 90%;
max-height: 70vh;
text-align: center;
overflow: auto;
scrollbar-width: thin !important; 
scrollbar-color: transparent transparent !important; 
}

/* AI module */
#AI_module {
display: flex;
align-items: flex-start;
justify-content: space-between;
flex-wrap: wrap;
width: 100%; 
height: 70vh;
overflow: auto;
}

.analysis-block {
width: 50%;
height: 100%;
box-sizing: border-box;
overflow: auto; 
border: 1px solid #9f9d9d;
font-size: .8em;
padding: 5px;
color: rgb(255, 255, 255);
text-shadow: 0 0 5px rgb(0, 0, 0);
text-align: left;
z-index: 1;
scrollbar-width: thin !important; 
scrollbar-color: transparent transparent !important; 
}

.hidden {
display: none;
}

/* information tab */
#Information {
display: grid;
width: 60vw;
grid-template-columns: repeat(2, 1fr); 
gap: 20px;
padding: 20px;
border: 1px solid #9f9d9d;
color: rgb(255, 255, 255);
margin: auto;
}

.information-form {
width: 60vw;
}

.form-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}

.form-row span {
flex-basis: 30%;
font-size: .8em;
}

#Information input[type="text"] {
flex-basis: 70%;
padding: 5px;
font-size: .6em;
border: 1px solid #ccc;
}

/* output container */
.output-container {
box-sizing: border-box;
position: relative;
padding: 20px 20px 20px 20px;
width: 50%;
height: 70vh;
text-align: center;
background: rgba(255, 255, 255, 0.01); 
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02),
            0 1px 3px rgba(0, 0, 0, 0.02);
border: 1px solid #9f9d9d;
overflow: auto;
}

.chat-container {
position: relative;
display: flex;
align-items: center;
justify-content: flex-end; 
}

.input {
width: 100%;
padding-top: 10px;
padding-left: 40px;
padding-right: 40px;
padding-bottom: 10px;
border: 0;
outline: 0;
border-bottom: 0.1px solid rgb(255, 255, 255) !important;
color: rgb(255, 255, 255);
text-shadow: 0 0 5px rgba(38, 38, 38, 0.8);
background: transparent;
transition: 0.1s;
resize: none;
font-family: inherit;
overflow-y: auto; 
box-sizing: border-box;
line-height: 1.5;
height: 3em; 
max-height: 6em; 
font-size: .8em;
}

.input::-webkit-scrollbar {
display: none;
}

.input {
-ms-overflow-style: none;  
scrollbar-width: none;  
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 30px transparent inset !important;
box-shadow: 0 0 0 30px transparent inset !important;
-webkit-text-fill-color: rgb(52, 52, 52) !important;
font-family: inherit !important;
}

#output {
position: relative;
margin-top: 20px;
height: 55vh;
overflow-y: auto;
font-size: .8em;
padding: 5px;
color: rgb(249, 249, 249);
text-shadow: 0 0 5px rgb(0, 0, 0);
text-align: left;
z-index: 1;
scrollbar-width: thin !important; 
scrollbar-color: transparent transparent !important; 
}

/* code container */
.code-container {
background-color: #2d2d2d; 
color: #ccc; 
padding: 10px;
margin: 10px 0;
border-radius: 4px;
overflow-x: auto; 
font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
}

/* sourcs */
.source-item {
padding: 1px;
margin-bottom: 1px;
border-bottom: .5px solid #ffffff;
font-size: .8em;
color: rgb(253, 253, 253);
text-align: left;
}

/* buttons */
#submit {
position: absolute;
right: 0px;
background: transparent;
border: none;
cursor: pointer;
transition: left 0.3s ease;
}

#submit img {
width: 30px;
height: 30px;
}

/* stop button */
#stop {
position: absolute;
right: 0px;
top: 50%;
padding-bottom: 0px;
transform: translateY(-50%);
background: transparent;
border: none;
cursor: pointer;
}

#stop img {
width: 30px;
height: 30px;
}

/* upload */
.file-btn {
position: absolute;
left: 0px;
background: transparent;
border: none;
cursor: pointer;
}

.file-btn img {
width: 30px;
height: 30px;
}

.disabled-button {
opacity: 0.5;
cursor: not-allowed;
}

#working{
position: absolute;
left: 0px;
top: 50%;
padding-bottom: 0px;
transform: translateY(-50%);
background: transparent;
border: none;
cursor: pointer;
}

/* download button */
.file-container {
position: relative;
display: block;
background-image: url('/static/document_active.png'); 
background-size: cover; 
width: 130px; 
height: 130px;
align-items: center;
justify-content: center;
text-align: center;
}

.file-container:hover {
filter: url('#contour-highlight'); 
}

.file-container-link {
text-decoration: none; 
color: inherit; 
}

.file-name {
color: white; 
position: absolute;
bottom: 20%;
left: 50%;
transform: translateX(-50%);
font-size: 9px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 65%;
}

.delete-icon {
position: absolute;
top: -6px;
left: 9px;
width: 20px; 
height: 20px;
display: none;
cursor: pointer;
}

.file-container:hover .delete-icon {
display: block;
}


/* mobile warning */
#mobile-warning {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: transparent;
color: rgb(255, 255, 255);
z-index: 1000;
text-align: center;
font-size: 1em;
border: 2px solid #000000;
padding: 20px;
width: 80%;
}


#mobile-warning p {
color: rgb(255, 255, 255);
}

/* shake */
@keyframes shake {
0% { transform: translateX(0); }
10% { transform: translateX(-10px); }
20% { transform: translateX(10px); }
30% { transform: translateX(-10px); }
40% { transform: translateX(10px); }
50% { transform: translateX(-10px); }
60% { transform: translateX(10px); }
70% { transform: translateX(-10px); }
80% { transform: translateX(10px); }
90% { transform: translateX(-10px); }
100% { transform: translateX(0); }
}

.shake {
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

@media screen and (max-width: 870px) {
.tablinks {
display: none;
}


#output {
display: none;
}

.messages-container {
display: none;
}

#mobile-warning {
display: block;
}

.container {
display: none;
}
}