Spaces:
Sleeping

Placebo_AI / src /static /style.css
Placebo Deploy
update
57146e3
Raw History Blame Contribute Delete
18.4 kB
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@font-face {
font-family: 'Surgena';
src: url('/static/Surgena.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
:root {
--primary: #10b981; /* Emerald Teal */
--primary-glow: rgba(16, 185, 129, 0.2);
--black: #020617;
--gray-text: #94a3b8; /* Slate Secondary for visual hierarchy */
--light-gray: #1e293b;
--white: #FFF5EE; /* Seashell Primary */
--transparent-overlay: rgba(15, 23, 42, 0.85);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: var(--black);
color: var(--white);
font-family: 'Montserrat', sans-serif;
min-height: 100vh;
overflow-x: hidden;
}
/* Video Background with Custom JS Fade Control */
#video-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
overflow: hidden;
}
#hero-video {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 115%;
height: 115%;
object-fit: cover;
object-position: top;
opacity: 1;
}
/* UI Content Layer */
.content-layer {
position: relative;
z-index: 10;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Navigation Bar */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: clamp(12px, 2vh, 16px) clamp(16px, 5vw, 120px);
background: transparent;
width: 100%;
}
.logo {
font-family: 'Surgena', serif;
font-weight: 400;
font-size: 32px;
letter-spacing: 0.5px;
color: var(--white);
text-decoration: none;
}
.menu-items {
display: flex;
gap: 32px;
}
.menu-item {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 14px;
letter-spacing: 0.5px;
color: var(--gray-text);
text-decoration: none;
display: flex;
align-items: center;
gap: 4px;
transition: color 0.3s;
}
.menu-item:hover {
color: var(--primary);
}
.nav-buttons {
display: flex;
gap: 12px;
}
.btn-signup {
min-width: 101px;
min-height: 44px;
padding: 0 16px;
background: var(--primary);
color: var(--black);
border: none;
border-radius: 6px;
font-family: 'Montserrat', sans-serif;
font-weight: 700;
cursor: pointer;
box-shadow: 0 0 15px var(--primary-glow);
transition: transform 0.2s, background 0.3s;
display: flex;
align-items: center;
justify-content: center;
}
.btn-signup:hover {
transform: scale(1.05);
background: #14d495;
}
.btn-login {
min-width: 101px;
min-height: 44px;
padding: 0 16px;
background: transparent;
color: var(--white);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 6px;
font-family: 'Montserrat', sans-serif;
font-weight: 500;
cursor: pointer;
transition: background 0.3s;
display: flex;
align-items: center;
justify-content: center;
}
.btn-login:hover {
background: rgba(255, 255, 255, 0.1);
}
/* Hero Content */
.hero-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
margin-top: calc(clamp(20px, 5vh, 60px) - 50px);
padding: 0 clamp(16px, 5vw, 120px);
text-align: center;
width: 100%;
}
/* Badge */
.badge-container {
display: flex;
align-items: center;
background: var(--light-gray);
border-radius: 999px;
padding: 4px 12px 4px 4px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
margin-bottom: 34px;
}
.badge-dark {
background: var(--primary);
color: var(--black);
padding: 4px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
display: flex;
align-items: center;
gap: 6px;
}
.badge-text {
font-family: 'Montserrat', sans-serif;
font-size: 13px;
font-weight: 500;
color: var(--white);
margin-left: 8px;
}
/* Headline */
h1 {
font-family: 'Surgena', serif;
font-weight: 400;
font-size: clamp(40px, 8vw, 104px);
letter-spacing: -1px;
line-height: 0.9;
color: var(--white);
margin-bottom: clamp(16px, 2vh, 24px);
}
.subtitle {
font-family: 'Montserrat', sans-serif;
font-weight: 400;
font-size: clamp(14px, 2vw, 18px);
line-height: 1.6;
letter-spacing: 0.2px;
color: var(--gray-text);
width: 100%;
max-width: 542px;
margin-bottom: clamp(24px, 4vh, 44px);
}
/* Search Input Box */
.search-container {
width: 100%;
max-width: 728px;
min-height: 200px;
height: auto;
background: var(--transparent-overlay);
backdrop-filter: blur(40px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 18px;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.search-top {
display: flex;
justify-content: space-between;
align-items: center;
}
.credit-info {
font-family: 'Schibsted Grotesk', sans-serif;
font-weight: 500;
font-size: 12px;
color: white;
display: flex;
align-items: center;
gap: 8px;
}
.btn-upgrade {
background: var(--primary);
color: var(--black);
border: none;
padding: 8px 14px;
border-radius: 6px;
font-size: 11px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 0 15px var(--primary-glow);
transition: all 0.2s ease;
}
.btn-upgrade:hover {
transform: translateY(-1px);
box-shadow: 0 0 20px var(--primary);
}
.ai-powered {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 12px;
color: var(--white);
display: flex;
align-items: center;
gap: 6px;
opacity: 0.8;
}
/* Main Input Area */
.input-wrapper {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 12px;
padding: 8px 16px;
display: flex;
align-items: center;
flex: 1;
transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.input-wrapper:focus-within {
border-color: var(--primary);
box-shadow: 0 0 0 2px var(--primary-glow);
background: rgba(255, 255, 255, 0.12);
}
.input-wrapper.disabled {
background: rgba(255, 255, 255, 0.03);
border-color: rgba(255, 255, 255, 0.05);
backdrop-filter: none;
}
#chat-input {
flex: 1;
background: transparent;
border: none;
outline: none;
font-size: 16px;
color: var(--white);
font-family: 'Montserrat', sans-serif;
}
#chat-input:disabled {
color: rgba(255, 255, 255, 0.3);
cursor: not-allowed;
}
#chat-input::placeholder {
color: rgba(255, 255, 255, 0.4);
}
.btn-submit {
width: 44px;
height: 44px;
background: var(--primary);
color: var(--black);
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.2s, background 0.3s;
}
.btn-submit:disabled {
background: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.2);
cursor: not-allowed;
transform: none !important;
}
.btn-submit:hover:not(:disabled) { transform: scale(1.05); }
/* Response Panel */
#response-panel {
width: 100%;
max-width: 728px;
background: rgba(15, 23, 42, 0.98);
backdrop-filter: blur(40px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 18px;
padding: 24px;
margin-top: 20px;
display: none; /* Hidden by default */
flex-direction: column;
gap: 16px;
text-align: left;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.response-content {
font-family: 'Montserrat', sans-serif;
font-size: 15px;
line-height: 1.6;
color: var(--white);
}
.response-content table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
overflow: hidden;
}
.response-content th, .response-content td {
padding: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
text-align: left;
}
.response-content th {
background: rgba(16, 185, 129, 0.1);
color: var(--primary);
font-weight: 600;
}
.response-content strong {
color: var(--primary);
font-weight: 600;
}
.response-content ul, .response-content ol {
margin: 12px 0;
padding-left: 20px;
}
.response-content li {
margin-bottom: 8px;
}
.source-container {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 12px;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.source-tag {
background: rgba(16, 185, 129, 0.1);
color: var(--primary);
padding: 4px 10px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s;
}
.source-tag:hover {
background: rgba(16, 185, 129, 0.2);
}
/* Page Viewer Modal */
#page-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(10px);
z-index: 1000;
display: none;
align-items: center;
justify-content: center;
padding: 40px;
}
.modal-container {
background: var(--light-gray);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
width: 100%;
max-width: 900px;
max-height: 90vh;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-header {
padding: 16px 24px;
background: rgba(255, 255, 255, 0.05);
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-title {
font-family: 'Cormorant Garamond', serif;
font-size: 20px;
color: var(--white);
}
.close-modal {
background: transparent;
border: none;
color: var(--white);
font-size: 32px;
cursor: pointer;
line-height: 1;
}
.modal-body {
flex: 1;
overflow-y: auto;
padding: 20px;
display: flex;
justify-content: center;
background: #000;
}
#page-preview-img {
max-width: 100%;
height: auto;
box-shadow: 0 0 30px rgba(0,0,0,0.8);
}
/* Bottom Action Row */
.search-bottom {
display: flex;
justify-content: space-between;
align-items: center;
}
.action-buttons {
display: flex;
gap: 8px;
}
.action-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
padding: 10px 16px;
min-height: 44px;
border-radius: 8px;
font-family: 'Montserrat', sans-serif;
font-size: 12px;
font-weight: 600;
color: var(--white);
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.action-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.15);
transform: translateY(-1px);
}
.char-counter {
font-family: 'Schibsted Grotesk', sans-serif;
font-size: 12px;
color: #a0a0a0;
}
/* SVG Icon Base */
.icon {
width: 16px;
height: 16px;
}
/* --- PREMIUM CLINICAL CUSTOM SCROLLBAR --- */
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: var(--primary) rgba(15, 23, 42, 0.3);
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.4);
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.03);
}
/* Styled as a bioluminescent medical capsule/pill */
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, var(--primary) 0%, #059669 100%);
border-radius: 999px;
border: 2px solid rgba(15, 23, 42, 0.8); /* Creates capsule isolation */
box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
transition: background 0.3s, border-color 0.3s;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #34d399 0%, #059669 100%);
border-color: rgba(15, 23, 42, 0.6);
box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
}
/* Scrollbar for page previews and history drawer styled with a gradient shift to medical bio-cyan */
.modal-body::-webkit-scrollbar-thumb,
#drawer-items::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #10b981 0%, #06b6d4 100%);
}
.modal-body::-webkit-scrollbar-thumb:hover,
#drawer-items::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #34d399 0%, #22d3ee 100%);
}
/* --- MODEL SELECTOR STYLING --- */
.model-selector {
display: flex;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 4px;
width: 100%;
gap: 6px;
margin-bottom: 4px;
}
.model-btn {
flex: 1;
background: transparent;
border: 1px solid transparent;
border-radius: 8px;
padding: 12px 14px;
min-height: 44px;
font-family: 'Montserrat', sans-serif;
font-size: 13px;
font-weight: 600;
color: rgba(255, 255, 255, 0.6);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.model-btn:hover {
color: var(--white);
background: rgba(255, 255, 255, 0.03);
}
.model-btn.active {
background: rgba(16, 185, 129, 0.15);
border: 1px solid rgba(16, 185, 129, 0.3);
color: var(--primary);
box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}
/* Specific styling for MBBS and Pharmacy active states to differentiate them */
.model-btn.active[data-mode="mbbs"] {
background: rgba(239, 68, 68, 0.15); /* Red/crimson glow for Clinical */
border: 1px solid rgba(239, 68, 68, 0.3);
color: #f87171;
box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}
.model-btn.active[data-mode="pharmacy"] {
background: rgba(6, 182, 212, 0.15); /* Cyan glow for Pharmacy */
border: 1px solid rgba(6, 182, 212, 0.3);
color: #22d3ee;
box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}
.model-btn .indicator-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
transition: all 0.3s;
}
.model-btn.active[data-mode="all"] .indicator-dot {
background: var(--primary);
box-shadow: 0 0 8px var(--primary);
}
.model-btn.active[data-mode="mbbs"] .indicator-dot {
background: #f87171;
box-shadow: 0 0 8px #f87171;
}
.model-btn.active[data-mode="pharmacy"] .indicator-dot {
background: #22d3ee;
box-shadow: 0 0 8px #22d3ee;
}
/* --- ACCESSIBILITY FOCUS STATES --- */
button:focus-visible,
input:focus-visible,
a:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
/* --- FEEDBACK LOOP STYLING --- */
.response-feedback {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.feedback-label {
font-family: 'Montserrat', sans-serif;
font-size: 11px;
font-weight: 600;
color: rgba(255, 255, 255, 0.4);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.feedback-btn {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.5);
width: 32px;
height: 32px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
}
.feedback-btn:hover {
color: var(--white);
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.15);
}
.feedback-btn.active-up {
color: var(--primary);
background: rgba(16, 185, 129, 0.1);
border-color: rgba(16, 185, 129, 0.3);
box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}
.feedback-btn.active-down {
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
border-color: rgba(239, 68, 68, 0.3);
box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}
.feedback-btn svg {
width: 16px;
height: 16px;
}
/* --- SAFETY DISCLAIMER STYLING --- */
.response-disclaimer {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
color: rgba(255, 255, 255, 0.35);
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.04);
border-radius: 8px;
padding: 8px 12px;
margin-top: 12px;
}
.disclaimer-icon {
width: 14px;
height: 14px;
color: var(--primary);
flex-shrink: 0;
}
/* --- RESPONSIVE MEDIA QUERIES --- */
/* Responsive tables for Markdown output */
.response-content table {
display: block;
overflow-x: auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
@media (max-width: 1024px) {
.menu-items {
gap: 16px;
}
}
@media (max-width: 768px) {
.menu-items {
display: none; /* Hide desktop menu on mobile for simplicity */
}
.search-top {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.model-selector {
flex-direction: column;
gap: 4px;
}
.model-btn {
min-height: 48px; /* Accessible touch target size */
padding: 12px;
font-size: 13px;
width: 100%;
}
.search-bottom {
flex-direction: column;
gap: 12px;
align-items: flex-start;
}
.action-buttons {
width: 100%;
overflow-x: auto;
padding-bottom: 4px;
}
.action-btn {
flex: 1;
justify-content: center;
white-space: nowrap;
min-height: 44px;
}
.modal-container {
max-width: 95%;
margin: 10px;
}
#page-modal {
padding: 10px;
}
}
@media (max-width: 480px) {
.nav-buttons {
flex-direction: column;
gap: 8px;
}
.btn-login, .btn-signup {
min-height: 44px;
width: 100%;
}
.input-wrapper {
flex-direction: column;
align-items: stretch;
padding: 12px;
border-radius: 16px;
}
.btn-submit {
align-self: flex-end;
margin-top: 8px;
}
}
/* Extra large screens / Ultra-wide */
@media (min-width: 1440px) {
nav {
max-width: 1440px;
margin: 0 auto;
}
.hero-content {
max-width: 1440px;
margin: calc(60px - 50px) auto 0 auto;
}
}