MTOR-Testing / static /style.css
TANMIHA's picture
Update static/style.css
f2c86a2 verified
Raw History Blame Contribute Delete
15.1 kB
/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');
/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
--glass-bg: rgba(255, 255, 255, 0.05);
--glass-border-light: rgba(255, 255, 255, 0.3);
--glass-border-dark: rgba(255, 255, 255, 0.05);
--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
--inner-glare: inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 1px 0 1px rgba(255, 255, 255, 0.05);
--blur: blur(16px) saturate(120%);
--accent-1: #38bdf8;
--accent-2: #818cf8;
--accent-3: #34d399;
--text-primary: #f0f9ff;
--text-secondary: rgba(240, 249, 255, 0.75);
--text-muted: rgba(240, 249, 255, 0.45);
--radius: 24px;
--radius-sm: 14px;
}
/* ─── Global Reset & Background ─────────────────────────────────────────────── */
html, body, [data-testid="stAppViewContainer"], [data-testid="stApp"] {
background: transparent !important;
}
[data-testid="stAppViewContainer"]::before {
content: "";
position: fixed;
inset: 0;
z-index: -2;
background:
radial-gradient(ellipse at 15% 20%, rgba(56, 189, 248, 0.30) 0%, transparent 55%),
radial-gradient(ellipse at 85% 10%, rgba(129, 140, 248, 0.28) 0%, transparent 50%),
radial-gradient(ellipse at 50% 80%, rgba(52, 211, 153, 0.20) 0%, transparent 55%),
linear-gradient(135deg, #0c1445 0%, #0f172a 40%, #0d1b35 70%, #0a1628 100%);
}
/* Floating orb decorations */
[data-testid="stAppViewContainer"]::after {
content: "";
position: fixed;
inset: 0;
z-index: -1;
background:
radial-gradient(circle 220px at 10% 60%, rgba(56, 189, 248, 0.12) 0%, transparent 70%),
radial-gradient(circle 180px at 90% 75%, rgba(129, 140, 248, 0.14) 0%, transparent 70%);
pointer-events: none;
}
body {
font-family: 'DM Sans', sans-serif;
color: var(--text-primary);
}
/* ─── Streamlit App Shell ────────────────────────────────────────────────────── */
[data-testid="stMain"] {
background: transparent !important;
}
[data-testid="block-container"] {
padding-top: 2rem !important;
padding-bottom: 3rem !important;
}
/* ─── Title Container ────────────────────────────────────────────────────────── */
.title-container {
background: var(--glass-bg);
backdrop-filter: var(--blur);
-webkit-backdrop-filter: var(--blur);
border-top: 1px solid var(--glass-border-light);
border-left: 1px solid var(--glass-border-light);
border-bottom: 1px solid var(--glass-border-dark);
border-right: 1px solid var(--glass-border-dark);
border-radius: var(--radius);
padding: 1.4rem 2rem;
text-align: center;
box-shadow: var(--glass-shadow), var(--inner-glare);
margin-bottom: 1.2rem;
position: relative;
overflow: hidden;
}
.title-container::before {
content: "";
position: absolute;
top: -60%;
left: -20%;
width: 140%;
height: 200%;
background: conic-gradient(from 180deg at 50% 50%,
rgba(56,189,248,0.08) 0deg,
rgba(129,140,248,0.08) 120deg,
rgba(52,211,153,0.06) 240deg,
rgba(56,189,248,0.08) 360deg);
animation: rotateOrb 14s linear infinite;
pointer-events: none;
border-radius: 50%;
}
@keyframes rotateOrb {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.title-container h1 {
font-family: 'Syne', sans-serif;
font-size: 2.4rem;
font-weight: 800;
margin: 0;
background: linear-gradient(135deg, #e0f2fe 0%, var(--accent-1) 45%, var(--accent-2) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.5px;
position: relative;
}
/* ─── Subtitle & Description ─────────────────────────────────────────────────── */
.subtitle {
text-align: center;
font-family: 'Syne', sans-serif;
font-size: 1.15rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 0.4rem;
letter-spacing: 0.3px;
}
.description {
text-align: center;
font-size: 0.95rem;
font-weight: 300;
font-style: italic;
color: var(--text-muted);
margin-bottom: 2rem;
}
/* ─── Input Label ────────────────────────────────────────────────────────────── */
.input-label {
font-family: 'Syne', sans-serif;
font-size: 1.05rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 0.5rem;
display: flex;
align-items: center;
gap: 0.4rem;
letter-spacing: 0.2px;
}
/* ─── Text Area (Colorful & High Visibility) ────────────────────────────────── */
textarea,
[data-testid="stTextArea"] textarea {
/* Colorful tinted glass background instead of dark gray */
background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(129, 140, 248, 0.12) 100%) !important;
backdrop-filter: var(--blur) !important;
-webkit-backdrop-filter: var(--blur) !important;
color: #000000 !important; /* Crisp white text for user input */
font-family: 'DM Sans', sans-serif !important;
font-size: 1.05rem !important;
border-radius: var(--radius-sm) !important;
padding: 1.2rem !important;
/* Subtle colorful borders */
border: 1px solid rgba(129, 140, 248, 0.3) !important;
border-top: 1px solid rgba(56, 189, 248, 0.5) !important;
box-shadow: inset 0 4px 12px rgba(0,0,0,0.15), 0 4px 15px rgba(56, 189, 248, 0.05) !important;
transition: all 0.3s ease !important;
resize: vertical !important;
}
/* When the user clicks into the text box */
textarea:focus,
[data-testid="stTextArea"] textarea:focus {
/* Brighter colorful background on focus */
background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(129, 140, 248, 0.18) 100%) !important;
border: 1px solid var(--accent-1) !important;
/* Neon glow effect */
box-shadow: inset 0 2px 8px rgba(0,0,0,0.1), 0 0 20px rgba(56, 189, 248, 0.35) !important;
outline: none !important;
}
/* Brighter, more visible Hint Text (Placeholder) */
textarea::placeholder,
[data-testid="stTextArea"] textarea::placeholder {
color: #3b4b52 !important; /* Light sky blue */
font-weight: 400 !important;
font-style: italic;
opacity: 1 !important; /* Overrides default browser dimming */
}
/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.stButton > button {
font-family: 'Syne', sans-serif !important;
font-weight: 600 !important;
font-size: 0.95rem !important;
letter-spacing: 0.4px !important;
padding: 0.65rem 1.6rem !important;
border-radius: var(--radius-sm) !important;
border: 1px solid rgba(56,189,248,0.35) !important;
background: linear-gradient(135deg,
rgba(56,189,248,0.22) 0%,
rgba(129,140,248,0.18) 100%) !important;
backdrop-filter: blur(14px) !important;
-webkit-backdrop-filter: blur(14px) !important;
color: var(--text-primary) !important;
box-shadow: 0 4px 16px rgba(56,189,248,0.15), inset 0 1px 0 rgba(255,255,255,0.10) !important;
transition: all 0.25s ease !important;
cursor: pointer !important;
}
.stButton > button:hover {
background: linear-gradient(135deg,
rgba(56,189,248,0.38) 0%,
rgba(129,140,248,0.30) 100%) !important;
border-color: rgba(56,189,248,0.60) !important;
box-shadow: 0 6px 24px rgba(56,189,248,0.28), inset 0 1px 0 rgba(255,255,255,0.18) !important;
transform: translateY(-2px) !important;
color: #fff !important;
}
.stButton > button:active {
transform: translateY(0px) !important;
box-shadow: 0 2px 8px rgba(56,189,248,0.18) !important;
}
.stButton > button:disabled {
background: rgba(255,255,255,0.05) !important;
border-color: rgba(255,255,255,0.08) !important;
color: var(--text-muted) !important;
cursor: not-allowed !important;
transform: none !important;
box-shadow: none !important;
}
/* ─── Streamlit Alert / Info / Success / Warning Boxes ──────────────────────── */
[data-testid="stAlert"],
.stAlert,
div[data-baseweb="notification"] {
background: var(--glass-bg) !important;
backdrop-filter: var(--blur) !important;
-webkit-backdrop-filter: var(--blur) !important;
border-top: 1px solid var(--glass-border-light) !important;
border-left: 1px solid var(--glass-border-light) !important;
border-bottom: 1px solid var(--glass-border-dark) !important;
border-right: 1px solid var(--glass-border-dark) !important;
border-radius: var(--radius-sm) !important;
color: var(--text-primary) !important;
box-shadow: var(--glass-shadow), var(--inner-glare) !important;
}
/* Success */
[data-testid="stAlert"][data-type="success"],
div[data-baseweb="notification"][kind="positive"] {
border-color: rgba(52, 211, 153, 0.40) !important;
background: rgba(52, 211, 153, 0.08) !important;
}
/* Warning */
[data-testid="stAlert"][data-type="warning"],
div[data-baseweb="notification"][kind="warning"] {
border-color: rgba(251, 191, 36, 0.40) !important;
background: rgba(251, 191, 36, 0.08) !important;
}
/* Info */
[data-testid="stAlert"][data-type="info"],
div[data-baseweb="notification"][kind="info"] {
border-color: rgba(56, 189, 248, 0.35) !important;
background: rgba(56, 189, 248, 0.08) !important;
}
/* ─── Spinner ────────────────────────────────────────────────────────────────── */
[data-testid="stSpinner"] {
color: var(--accent-1) !important;
}
/* ─── Headings inside Streamlit ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
font-family: 'Syne', sans-serif !important;
color: var(--text-primary) !important;
}
h3 {
font-size: 1.15rem !important;
font-weight: 600 !important;
color: var(--text-secondary) !important;
}
/* ─── Markdown text ──────────────────────────────────────────────────────────── */
[data-testid="stMarkdownContainer"] p,
[data-testid="stMarkdownContainer"] li,
[data-testid="stMarkdownContainer"] span {
color: var(--text-secondary) !important;
font-family: 'DM Sans', sans-serif !important;
}
[data-testid="stMarkdownContainer"] strong {
color: var(--text-primary) !important;
}
[data-testid="stMarkdownContainer"] code {
background: rgba(56,189,248,0.14) !important;
color: var(--accent-1) !important;
border-radius: 6px !important;
padding: 0.15rem 0.45rem !important;
font-size: 0.92em !important;
border: 1px solid rgba(56,189,248,0.25) !important;
}
/* ─── Hide unused Streamlit elements ─────────────────────────────────────────── */
[data-testid="stTextInput"] {
display: none !important;
}
[data-testid="stDecoration"],
[data-testid="stHeader"] {
display: none !important;
}
/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: rgba(255,255,255,0.04);
}
::-webkit-scrollbar-thumb {
background: rgba(56,189,248,0.30);
border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(56,189,248,0.55);
}
/* ─── Feedback Section ───────────────────────────────────────────────────────── */
.feedback-section {
margin-top: 2rem;
padding: 1.4rem 1.6rem;
background: var(--glass-bg);
backdrop-filter: var(--blur);
-webkit-backdrop-filter: var(--blur);
border-top: 1px solid var(--glass-border-light);
border-left: 1px solid var(--glass-border-light);
border-bottom: 1px solid var(--glass-border-dark);
border-right: 1px solid var(--glass-border-dark);
border-radius: var(--radius);
box-shadow: var(--glass-shadow), var(--inner-glare);
}
/* ─── Ticket ID ──────────────────────────────────────────────────────────────── */
.ticket-id {
font-family: 'Syne', sans-serif;
font-size: 1.1rem;
font-weight: 700;
color: var(--accent-1);
margin-top: 1rem;
letter-spacing: 0.5px;
}
/* ─── Columns ────────────────────────────────────────────────────────────────── */
[data-testid="stHorizontalBlock"] {
gap: 1rem;
}
/* ─── Staggered fade-in on load ──────────────────────────────────────────────── */
[data-testid="stVerticalBlock"] > div {
animation: fadeUp 0.5s ease both;
}
[data-testid="stVerticalBlock"] > div:nth-child(1) { animation-delay: 0.05s; }
[data-testid="stVerticalBlock"] > div:nth-child(2) { animation-delay: 0.12s; }
[data-testid="stVerticalBlock"] > div:nth-child(3) { animation-delay: 0.19s; }
[data-testid="stVerticalBlock"] > div:nth-child(4) { animation-delay: 0.26s; }
[data-testid="stVerticalBlock"] > div:nth-child(5) { animation-delay: 0.33s; }
@keyframes fadeUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}