Spaces:
Configuration error

CivicPulse / styles.css
whdevil's picture
Upload 12 files
ddde4e0 verified
Raw History Blame Contribute Delete
14 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
/* Sanchar Saathi Specific Colors */
--ss-nav-bg: #84B9FA;
--ss-nav-btn: #B3D8FA;
--ss-nav-btn-hover: #D6E9FD;
--ss-nav-text: #052654;
--ss-home-bg: #14499E;
--ss-blue-banner: #0077D3;
--ss-orange: #EC8624;
--ss-yellow: #FED40E;
--color-white: #FFFFFF;
--color-text: #1E293B;
--color-gray-text: #475569;
--color-border: #E2E8F0;
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-floating: 0 10px 20px rgba(0,0,0,0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', Arial, sans-serif;
color: var(--color-text);
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: white;
}
/* 1. Top Bar */
.top-bar {
display: flex;
justify-content: space-between;
padding: 0.5rem 5%;
font-size: 0.75rem;
border-bottom: 1px solid #E2E8F0;
background-color: #FAFAFA;
}
.tb-left { display: flex; gap: 2rem; }
.tb-item { display: flex; flex-direction: column; }
.tb-item .hi { font-weight: 700; color: #1E293B; }
.tb-item .en { color: #64748B; font-weight: 500; letter-spacing: 0.02em; }
.tb-right {
display: flex;
align-items: center;
gap: 1.5rem;
font-weight: 600;
color: #475569;
}
.tb-icons {
display: flex;
gap: 0.75rem;
}
.icon {
font-weight: bold;
cursor: pointer;
}
/* 2. Main Header */
.main-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 5%;
background-color: var(--color-white);
}
.header-logo {
display: flex;
align-items: center;
gap: 1rem;
}
.emblem-placeholder {
width: 52px; height: 52px;
border-radius: 50%;
border: 2px solid #334155;
position: relative;
display: flex; justify-content: center; align-items: center;
}
.ashoka-chakra {
width: 38px; height: 38px;
border-radius: 50%;
border: 1px solid #334155;
background: repeating-conic-gradient(from 0deg, #334155 0deg 2deg, transparent 2deg 15deg);
}
.header-titles {
display: flex;
flex-direction: column;
}
.header-titles .hi {
font-weight: 800;
font-size: 1.25rem;
color: #0F172A;
}
.header-titles .en {
font-weight: 600;
font-size: 0.85rem;
color: #334155;
letter-spacing: 0.02em;
}
.header-right-logos {
display: flex;
gap: 1rem;
}
.logo-box {
padding: 0.5rem 1rem;
background: #F8FAFC;
border: 1px solid #E2E8F0;
border-radius: 4px;
font-weight: 700;
color: #475569;
font-size: 0.8rem;
display: flex; align-items: center;
}
/* 3. Navigation Bar (Floating Pills) */
.ss-nav {
background-color: var(--ss-nav-bg);
padding: 0 5%;
display: flex;
align-items: center;
border-bottom: 2px solid #5798E9;
}
.nav-container {
display: flex;
align-items: stretch;
height: 54px;
width: 100%;
}
.home-btn {
background-color: var(--ss-home-bg);
color: white;
width: 54px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px 8px 0 0;
margin-top: 6px;
}
.nav-links {
display: flex;
align-items: flex-end;
gap: 4px;
margin-left: 10px;
height: 100%;
}
.nav-btn {
background-color: var(--ss-nav-btn);
color: var(--ss-nav-text);
text-decoration: none;
font-weight: 700;
font-size: 0.8rem;
padding: 0.75rem 1.25rem;
border-radius: 6px 6px 0 0;
transition: all 0.2s;
text-transform: uppercase;
letter-spacing: 0.02em;
box-shadow: 0 -2px 5px rgba(0,0,0,0.05); /* Soft shadow indicating floating tab */
}
.nav-btn:hover {
background-color: var(--ss-nav-btn-hover);
transform: translateY(-2px);
}
/* 4. Main Wrapper Layout */
.main-wrapper {
flex: 1;
/* Soft techy light blue background resembling Sanchar Saathi */
background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
padding: 2.5rem 5%;
}
.container {
max-width: 1400px;
margin: 0 auto;
display: flex;
gap: 2rem;
align-items: flex-start;
}
/* 5. Left Floating Panel (Minister Cards) */
.left-floating-panel {
width: 250px;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.floating-card {
background: white;
border-radius: 6px;
box-shadow: var(--shadow-floating);
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid rgba(255,255,255,0.5);
transition: transform 0.2s;
}
.floating-card:hover {
transform: translateY(-5px);
}
.card-img-placeholder {
width: 100%;
height: 150px;
background: linear-gradient(to bottom, #F1F5F9, #E2E8F0);
display: flex;
justify-content: center;
align-items: center;
}
.card-img {
width: 100%;
height: 170px;
object-fit: cover;
object-position: top;
background: #F1F5F9;
}
.card-info {
padding: 1rem;
text-align: center;
background: #EFF6FF;
width: 100%;
}
.card-info strong {
display: block;
color: #0F172A;
font-size: 0.9rem;
font-weight: 800;
margin-bottom: 0.25rem;
}
.card-info span {
font-size: 0.8rem;
color: #475569;
font-weight: 500;
}
.card-social {
display: flex;
gap: 1rem;
padding: 0.75rem;
background: white;
width: 100%;
justify-content: center;
border-top: 1px solid #E2E8F0;
font-size: 1.1rem;
cursor: pointer;
}
/* 6. Banner Panel (Right Area) */
.banner-panel {
flex: 1;
}
.ss-banner {
background-color: var(--ss-blue-banner);
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow-floating);
display: flex;
flex-direction: column;
position: relative;
border: 3px solid #60A5FA; /* Nice border to make it pop */
}
.ss-banner-header {
text-align: center;
padding: 1.5rem;
color: white;
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.1));
}
.ss-banner-header h2 {
font-size: 2.4rem;
font-weight: 800;
margin-bottom: 0.25rem;
letter-spacing: 1px;
text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}
.ss-banner-header p {
font-size: 1.1rem;
font-weight: 600;
letter-spacing: 1.5px;
color: #DBEAFE;
}
.ss-banner-content {
display: flex;
padding: 0 1.5rem 1.5rem 1.5rem;
gap: 1.5rem;
}
/* Orange Option Blocks */
.ss-orange-section {
flex: 0.8;
display: flex;
flex-direction: column;
gap: 1rem;
}
.orange-block {
background-color: var(--ss-orange);
color: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}
.orange-block h3 {
font-size: 1.8rem;
font-weight: 800;
margin-bottom: 1rem;
border-left: 5px solid white;
padding-left: 12px;
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.orange-block ul {
list-style: none;
}
.orange-block ul li {
font-size: 0.95rem;
font-weight: 600;
margin-bottom: 0.6rem;
display: flex;
align-items: center;
}
.orange-block ul li::before {
content: '▶';
font-size: 0.7rem;
margin-right: 8px;
color: #FFEFE1;
}
/* Chat UI Overwrite */
.ss-chat-section {
flex: 1.2;
}
.chat-container {
background: var(--color-white);
border-radius: 10px;
display: flex;
flex-direction: column;
height: 480px;
overflow: hidden;
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.chat-messages {
flex: 1;
padding: 1.25rem;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1rem;
background-color: #F8FAFC;
}
.message {
display: flex;
width: 100%;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
.message.user { justify-content: flex-end; }
.message.bot { justify-content: flex-start; }
.message-content {
max-width: 90%;
padding: 0.85rem 1.1rem;
font-size: 0.95rem;
line-height: 1.5;
border-radius: 12px;
}
.message.user .message-content {
background-color: #ECFCCB; /* Lime light green */
color: #3F6212;
border-bottom-right-radius: 0;
border: 1px solid #D9F99D;
}
.message.bot .message-content {
background-color: white;
color: var(--color-text);
border-bottom-left-radius: 0;
border: 1px solid var(--color-border);
box-shadow: var(--shadow-md);
}
/* Chat Input */
.chat-input-area {
padding: 1rem;
background-color: white;
border-top: 1px solid var(--color-border);
display: flex;
gap: 0.75rem;
}
#chatInput {
flex: 1;
padding: 0.75rem 1.25rem;
border: 1px solid var(--color-border);
border-radius: 30px;
font-size: 0.95rem;
outline: none;
transition: all 0.2s;
}
#chatInput:focus {
border-color: var(--ss-blue-banner);
box-shadow: 0 0 0 3px rgba(0, 119, 211, 0.1);
}
#sendBtn {
background-color: var(--ss-orange);
color: white;
border: none;
width: 46px; height: 46px;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
cursor: pointer;
transition: transform 0.1s, background-color 0.2s;
}
#sendBtn:hover { background-color: #D3741C; }
#sendBtn:active { transform: scale(0.95); }
/* Banner Footer */
.ss-banner-footer {
display: flex;
background-color: white;
align-items: stretch;
border-top: 1px solid #E2E8F0;
}
.access-now {
background-color: var(--ss-yellow);
color: #0F172A;
font-weight: 800;
font-size: 1.4rem;
padding: 1rem 2.5rem;
display: flex;
align-items: center;
text-transform: uppercase;
}
.web-portal {
padding: 1rem 2.5rem;
display: flex;
flex-direction: column;
justify-content: center;
}
.web-portal span {
color: var(--ss-blue-banner);
font-weight: 800;
font-size: 0.85rem;
text-transform: uppercase;
}
.web-portal a {
color: var(--ss-orange);
font-size: 1.25rem;
font-weight: 700;
text-decoration: none;
}
/* Chat Result Cards Formatting */
.result-card {
background: #F8FAFC;
border: 1px solid #CBD5E1;
border-radius: 8px;
padding: 1rem;
margin-top: 0.75rem;
}
.result-header {
display: flex; justify-content: space-between; align-items: flex-start;
margin-bottom: 0.75rem;
}
.result-title { font-weight: 800; font-size: 1rem; color: #1E293B; }
.tag {
font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
padding: 0.25rem 0.5rem; border-radius: 4px;
}
.tag.high { background-color: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }
.tag.medium { background-color: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.tag.low { background-color: #ECFCCB; color: #4D7C0F; border: 1px solid #D9F99D; }
.authority-highlight {
background-color: #E0E7FF; color: #3730A3;
padding: 0.35rem 0.6rem; border-radius: 6px;
font-weight: 700; font-size: 0.85rem;
display: inline-block; margin-bottom: 0.75rem;
border-left: 4px solid #4F46E5;
}
.reason-text { font-size: 0.9rem; color: var(--color-gray-text); margin-bottom: 0.75rem; }
.recommendation-box {
background-color: #FFFFFF; border: 1px solid #E2E8F0;
border-left: 4px solid var(--ss-orange);
padding: 0.75rem; font-size: 0.9rem; border-radius: 4px;
}
.recommendation-box strong { color: #0F172A; display: block; margin-bottom: 0.25rem; font-weight: 700; }
/* Typing indicator */
.typing-indicator {
padding: 0.5rem 1rem; display: flex; gap: 4px;
}
.typing-indicator.hidden { display: none!important; }
.typing-indicator span {
width: 7px; height: 7px; background-color: #64748B;
border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
/* Footer */
.main-footer {
background-color: #0F172A;
color: #94A3B8;
text-align: center;
padding: 2rem;
font-size: 0.9rem;
font-weight: 600;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
.container { flex-direction: column; }
.left-floating-panel { width: 100%; flex-direction: row; justify-content: center; }
.ss-banner-content { flex-direction: column; }
}
.choice-panel {
display: flex;
flex-direction: column;
gap: 14px;
margin-top: 20px;
}
.choice-btn {
display: block;
width: 100%;
padding: 16px 18px;
border: 1px solid #e2e8f0;
border-radius: 12px;
background: #ffffff;
color: #0f172a;
font-weight: 600;
font-size: 15px;
text-align: left;
cursor: pointer;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
transition: all 0.2s ease;
}
.choice-btn:hover {
background: #f8fafc;
transform: translateX(6px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.electricity-btn {
border-left: 5px solid #f59e0b;
background: #fffaf0;
}
.electricity-btn:hover {
background: #fff7ed;
transform: translateX(6px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.road-btn {
border-left: 5px solid #f59e0b;
background: #fffaf0;
}
.road-btn:hover {
background: #fff7ed;
transform: translateX(6px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.water-btn {
border-left: 5px solid #f59e0b;
background: #fffaf0;
}
.water-btn:hover {
background: #fff7ed;
transform: translateX(6px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.illegal-btn {
border-left: 5px solid #f59e0b;
background: #fffaf0;
}
.illegal-btn:hover {
background: #fff7ed;
transform: translateX(6px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.own-btn {
border-left: 5px solid #f59e0b;
background: #fffaf0;
}
.own-btn:hover {
background: #fff7ed;
transform: translateX(6px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.hidden { display: none!important; }