career_agent / style.css
arcshukla's picture
Upload folder using huggingface_hub
868eda8 verified
Raw
History Blame Contribute Delete
3.71 kB
/* ======================
GLOBAL
====================== */
body, .gradio-container {
font-family: "Inter","Segoe UI",Roboto,Arial,sans-serif;
font-size: 16px;
background: #f8fafc;
color: #0f172a;
}
.gradio-container {
max-width: 1250px;
margin: auto;
}
/* ======================
STICKY HEADER FIX
====================== */
#header-bar {
position: sticky;
top: 0;
z-index: 1000;
background: white;
padding: 12px;
border-bottom: 1px solid #e2e8f0;
}
/* ======================
CHAT CONTAINER
====================== */
#chatbot {
border: 2px solid #4f46e5;
border-radius: 12px;
padding-top: 10px;
padding: 15px;
background: #f8fafc;
scroll-behavior: smooth;
overflow-y: auto !important;
height: 480px;
}
/* ======================
MESSAGE STRUCTURE FIX
====================== */
/* make message row full width */
#chatbot .message-row {
width: 100% !important;
}
/* message container */
#chatbot .wrap {
width: 100% !important;
max-width: 100% !important;
display: flex;
}
/* assistant alignment */
#chatbot .message.assistant {
background: lightblue; /* #f1f5f9;*/
border: 2px solid #4f46e5;
color: #1e293b;
max-width: 90% !important;
width: 100% !important;
}
/* user alignment */
#chatbot .message.user {
background: #4f46e5;
margin-left: auto;
max-width: 90% !important;
width: 100% !important;
}
/* actual bubble */
#chatbot .message {
width: 100% !important;
max-width: 100% !important;
padding: 12px 16px;
border-radius: 14px;
font-size: 14px;
line-height: 1.6;
word-break: break-word;
}
/* ======================
ASSISTANT
====================== */
/*
#chatbot .message.assistant {
background: lightblue;
border: 2px solid #4f46e5;
color: #1e293b;
max-width: 90% !important;
width: 100% !important;
}
*/
#chatbot .message.assistant {
background: lightblue; /* #f1f5f9;*/
border: 2px solid #4f46e5;
max-width: 95% !important;
width: fit-content;
margin-right: auto;
color: #1e293b;
}
/* ensure text visible */
#chatbot .message.user,
#chatbot .message.user * {
color: white !important;
}
/* ======================
REMOVE EXTRA TEXT WRAP
====================== */
#chatbot p {
margin: 0;
white-space: normal;
}
/* ======================
INPUT
====================== */
/* ======================
QUESTION INPUT CONTAINER
====================== */
#question-box {
border: 1px solid #4f46e5 !important;
border-radius: 12px;
padding: 10px 14px;
background: white;
}
#question-box textarea {
border: 1px solid gray !important;
outline: none !important;
box-shadow: none !important;
resize: none;
overflow-y: auto !important;
min-height: 28px;
line-height: 1.5;
font-size: 14px;
width: 100%;
}
#question-box [data-testid="block-info"] {
font-weight: 700;
color: #1e293b;
margin-bottom: 6px;
}
#question-box:focus-within {
border-color: #4338ca !important;
box-shadow: 0 0 0 2px rgba(79,70,229,0.15);
}
/* ======================
FOLLOWUP BUTTONS
====================== */
#followups {
margin-top: 10px;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
#followups button {
border-radius: 18px !important;
border: 1px solid #4f46e5 !important;
background: white !important;
color: #4f46e5 !important;
padding: 6px 12px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
}
#followups button:hover {
background: #4f46e5 !important;
color: white !important;
transform: translateY(-2px);
}