Spaces:
Sleeping
Sleeping
| @import url('https://fonts.googleapis.com/css2?family=Love+Ya+Like+A+Sister&display=swap'); | |
| /* Overall app background - Keep white as per previous request */ | |
| .gradio-container, body, .gradio-app { | |
| background-color: #FFFFFF ; | |
| } | |
| /* Base font and color for all elements */ | |
| * { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; /* Base brown color */ | |
| } | |
| /* Specific overrides for text and placeholders */ | |
| input, textarea, .gradio-dropdown .primary-wrap, #flashcard_block .gradio-radio label, | |
| .gradio-accordion .label, .gradio-file { | |
| color: #6c493b ; | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| } | |
| /* Style for the main authentication container */ | |
| #auth_container { | |
| background-color: white ; /* User explicitly requested white BG for this container */ | |
| box-shadow: 0 0 15px 5px rgba(108, 73, 59, 0.5) ; /* Shiny border effect */ | |
| border-radius: 20px; /* Keep rounded corners, adjusted to match user's provided example */ | |
| padding: 15px; /* Keep padding, adjusted to match user's provided example */ | |
| max-width: 600px; /* Limit width for better readability */ | |
| height: 425px; | |
| display: flex; /* Use flexbox for layout */ | |
| } | |
| #chatbot-cont { | |
| background-color: white ; /* User explicitly requested white BG for this container */ | |
| box-shadow: 0 0 15px 5px rgba(108, 73, 59, 0.5) ; /* Shiny border effect */ | |
| border-radius: 20px; /* Keep rounded corners, adjusted to match user's provided example */ | |
| padding: 15px; /* Keep padding, adjusted to match user's provided example */ | |
| display: flex; | |
| } | |
| #chatbot-cont #component-16 { | |
| /* Remove default padding applied by Gradio's 'padded' class */ | |
| padding: 0px ; | |
| /* Also remove any default margin */ | |
| margin: 0px ; | |
| /* Ensure it doesn't enforce a minimum height when empty */ | |
| min-height: unset ; | |
| height: auto ; /* Allow its height to collapse to its content */ | |
| } | |
| #chatbot-cont #component-16 .label-wrap { | |
| padding-top: 5px ; /* Adjust these values to your liking */ | |
| padding-bottom: 5px ; | |
| /* Or a single padding value: */ | |
| /* padding: 5px 15px !important; */ | |
| margin: 0 ; | |
| min-height: unset ; /* Again, ensure no fixed minimum height */ | |
| height: auto ; | |
| } | |
| #send_buttons { | |
| border-radius: 12px ; | |
| box-shadow: 0 0 15px 5px rgba(108, 73, 59, 0.5) ; /* Shiny border effect */ | |
| } | |
| /* Font and color for general labels and headings within auth section */ | |
| #auth_container h2, | |
| #auth_container label, | |
| #auth_container .gr-textbox label, | |
| #auth_container .gr-checkbox label { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| background-color: white ; /* Ensure no background color */ | |
| } | |
| #auth_top_spacer { | |
| /* Adjust height for desired space */ | |
| height: 0px ; /* Adjust this value as needed */ | |
| min-height: 0px ; /* Ensure minimum height */ | |
| padding: 0 ; | |
| margin: 0 ; | |
| background-color: transparent ; /* Ensure it's invisible */ | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| /* Style for textboxes (input fields) */ | |
| #auth_container .gr-textbox input { | |
| color: #6c493b ; /* Text color inside input */ | |
| background-color: white ; /* Background of the input field */ | |
| border: 1px solid #6c493b ; /* Plain border */ | |
| outline: none ; /* Remove blue focus outline */ | |
| box-shadow: none ; /* Remove any default shadow */ | |
| } | |
| /* Style for textboxes when focused (to prevent blue box) */ | |
| #auth_container .gr-textbox input:focus { | |
| border-color: #6c493b ; | |
| box-shadow: 0 0 0 2px rgba(108, 73, 59, 0.2) ; /* Soft focus effect, not blue */ | |
| } | |
| /* Style for the tab navigation bar itself */ | |
| #auth_container .gradio-tabs-nav { | |
| border-radius: 8px; /* Slightly rounded tabs nav */ | |
| margin-top: 15px ; /* Adds space above the tabs */ | |
| } | |
| /* Style for the content area of the tabs (inside Login/Signup tabs) */ | |
| #auth_container .gradio-tabs > div[data-tab] { | |
| background-color: white ; /* Keep content area white */ | |
| padding: 10px; /* Add some padding to the tab content */ | |
| } | |
| /* General styling for headers within tabs */ | |
| #auth_container .gradio-tabs h2 { | |
| color: #6c493b ; | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| } | |
| /* Ensure the `gr.Markdown` for status output also uses the correct font/color */ | |
| #auth_container .gradio-markdown { | |
| color: #6c493b ; | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| } | |
| /* Apply custom label cleanup only to login form */ | |
| #login-user label, | |
| #login-pass label { | |
| background-color: transparent ; | |
| color: #6c493b ; | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| font-size: 18px ; | |
| font-weight: bold ; | |
| padding: 0 ; | |
| margin: 0 0 4px 0 ; | |
| box-shadow: none ; | |
| } | |
| .custom-label, | |
| .custom-label h1, | |
| .custom-label h2, | |
| .custom-label h3, | |
| .custom-label h4, | |
| .custom-label h5, | |
| .custom-label h6 { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| font-size: 18px ; | |
| margin-bottom: 0px; | |
| margin-top: 0px; | |
| margin: 0px ; /* Remove all margins */ | |
| padding: 0px ; /* Remove all paddings */ | |
| line-height: 1 ; /* Compact line height */ | |
| } | |
| .custom-label h3 { | |
| margin-top: 0px ; /* Keep top margin at 0 for the h3 itself */ | |
| margin-bottom: 10px ; /* Add a small margin below the text (adjust as needed) */ | |
| line-height: 1 ; /* A slightly more natural line height than 1 */ | |
| } | |
| /* Ensure the row containing the buttons has no top margin */ | |
| /* Targets the Gradio markdown component itself, which might have default padding */ | |
| #creator_info_container .markdown-text { /* This class might be applied by Gradio 3.x to the markdown output */ | |
| margin: 0px ; | |
| padding: 0px ; | |
| } | |
| /* Ensure the column container has no internal spacing */ | |
| #creator_info_container { | |
| padding-top: 15px ; /* Add a small padding at the top of the column (adjust as needed) */ | |
| padding-bottom: 0px ; /* Keep bottom padding at 0 */ | |
| margin-top: 0px ; /* Keep top margin at 0 */ | |
| margin-bottom: 0px ; /* Keep bottom margin at 0 */ | |
| gap: 0px ; /* Ensure no gap between direct children of the column */ | |
| } | |
| /* Ensure the row containing the buttons has no external or internal spacing */ | |
| #creator_button_row { | |
| margin-top: px ; | |
| padding-top: 0px ; | |
| gap: 0px ; /* Ensure no gap between buttons within the row */ | |
| } | |
| /* Your existing button styles (ensure they don't add extra vertical padding) */ | |
| #btn_linkedin, | |
| #btn_github, | |
| #btn_mail { | |
| /* Keep your existing styles, but double-check padding-top/bottom if issues persist */ | |
| padding: 5px 0 ; /* You can try reducing padding here if 10px is too much */ | |
| } | |
| /* Optional: If there's still a tiny gap, you might need to directly target the elements Gradio puts inside the column/row */ | |
| /* This is more advanced and might require inspecting the rendered HTML */ | |
| /* For example, if Gradio wraps things in divs with default spacing: */ | |
| #creator_info_container > div { /* Targets direct div children of the column */ | |
| margin: 0px ; | |
| padding: 0px ; | |
| } | |
| #creator_button_row > div { /* Targets direct div children of the row (buttons) */ | |
| margin: 0px ; | |
| padding: 0px ; | |
| } | |
| .pastconvos-label { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| font-size: 10px ; | |
| margin-bottom: 0px; | |
| margin-top: 0px; | |
| } | |
| #submit_buttons { | |
| border-radius: 12px ; | |
| background-color: #b77a5a ; /* Deep brown */ | |
| color: white ; /* White text */ | |
| font-weight: bold ; | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| border: none ; | |
| } | |
| #submit_buttons:hover { | |
| background-color: #6c493b ; /* Slightly darker brown */ | |
| cursor: pointer; | |
| } | |
| /* Fully override tab button styling */ | |
| button[role="tab"] { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| font-size: 18px ; | |
| color: #6c493b ; | |
| background-color: white ; | |
| border: none ; | |
| font-weight: bold ; | |
| box-shadow: none ; | |
| padding: 10px 16px ; | |
| outline: none ; | |
| } | |
| /* Side-by-side layout for auth and about image */ | |
| #about-img { | |
| width: 95% ; | |
| height: auto ; | |
| box-shadow: 0 0 15px 5px rgba(108, 73, 59, 0.5) ; /* Shiny border effect */ | |
| border-radius: 20px; /* Keep rounded corners, adjusted to match user's provided example */ | |
| object-fit: contain; /* crop if needed */ | |
| } | |
| /* Optionally constrain the overall height of the auth + image section */ | |
| #auth_container { | |
| max-height: 600px; | |
| } | |
| /* CHAT UI SPECIFIC STYLES */ | |
| #chat_ui { | |
| padding: 20px ; | |
| background-color: #FFFFFF ; | |
| display: flex ; | |
| /* This column is already set to scale=3, managing its width */ | |
| } | |
| /* Chatbot container */ | |
| .gradio-chatbot { | |
| border: 2px solid #b77a5a ; /* Brown border for the chat container */ | |
| border-radius: 15px ; /* Rounded corners */ | |
| background-color: #fcf8f6 ; /* Light creamy background */ | |
| height: 500px ; /* Maintain the height */ | |
| overflow-y: auto ; /* Ensure scrollability */ | |
| } | |
| /* User message bubble */ | |
| .gradio-chatbot .message.user { | |
| background-color: #e6e6fa ; /* Light purple */ | |
| color: #4a4a4a ; | |
| border-radius: 15px 15px 0px 15px ; | |
| padding: 10px 15px ; | |
| max-width: 80% ; /* Limit width */ | |
| margin-left: auto ; /* Align to right */ | |
| align-self: flex-end ; /* For flex container */ | |
| } | |
| /* Bot message bubble */ | |
| .gradio-chatbot .message.bot { | |
| background-color: #ffe4e1 ; /* Misty rose/light pink */ | |
| color: #4a4a4a ; | |
| border-radius: 15px 15px 15px 0px ; | |
| padding: 10px 15px ; | |
| max-width: 80% ; /* Limit width */ | |
| margin-right: auto ; /* Align to left */ | |
| align-self: flex-start ; /* For flex container */ | |
| } | |
| /* Message text inside bubbles */ | |
| .gradio-chatbot .message p { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| font-size: 16px ; /* Adjust font size for readability */ | |
| line-height: 1.4 ; | |
| color: #4a4a4a ; /* Darker text for readability */ | |
| } | |
| /* Chatbot input textbox */ | |
| #chat_ui .gradio-textbox textarea { | |
| border: 1px solid #b77a5a ; | |
| border-radius: 10px ; | |
| background-color: white ; | |
| color: #6c493b ; | |
| padding: 10px 15px ; | |
| font-size: 16px ; | |
| box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1); /* Inner shadow for input */ | |
| } | |
| #chat_ui .gradio-textbox textarea:focus { | |
| border-color: #6c493b ; | |
| box-shadow: 0 0 0 2px rgba(108, 73, 59, 0.2) ; | |
| } | |
| /* Dropdown styling (for "Past Chats") */ | |
| .gradio-dropdown { | |
| border: 1px solid #b77a5a ; | |
| border-radius: 10px ; | |
| background-color: white ; | |
| color: #6c493b ; | |
| } | |
| .gradio-dropdown .primary-wrap { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| padding: 8px 12px ; | |
| } | |
| .gradio-dropdown.focus { | |
| border-color: #6c493b ; | |
| box-shadow: 0 0 0 2px rgba(108, 73, 59, 0.2) ; | |
| } | |
| /* Dropdown options list */ | |
| .gradio-dropdown-options { | |
| background-color: white ; | |
| border: 1px solid #b77a5a ; | |
| border-radius: 10px ; | |
| box-shadow: 0 4px 8px rgba(0,0,0,0.1); | |
| } | |
| .gradio-dropdown-option { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| padding: 8px 12px ; | |
| } | |
| .gradio-dropdown-option:hover { | |
| background-color: #fcf8f6 ; /* Light creamy on hover */ | |
| } | |
| .gradio-dropdown-option.selected { | |
| background-color: #ffe4e1 ; /* Misty rose/light pink for selected */ | |
| } | |
| /* Radio buttons (for Flashcard format) */ | |
| /* Radio buttons (for Flashcard format) */ | |
| #flashcard_block .gradio-radio { | |
| margin-top: 10px ; | |
| margin-bottom: 10px ; | |
| display: flex ; /* Make radio group itself a flex container */ | |
| flex-wrap: wrap ; /* Allow options to wrap */ | |
| gap: 10px ; /* Add space between radio buttons */ | |
| } | |
| /* Style for each radio button choice container (the button-like appearance) */ | |
| #flashcard_block .gradio-radio > label { | |
| display: flex ; /* To align the radio dot and text nicely */ | |
| align-items: center ; | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| font-size: 16px ; | |
| padding: 8px 12px ; /* Add some padding around the option */ | |
| border: 1px solid #b77a5a ; /* Add a border to the option */ | |
| border-radius: 10px ; /* Rounded corners for the option */ | |
| background-color: white ; /* Ensure the background is white by default */ | |
| cursor: pointer; | |
| transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; /* Smooth transition */ | |
| } | |
| /* When a radio button option is hovered */ | |
| #flashcard_block .gradio-radio > label:hover { | |
| background-color: #fcf8f6 ; /* Light creamy on hover, matching dropdown */ | |
| } | |
| /* *** THIS IS THE CRUCIAL PART TO TARGET THE SELECTED RADIO BUTTON'S BACKGROUND *** */ | |
| /* Target the label when it has the 'selected' class */ | |
| #flashcard_block .gradio-radio > label.selected { | |
| background-color: #ffe4e1 ; /* Misty rose/light pink for selected, matching dropdown selected */ | |
| border-color: #b77a5a ; /* Stronger border for selected state */ | |
| color: #b77a5a ; /* Change text color for selected label */ | |
| /* Ensure no blue shadow or outline */ | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| /* Style for the actual radio input (the circle/dot) */ | |
| #flashcard_block .gradio-radio input[type="radio"] { | |
| /* Remove default appearance that might cause blue background */ | |
| -webkit-appearance: none ; | |
| -moz-appearance: none ; | |
| appearance: none ; | |
| /* Custom styling for the radio dot itself */ | |
| width: 18px ; /* Adjust size of the radio dot */ | |
| height: 18px ; /* Adjust size of the radio dot */ | |
| margin-right: 8px ; /* Space between the dot and text */ | |
| border: 2px solid #b77a5a ; /* Border for the radio circle */ | |
| border-radius: 50% ; /* Make it a circle */ | |
| background-color: transparent ; /* Ensure no background on the input itself */ | |
| position: relative ; | |
| outline: none ; /* Remove focus outline */ | |
| cursor: pointer; | |
| box-shadow: none ; /* Remove any lingering blue shadow */ | |
| accent-color: transparent ; /* Try to neutralize accent-color effect on background */ | |
| } | |
| /* Style for the inner dot of the radio button when checked */ | |
| #flashcard_block .gradio-radio input[type="radio"]:checked { | |
| border-color: #b77a5a ; /* Keep border color consistent */ | |
| background-color: transparent ; /* Ensure no background on the input itself */ | |
| outline: none ; /* Double-check no outline */ | |
| box-shadow: none ; /* Double-check no shadow */ | |
| } | |
| #flashcard_block .gradio-radio input[type="radio"]:checked::before { | |
| content: '' ; | |
| display: block ; | |
| width: 10px ; /* Size of the inner dot */ | |
| height: 10px ; /* Size of the inner dot */ | |
| background-color: #b77a5a ; /* Color of the inner dot */ | |
| border-radius: 50% ; | |
| position: absolute ; | |
| top: 50% ; | |
| left: 50% ; | |
| transform: translate(-50%, -50%) ; | |
| } | |
| /* Style for the text part of the radio button (the span next to input) */ | |
| #flashcard_block .gradio-radio input[type="radio"] + span { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; /* Default text color */ | |
| font-size: 16px ; | |
| background-color: transparent ; /* Ensure span background is always transparent */ | |
| } | |
| /* Style for the text part when its associated radio button is checked */ | |
| #flashcard_block .gradio-radio input[type="radio"]:checked + span { | |
| color: #b77a5a ; /* Color of the selected radio button text */ | |
| font-weight: bold ; | |
| } | |
| /* Checkbox (Remember Me) */ | |
| .gradio-checkbox label { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| font-size: 16px ; | |
| padding-left: 5px ; | |
| } | |
| .gradio-checkbox input[type="checkbox"] { | |
| accent-color: #b77a5a ; /* Color of the checkbox */ | |
| } | |
| /* Accordion for Export Tools */ | |
| .gradio-accordion > button { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| font-size: 18px ; | |
| background-color: #f5f5dc ; /* Beige background for the accordion header */ | |
| border-radius: 8px ; | |
| border: 1px solid #b77a5a ; | |
| padding: 10px 15px ; | |
| font-weight: bold ; | |
| } | |
| .gradio-accordion .label:hover { | |
| background-color: #eee8d5 ; | |
| } | |
| .gradio-accordion .gr-block { | |
| border: 1px solid #b77a5a ; | |
| border-top: none ; | |
| border-radius: 0 0 8px 8px ; | |
| background-color: white ; | |
| padding: 15px ; | |
| } | |
| /* File download component */ | |
| .gradio-file { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| border: 1px solid #b77a5a ; | |
| border-radius: 10px ; | |
| background-color: #fcf8f6 ; | |
| padding: 10px; | |
| margin-top: 10px; | |
| } | |
| .gradio-file a { | |
| color: #b77a5a ; | |
| text-decoration: none ; | |
| } | |
| .gradio-file a:hover { | |
| text-decoration: underline ; | |
| } | |
| /* Hide the file download button itself, just show the link */ | |
| .gradio-file .file-preview button { | |
| display: none ; | |
| } | |
| /* Info and Warning messages (gr.Info, gr.Warning, gr.Markdown) */ | |
| .gradio-mark-up { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| font-size: 16px ; | |
| line-height: 1.4 ; | |
| padding: 10px 15px ; | |
| border-radius: 8px ; | |
| margin-top: 10px ; | |
| margin-bottom: 10px ; | |
| } | |
| .gradio-mark-up.info { | |
| background-color: #d4edda ; /* Light green for info */ | |
| border-color: #c3e6cb ; | |
| color: #155724 ; /* Dark green text */ | |
| } | |
| .gradio-mark-up.warning { | |
| background-color: #fff3cd ; /* Light yellow for warning */ | |
| border-color: #ffeeba ; | |
| color: #856404 ; /* Dark yellow text */ | |
| } | |
| /* Ensure the text within these is also the correct font/color */ | |
| .gradio-mark-up p { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: inherit ; /* Inherit color from parent .gradio-mark-up */ | |
| } | |
| /* The horizontal rule (---) */ | |
| hr { | |
| border-top: 1px dashed #b77a5a ; | |
| background-color: transparent ; | |
| margin: 20px 0 ; | |
| } | |
| /* The main logo image */ | |
| #logo-img { | |
| margin-bottom: 20px; /* Add some space below the logo */ | |
| display: block; /* Ensure it behaves as a block element for margin */ | |
| margin-left: auto; | |
| margin-right: auto; | |
| } | |
| label.selected.svelte-1bx8sav { | |
| background: #ffe4e1 ; /* Your desired pink background */ | |
| color: #b77a5a ; | |
| border-color: #b77a5a ; | |
| box-shadow: none ; | |
| accent-color: initial ; /* <-- removes the blue! */ | |
| } | |
| /* Creator container */ | |
| #creator_info_container { | |
| background-color: white ; | |
| box-shadow: 0 0 15px 5px rgba(108, 73, 59, 0.5) ; | |
| border-radius: 20px; | |
| padding: 15px; | |
| margin-top: 20px; | |
| max-width: 600px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| /* Title */ | |
| #creator_info_container h3 { | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| color: #6c493b ; | |
| margin-bottom: 15px; | |
| } | |
| /* Force row to behave correctly */ | |
| #creator_button_row { | |
| display: flex ; | |
| justify-content: center ; | |
| gap: 10px ; | |
| width: 100% ; | |
| flex-wrap: nowrap ; | |
| } | |
| /* Force buttons to shrink and align */ | |
| #btn_linkedin, | |
| #btn_github, | |
| #btn_mail { | |
| flex: 1 1 0 ; | |
| min-width: 0 ; | |
| max-width: 100% ; | |
| white-space: nowrap ; | |
| text-align: center ; | |
| border-radius: 12px ; | |
| background-color: #b77a5a ; | |
| color: white ; | |
| font-weight: bold ; | |
| font-family: 'Love Ya Like A Sister', cursive ; | |
| border: none ; | |
| padding: 10px 0 ; | |
| } | |
| /* Hover effect */ | |
| #btn_linkedin:hover, | |
| #btn_github:hover, | |
| #btn_mail:hover { | |
| background-color: #6c493b ; | |
| cursor: pointer; | |
| } | |
| /* Style for warning messages */ | |
| .warning-message { | |
| color: #D9534F ; /* Example color: a shade of red */ | |
| font-size: 0.9em ; | |
| text-align: center ; | |
| /* Add any other styles you want for your warning messages */ | |
| font-family: 'Love Ya Like A Sister', cursive ; /* Consistent font */ | |
| font-weight: bold ; /* Make the text bold */ | |
| } | |