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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Import Oswald font - Google Fonts */
|
| 2 |
+
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
|
| 3 |
+
|
| 4 |
+
/* HIDE the HTML components that create scrollbars */
|
| 5 |
+
#component-1, #component-2, #component-3 {
|
| 6 |
+
display: none !important;
|
| 7 |
+
height: 0 !important;
|
| 8 |
+
min-height: 0 !important;
|
| 9 |
+
padding: 0 !important;
|
| 10 |
+
margin: 0 !important;
|
| 11 |
+
visibility: hidden !important;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
/* Apply Oswald globally */
|
| 17 |
+
*, *::before, *::after {
|
| 18 |
+
font-family: "Oswald", sans-serif !important;
|
| 19 |
+
color: #120f0e !important;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.title-header {
|
| 23 |
+
background-color: rgb(240, 236, 230) !important;
|
| 24 |
+
padding: 10px 20px;
|
| 25 |
+
margin: 0 !important;
|
| 26 |
+
border-bottom: 1pt solid #59524f;
|
| 27 |
+
text-align: left;
|
| 28 |
+
flex-shrink: 0 !important;
|
| 29 |
+
height: 60px !important;
|
| 30 |
+
display: flex !important;
|
| 31 |
+
align-items: center !important;
|
| 32 |
+
width: 100% !important;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.title-header h1 {
|
| 36 |
+
font-size: 1.5rem;
|
| 37 |
+
font-weight: 600 !important;
|
| 38 |
+
color: #120f0e !important;
|
| 39 |
+
margin: 0;
|
| 40 |
+
padding: 0;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
/* Input controls styling - acts as footer */
|
| 44 |
+
.input-controls {
|
| 45 |
+
padding: 15px 20px !important;
|
| 46 |
+
background-color: rgb(240, 236, 230) !important;
|
| 47 |
+
border-top: 1pt solid #59524f;
|
| 48 |
+
flex-shrink: 0 !important;
|
| 49 |
+
width: 100% !important;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/* Main container styling - viewport height with no top margin */
|
| 53 |
+
.gradio-container-5-42-0 {
|
| 54 |
+
background-color: rgb(240, 236, 230) !important;
|
| 55 |
+
font-family: "Oswald", sans-serif !important;
|
| 56 |
+
color: #120f0e !important;
|
| 57 |
+
padding: 0 !important;
|
| 58 |
+
margin: 0 !important;
|
| 59 |
+
height: 100vh !important;
|
| 60 |
+
max-height: 100vh !important;
|
| 61 |
+
overflow: hidden !important;
|
| 62 |
+
display: flex !important;
|
| 63 |
+
flex-direction: column !important;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
/* Target Gradio's internal structure */
|
| 67 |
+
.gradio-container-5-42-0 > div {
|
| 68 |
+
height: 95% !important;
|
| 69 |
+
display: flex !important;
|
| 70 |
+
flex-direction: column !important;
|
| 71 |
+
padding-top: 0 !important;
|
| 72 |
+
margin-top: 0 !important;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/* Chat styling - FLEX to fill space */
|
| 76 |
+
.gradio-container-5-42-0 .gradio-chatbot {
|
| 77 |
+
background-color: #d9d1ce !important;
|
| 78 |
+
border: 1pt solid #59524f !important;
|
| 79 |
+
border-radius: 6px !important;
|
| 80 |
+
padding: 15px !important;
|
| 81 |
+
flex: 1 !important; /* Fill all remaining space */
|
| 82 |
+
min-height: 0 !important; /* Prevent overflow issues */
|
| 83 |
+
overflow-y: auto !important;
|
| 84 |
+
margin: 15px 20px !important;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* Message styling */
|
| 88 |
+
.gradio-container-5-42-0 .gradio-chatbot .message.bot .markdown {
|
| 89 |
+
background-color: #f09c7d !important;
|
| 90 |
+
color: #120f0e !important;
|
| 91 |
+
border-radius: 8px !important;
|
| 92 |
+
padding: 12px 16px !important;
|
| 93 |
+
border: 1pt solid #59524f !important;
|
| 94 |
+
max-width: 70%;
|
| 95 |
+
margin-left: 0;
|
| 96 |
+
margin-right: auto;
|
| 97 |
+
word-wrap: break-word;
|
| 98 |
+
font-weight: 400 !important;
|
| 99 |
+
margin-bottom: 10px !important;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.gradio-container-5-42-0 .gradio-chatbot .message.user .markdown {
|
| 103 |
+
background-color: #a69189 !important;
|
| 104 |
+
color: #120f0e !important;
|
| 105 |
+
border-radius: 8px !important;
|
| 106 |
+
padding: 12px 16px !important;
|
| 107 |
+
border: 1pt solid #59524f !important;
|
| 108 |
+
max-width: 70%;
|
| 109 |
+
margin-left: auto;
|
| 110 |
+
margin-right: 0;
|
| 111 |
+
word-wrap: break-word;
|
| 112 |
+
font-weight: 400 !important;
|
| 113 |
+
margin-bottom: 10px !important;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
/* Input controls styling */
|
| 117 |
+
.input-controls {
|
| 118 |
+
padding: 15px 20px !important;
|
| 119 |
+
background-color: rgb(240, 236, 230) !important;
|
| 120 |
+
border-top: 1pt solid #59524f;
|
| 121 |
+
flex-shrink: 0 !important;
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
.input-textbox textarea {
|
| 125 |
+
background-color: #f0ece6 !important;
|
| 126 |
+
border: 1pt solid #59524f !important;
|
| 127 |
+
border-radius: 6px !important;
|
| 128 |
+
color: #120f0e !important;
|
| 129 |
+
font-family: "Oswald", sans-serif !important;
|
| 130 |
+
padding: 10px !important;
|
| 131 |
+
resize: none !important;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
.input-textbox textarea:focus {
|
| 135 |
+
border-color: #f09c7d !important;
|
| 136 |
+
box-shadow: 0 0 0 2px rgba(240, 156, 125, 0.2) !important;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.button-column {
|
| 140 |
+
margin-left: 10px !important;
|
| 141 |
+
min-width: 80px !important;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
.send-button, .clear-button {
|
| 145 |
+
border: 1pt solid #59524f !important;
|
| 146 |
+
border-radius: 6px !important;
|
| 147 |
+
font-weight: 500 !important;
|
| 148 |
+
padding: 8px 16px !important;
|
| 149 |
+
margin-bottom: 5px !important;
|
| 150 |
+
width: 100% !important;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
.send-button {
|
| 154 |
+
background-color: #f09c7d !important;
|
| 155 |
+
color: #120f0e !important;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
.send-button:hover {
|
| 159 |
+
background-color: #e8895a !important;
|
| 160 |
+
border-color: #4a3f3c !important;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
.clear-button {
|
| 164 |
+
background-color: #a69189 !important;
|
| 165 |
+
color: #120f0e !important;
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
.clear-button:hover {
|
| 169 |
+
background-color: #8f7d73 !important;
|
| 170 |
+
border-color: #4a3f3c !important;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
/* Ensure Gradio footer is visible and properly positioned */
|
| 174 |
+
footer.svelte-czcr5b {
|
| 175 |
+
display: flex !important;
|
| 176 |
+
visibility: visible !important;
|
| 177 |
+
position: fixed !important;
|
| 178 |
+
bottom: 0 !important;
|
| 179 |
+
left: 0 !important;
|
| 180 |
+
right: 0 !important;
|
| 181 |
+
background-color: rgba(240, 236, 230, 0.95) !important;
|
| 182 |
+
backdrop-filter: blur(5px) !important;
|
| 183 |
+
border-top: 1pt solid #59524f !important;
|
| 184 |
+
padding: 8px 16px !important;
|
| 185 |
+
z-index: 1000 !important;
|
| 186 |
+
height: auto !important;
|
| 187 |
+
min-height: 40px !important;
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
/* Style the footer buttons to match your theme */
|
| 191 |
+
footer.svelte-czcr5b button {
|
| 192 |
+
background-color: transparent !important;
|
| 193 |
+
color: #120f0e !important;
|
| 194 |
+
border: none !important;
|
| 195 |
+
font-family: "Oswald", sans-serif !important;
|
| 196 |
+
font-size: 12px !important;
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
footer.svelte-czcr5b .divider {
|
| 200 |
+
color: #59524f !important;
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
/* Adjust main container to account for footer */
|
| 204 |
+
.main-container {
|
| 205 |
+
padding-bottom: 50px !important;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
/* Responsive design */
|
| 209 |
+
@media (max-width: 768px) {
|
| 210 |
+
.gradio-container-5-42-0 .gradio-chatbot .message.bot .markdown,
|
| 211 |
+
.gradio-container-5-42-0 .gradio-chatbot .message.user .markdown {
|
| 212 |
+
max-width: 85%;
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
.input-controls {
|
| 216 |
+
padding: 10px !important;
|
| 217 |
+
}
|
| 218 |
+
}
|