/* Default styles (Light Mode) */
:root {
    --bg-color: white;
    --text-color: #1e1e1e;
    --border-color: #777777;
    --code-bg: #efefef;
    --code-text: #1e1e1e;
    --code-border: #1e1e1e;
    /* --input-bg: #fff; */
    --input-bg: #f4f4f4;
    --input-text: #1e1e1e;
    --input-border: #1e1e1e;
    --input-button-bg: #efefef;
    --input-button-text: #1e1e1e;
    --input-button-border: #1e1e1e;
    --userText-span: #f4f4f4;
    --fa-arrow-up-color: #fff;
    --fa-arrow-up-background: #575656;
    --bg-highlight:#ececec;
}
/* Dark Mode styles */
html.dark-mode {
    --bg-color: #1e1e1e;
    --text-color: white;
    --border-color: #ededed;
    --code-bg: #7777;
    --code-text: #fff;
    --code-border: #efefef;
    /* --input-bg: #1e1e1e; */
    --input-bg: #2e2e2e;
    --input-text: #fff;
    --input-border: #fff;
    --input-button-bg: #999;
    --input-button-text: #efefef;
    --input-button-border: #efefef;
    --userText-span: #494949;
    --fa-arrow-up-color: #2f2f2f;
    --fa-arrow-up-background: #676767;
    --bg-highlight:#424242;
}
* {
    box-sizing: border-box;
}
/* body {
    font-family: ui-sans-serif, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #1e1e1e;
    color: #fff;
    margin: 0;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
} */
.sidebar {
    width: 250px;
    background-color: #252526;
    color: #fff;
    height: 100vh;
    position: fixed;
    padding: 20px;
    overflow-y: auto;
    left:0 ;
}
.sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    font-size: 14px;
}
.main-content {
    text-align: center;
    padding: 7px 10px;
    height: 100%;
    max-width: 1400px;
    margin: auto;
    position: relative;
}
.icon {
    font-size: 50px;
    margin: 20px;
}
.feature-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
.feature-button {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1rem;
    color: var(--text-color);
    background: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    text-align: left;
    --tw-shadow: 0 0 2px 0 rgba(0, 0, 0, .05), 0 4px 6px 0 rgba(0, 0, 0, .02);
    --tw-shadow-colored: 0 0 2px 0 var(--tw-shadow-color), 0 4px 6px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.send-button {
    background-color: #444;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
}
.prof-icn {
    padding: 12px 12px;
    background: #215d9b;
    display: inline-block;
    border-radius: 26px;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.header h4 {
    color: #b4b4b4;
}
.c-img img {
    border: 1px solid #b4b4b4;
    border-radius: 20px;
    padding: 6px;
    filter: contrast(0.2);
}
.c-img {
    margin-top: 6rem;
}
.cnt h3 {
    color: #ececec;
    margin: 7px 2px;
}
.author {
    color: #b4b4b4;
    font-size: 14px;
    margin: 4px 0px !important;
}
p.author {
    width: 100% !important;
    margin: auto !important;
    margin-bottom: 8px !important;
}
.cnt p {
    font-size: 14px;
    line-height: 1.5;
} 

.input-box {
    border: none;
    padding: 16px 48px;
    width: 100%;
    border-radius: 24px;
    outline: unset;
    box-sizing: border-box;
}
.input-box:hover {
    box-shadow: unset ;
    outline: unset ;
    
}


i.fa-solid.fa-arrow-up {
    color: var(--fa-arrow-up-color);
    background:  var(--fa-arrow-up-background); 
    padding: 8px 10px;
    border-radius: 30px;
}


input.input-box {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: var(--border-color);
}

input#FileInput {
    display: none;
}

.header {
    padding: 0 8px;
}

label.filelabel {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}
label.submit_wrap {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width:768px){

    
    .buttons {
        flex-wrap: wrap;
    }
}
.prnt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
/* p.botText {
    width: 100% !important;
    text-align: left;
} */
p.userText {
    text-align: right;
    /* width: 80%; */
}
p.botText {
    /* width: 60% !important; */
    text-align: left;
    display: inline-block;
}

/* pre {
    word-break: break-word;
    white-space: normal;      type: 'POST',

} */

#chatbox {
    max-width: 48rem;
    margin: 0 auto;
    padding-bottom: 120px;
    padding-left: 12px;
    padding-right: 12px;
}
.botText span {
    white-space: break-spaces;
}
p.userText span {
    /* background: #494949; */
    background: var(--userText-span);
    padding: 14px 24px;
    border-radius: 37px;
}

.message-block {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
}


pre {
    border-radius: 4px;
    text-align: left;
    white-space: normal;
    max-width: 100%;
}

code {
    border-radius: 4px;
    background-color: var(--code-bg);
    color: var(--code-text);
    border: 1px solid var(--code-border);
    display: block;
    padding: 24px;
    white-space: normal;
    overflow-x: auto;
}

pre {
   
    font-family: ui-sans-serif, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

p.botText {
    font-family: ui-sans-serif,system-ui,"Segoe UI",Helvetica,"Apple Color Emoji",Arial,sans-serif,"Segoe UI Emoji","Segoe UI Symbol";
    line-height: 1.8;
}
code {
    font-family: ui-sans-serif,system-ui,"Segoe UI",Helvetica,"Apple Color Emoji",Arial,sans-serif,"Segoe UI Emoji","Segoe UI Symbol";
}
button.button {
    font-family: ui-sans-serif,system-ui,"Segoe UI",Helvetica,"Apple Color Emoji",Arial,sans-serif,"Segoe UI Emoji","Segoe UI Symbol";
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: ui-sans-serif, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    /* background-color: #1e1e1e; */
    /* color: #fff; */
    margin: 0;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}



/* Toggle Switch Styling */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
  }
  
  .switch input:checked + .slider {
    background-color: #2196F3;
  }
  
  .switch input:checked + .slider:before {
    transform: translateX(26px);
  }












  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
}
.app-menu-items {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.chat-toggle {
    padding: 0;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
}
.head-textarea {
    max-width: 28rem;
    margin: 0 auto;
}


.highlight {
    background-color: var(--bg-highlight); /* Example: yellow background */
    /* font-weight: bold; */
}

body a {
    text-decoration: none;
}

p {
    font-size: 14px;
    line-height: 1.5;
}


.message-container {
    max-width: 48rem;
    margin: 0 auto;
    padding-top: 12px;
    padding-left:12px;
    padding-right:12px;
}
.input-group {
    position: relative;
}
.toggle-container p {
    line-height: 1.2;
}

@media (min-width:768px) {
    .feature-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

.userText img{
    width: 300px;
}