Pereramaj's picture
Update styles.css
28be014 verified
/* GLOBAL DARK GOLD THEME */
:root {
--bg: #050505;
--card: #0b0b0c;
--gold: linear-gradient(135deg, #d4af37, #ffcc70, #b8860b);
--gold-solid: #d4af37;
--copper: #b87333;
--text: #f5f5f5;
--muted: #a1a1aa;
--radius: 14px;
}
/* Background */
.stApp {
background: radial-gradient(circle at top, #0a0a0a, #000000);
color: var(--text);
}
/* Container */
.block-container {
max-width: 1400px;
padding-top: 1.5rem;
}
/* HEADER */
.header-banner {
padding: 18px 25px;
border-radius: 14px;
background: linear-gradient(90deg, #111111 0%, #1c1c1c 60%, rgba(212,175,55,0.25) 100%);
margin-bottom: 15px;
border: none !important;
box-shadow: none !important;
}
.header-title {
font-size: 34px;
font-weight: 800;
color: #d4af37;
letter-spacing: 0.3px;
}
.header-sub {
font-size: 14px;
color: #cfcfcf;
margin-top: 6px;
}
/* CARDS */
.card {
background: var(--card);
padding: 20px;
border-radius: var(--radius);
box-shadow: 0 10px 30px rgba(0,0,0,0.8);
border: 1px solid rgba(212,175,55,0.15);
transition: 0.3s;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 50px rgba(212,175,55,0.2);
}
/* GOLD TEXT */
.gold-text {
color: var(--gold-solid);
font-weight: 600;
}
/* BUTTON */
/* File Uploader Button */
[data-testid="stFileUploader"] section {
border: 2px dashed rgba(212,175,55,0.5) !important;
background: radial-gradient(circle, rgba(212,175,55,0.08), transparent) !important;
border-radius: 12px;
}
/* Upload button inside */
[data-testid="stFileUploader"] button {
background: linear-gradient(135deg, #d4af37, #ffcc70) !important;
color: black !important;
border-radius: 10px !important;
font-weight: bold;
}
button[kind="primary"],
button[kind="secondary"],
.stDownloadButton > button {
background: linear-gradient(135deg, #d4af37, #ffcc70, #b8860b) !important;
color: black !important;
border: none !important;
font-weight: 700 !important;
border-radius: 12px !important;
padding: 8px 16px !important;
transition: all 0.3s ease-in-out !important;
}
/* Hover effect */
button[kind="primary"]:hover,
button[kind="secondary"]:hover,
.stDownloadButton > button:hover {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(212,175,55,0.6);
}
/* Active click */
button:active {
transform: scale(0.97);
}
.stButton > button {
background: var(--gold);
border: none;
color: black;
font-weight: 700;
border-radius: 10px;
transition: 0.3s;
}
.stButton > button:hover {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(212,175,55,0.6);
}
/* UPLOAD AREA */
.upload-box {
border: 2px dashed rgba(212,175,55,0.5);
padding: 40px;
text-align: center;
border-radius: 12px;
margin-top: 10px;
background: radial-gradient(circle, rgba(212,175,55,0.08), transparent);
}
/* CHAT */
.chat-user {
background: rgba(212,175,55,0.15);
padding: 10px;
border-radius: 10px;
margin-bottom: 5px;
}
.chat-bot {
background: rgba(255,255,255,0.05);
border: 1px solid rgba(212,175,55,0.3);
padding: 10px;
border-radius: 10px;
margin-bottom: 10px;
}
/* SUGGESTED QUESTION BUTTONS */
.element-container:has(.suggested-marker) + div [data-testid="stButton"] > button {
background: transparent !important;
color: white !important;
border: 1px solid rgba(255, 255, 255, 0.35) !important;
border-radius: 10px !important;
padding: 8px 14px !important;
font-weight: 500 !important;
box-shadow: none !important;
}
.element-container:has(.suggested-marker) + div [data-testid="stButton"] > button:hover {
background: rgba(255,255,255,0.04) !important;
border: 1px solid rgba(255, 255, 255, 0.8) !important;
color: white !important;
box-shadow: none !important;
transform: none !important;
}
/* QA HISTORY BOX */
.qa-history-box {
border: 1px solid rgba(255, 255, 255, 0.18);
background: rgba(255, 255, 255, 0.03);
border-radius: 12px;
padding: 14px 16px;
margin-bottom: 12px;
}
.qa-question {
color: #f5f5f5;
margin-bottom: 8px;
}
.qa-answer {
color: #dcdcdc;
margin-top: 6px;
}
/* TABS STYLE */
.stTabs [data-baseweb="tab"] {
border-radius: 8px;
padding: 8px 12px;
}
.stTabs [aria-selected="true"] {
background: linear-gradient(135deg, #d4af37, #ffcc70);
color: black !important;
}
/* INPUTS */
input, textarea {
background: #111 !important;
color: white !important;
border: 1px solid rgba(212,175,55,0.3);
}
/* Sidebar-style info panel */
.sidebar-panel {
background: #0b0b0c;
border: 1px solid rgba(212,175,55,0.18);
border-radius: 14px;
padding: 18px 20px;
margin-bottom: 18px;
box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
/* MENU PANEL */
.card {
animation: slideDown 0.3s ease;
}
@keyframes slideDown {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* FEATURED CATEGORIES */
.section-title {
font-size: 26px;
font-weight: 800;
margin-bottom: 20px;
background: linear-gradient(135deg, #d4af37, #ffcc70, #b8860b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Grid layout */
.category-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 20px;
}
/* Responsive */
@media (max-width: 900px) {
.category-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* Card */
.category-card {
background: #0b0b0c;
height: 260px;
border-radius: 14px;
padding: 20px;
text-align: center;
border: 1px solid rgba(212,175,55,0.2);
transition: all 0.3s ease-in-out;
position: relative;
}
/* Hover effect */
.category-card:hover {
transform: scale(1.05);
box-shadow: 0 0 25px rgba(212,175,55,0.5);
border-color: #d4af37;
}
/* Icon */
.category-icon {
font-size: 40px;
margin-bottom: 10px;
}
/* Title */
.category-title {
font-size: 18px;
font-weight: 700;
color: #d4af37;
}
/* Description */
.category-desc {
font-size: 14px;
color: #f5efef;
margin: 10px 0 15px 0;
}
/* Button */
.category-btn {
display: inline-block;
padding: 6px 14px;
border-radius: 10px;
background: linear-gradient(135deg, #d4af37, #ffcc70);
color: black;
font-weight: 600;
text-decoration: none;
transition: 0.3s;
}
.category-btn:hover {
transform: scale(1.08);
box-shadow: 0 0 15px rgba(212,175,55,0.7);
}
/* Title under image */
.category-title {
font-size: 16px;
font-weight: 800;
padding: 6px 12px;
margin-top: -8px;
display: inline-block;
background: linear-gradient(135deg, #d4af37, #ffcc70);
color: black;
border-radius: 8px;
/* Glow */
box-shadow: 0 0 10px rgba(212,175,55,0.5);
/* Smooth animation */
transition: 0.3s;
}
/* Hover glow boost */
.category-card:hover .category-title {
box-shadow: 0 0 20px rgba(212,175,55,0.9);
transform: translateY(-2px);
}
/* DASHBOARD SMALL CARD */
.dashboard-card {
background: #0b0b0c;
border-radius: 14px;
padding: 12px;
border: 1px solid rgba(212,175,55,0.2);
transition: all 0.3s ease-in-out;
box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}
/* GOLD HOVER EFFECT */
.dashboard-card:hover {
transform: scale(1.03);
box-shadow: 0 0 25px rgba(212,175,55,0.5);
border-color: #d4af37;
}
.menu-wrapper button {
background: transparent !important;
border: none !important;
color: #d4af37 !important;
font-size: 26px !important;
box-shadow: none !important;
padding: 0 !important;
margin-top: 4px !important;
}
.menu-btn button:hover {
background: transparent !important;
color: #ffcc70 !important;
border: none !important;
box-shadow: none !important;
transform: none !important;
}
.menu-wrapper {
display: flex;
align-items: center;
height: 100%;
margin-top: 6px;
}
/* REMOVE background from left column completely */
div[data-testid="column"]:first-child {
background: transparent !important;
padding-top: 12px !important;
}
/* Make columns visually merge */
div[data-testid="horizontalBlock"] {
background: transparent !important;
}