HealthGuard-AI / static /css /style.css
kalyan9's picture
Upload 35 files
9876bd8 verified
Raw History Blame Contribute Delete
12.1 kB
/* Light mode variables with new color palette */
:root {
/* New color palette */
--bg-color: #cde8d0; /* Secondary / Cards / Panels - Light Sage */
--text-color: #333333; /* Text Primary - Charcoal */
--text-secondary: #666666; /* Text Secondary - Gray */
--card-bg: #cde8d0; /* Cards / forms */
--border-color: #ced4da; /* Input borders */
--header-bg: #006d5b; /* Primary / Header / Navbar - Dark Teal */
--header-gradient-start: #006d5b;
--header-gradient-end: #005a4b; /* slightly darker on hover */
--success-color: #32cd32; /* Success / Accepted - Lime Green */
--danger-color: #dc143c; /* Danger / Rejected - Crimson */
--warning-color: #ffb347; /* Warning / Pending - Amber */
--info-color: #ff6b6b; /* Accent / Buttons / Highlights - Coral */
--secondary-color: #cde8d0; /* Secondary - Light Sage */
--accent-color: #cde8d0; /* Secondary - Light Sage */
--shadow-color: rgba(0,0,0,0.1); /* subtle shadow */
--chat-sent-bg: #ffd7ba; /* Chat User Bubble - Peach */
--chat-received-bg: #aaf0d1; /* Chat Doctor Bubble - Mint */
--chat-user-bubble: #ffd7ba; /* Chat User Bubble - Peach */
--chat-doctor-bubble: #aaf0d1; /* Chat Doctor Bubble - Mint */
}
.dark-mode {
--bg-color: #121212;
--text-color: #e0e0e0;
--card-bg: #1e1e1e;
--border-color: #444444;
--header-bg: #006d5b;
--header-gradient-start: #006d5b;
--header-gradient-end: #005a4b;
--success-color: #32cd32;
--danger-color: #dc143c;
--warning-color: #ffb347;
--info-color: #ff6b6b;
--secondary-color: #95a5a6;
--accent-color: #2c3e50;
--shadow-color: rgba(0, 0, 0, 0.3);
--chat-sent-bg: #ffd7ba;
--chat-received-bg: #aaf0d1;
--chat-user-bubble: #ffd7ba;
--chat-doctor-bubble: #aaf0d1;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
transition: background-color 0.3s, color 0.3s;
font-family: 'Poppins', 'Montserrat', 'Raleway', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 400;
line-height: 1.6;
}
.card {
background: linear-gradient(135deg, #cde8d0, #aaf0d1);
border: none;
transition: all 0.3s ease;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
padding: 1.5rem;
margin: 1rem;
}
.card:hover {
box-shadow: 0 12px 30px rgba(0,0,0,0.15);
transform: translateY(-5px);
transition: all 0.3s ease;
}
.navbar {
background: rgba(0,109,91,0.8) !important;
backdrop-filter: blur(10px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-bottom: none;
transition: all 0.3s ease;
}
.navbar .nav-link:hover {
transform: scale(1.1);
transition: all 0.3s ease;
}
.form-control, .form-select {
background-color: var(--card-bg);
color: var(--text-color);
border: 1px solid var(--border-color);
border-radius: 10px;
padding: 0.75rem 1rem;
transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
background-color: var(--card-bg);
color: var(--text-color);
border-color: #ff6b6b;
box-shadow: 0 0 8px #ff6b6b;
}
.btn {
border-radius: 12px;
padding: 0.5rem 1.25rem;
font-weight: 500;
transition: all 0.3s ease;
border: none;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-primary {
background: linear-gradient(45deg, #ff6b6b, #ffb347);
border: none;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
color: #fff;
}
.btn-primary:hover {
background: linear-gradient(45deg, #ff6b6b, #ffb347);
transform: translateY(-5px);
box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.btn-secondary {
background-color: var(--secondary-color);
color: #333333;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
background-color: #a8d8aa;
transform: translateY(-5px);
box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}
.btn-outline-primary {
border: 1px solid var(--header-bg);
color: var(--header-bg);
}
.btn-outline-primary:hover {
background-color: var(--header-bg);
color: #333333;
}
.dashboard-card {
transition: transform 0.3s, box-shadow 0.3s;
height: 100%;
border-radius: 12px;
border: none;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
background: linear-gradient(135deg, #cde8d0, #aaf0d1);
padding: 1.5rem;
margin: 1rem;
}
.dashboard-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(0,0,0,0.15);
transition: all 0.3s ease;
}
.dashboard-card .card-body {
padding: 1.5rem;
}
.prediction-form .form-group {
margin-bottom: 1.25rem;
}
.result-card {
border-left: 6px solid var(--success-color);
border-radius: 12px;
box-shadow: 0 0.25rem 0.5rem var(--shadow-color);
background: linear-gradient(135deg, #cde8d0, #aaf0d1);
}
.result-card.positive {
border-left-color: var(--danger-color);
}
.result-card h3 {
font-weight: 700;
margin-bottom: 0.5rem;
}
/* Theme toggle removed; dark mode still supported via `.dark-mode` class if needed */
.health-tip {
border-left: 4px solid var(--header-bg);
padding: 20px;
margin: 20px 0;
background-color: var(--accent-color);
border-radius: 0 8px 8px 0;
}
.health-tip h5 {
color: var(--header-bg);
margin-top: 0;
font-weight: 700;
}
.health-tip ul {
padding-left: 1.25rem;
}
.health-tip li {
margin-bottom: 0.5rem;
}
.report-table th {
background: linear-gradient(135deg, var(--header-gradient-start), var(--header-gradient-end));
color: #333333;
border: none;
font-weight: 700;
}
.report-table tr:hover {
background-color: var(--accent-color);
}
.jumbotron {
background: linear-gradient(135deg, var(--header-gradient-start), var(--header-gradient-end));
color: #333333;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
padding: 2.5rem 2rem;
margin-bottom: 2rem;
transition: all 0.3s ease;
}
.jumbotron h1 {
font-weight: 700;
margin-bottom: 1rem;
}
.jumbotron p {
font-size: 1.1rem;
opacity: 0.9;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.dashboard-card {
margin-bottom: 20px;
}
/* theme-toggle removed */
.card {
margin-bottom: 15px;
}
.table-responsive {
font-size: 0.9rem;
}
.navbar-brand {
font-size: 1.2rem;
}
.nav-link {
font-size: 0.9rem;
}
.jumbotron {
padding: 1.5rem 1.25rem;
}
}
@media (max-width: 576px) {
.container {
padding-left: 10px;
padding-right: 10px;
}
.card-body {
padding: 1.25rem;
}
h1 {
font-size: 1.5rem;
font-weight: 700;
}
h2 {
font-size: 1.3rem;
font-weight: 700;
}
.btn {
font-size: 0.85rem;
padding: 0.5rem 1rem;
}
.form-control, .form-select {
font-size: 0.95rem;
}
.jumbotron {
padding: 1.25rem 1rem;
}
.jumbotron h1 {
font-size: 1.5rem;
}
}
/* Chart container */
.chart-container {
position: relative;
height: 300px;
width: 100%;
margin: 20px 0;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
transition: all 0.3s ease;
background: linear-gradient(135deg, #cde8d0, #aaf0d1);
padding: 10px;
}
/* Ensure charts shrink on small devices */
@media (max-width: 768px) {
.chart-container { height: 220px; }
}
@media (max-width: 576px) {
.chart-container { height: 180px; }
.dashboard-card .card-body { padding: 1rem; }
}
/* Chart bars */
.chart-bar {
border-radius: 8px;
transition: all 0.3s ease;
}
.chart-bar:hover {
transform: scale(1.05);
}
/* Chart tooltips */
.chart-tooltip {
background: rgba(0,109,91,0.8);
backdrop-filter: blur(10px);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
padding: 10px;
color: #333333;
}
/* Badge styles */
.badge {
font-size: 0.75em;
padding: 0.5em 0.75em;
border-radius: 12px;
}
/* Alert styles */
.alert {
border-radius: 8px;
box-shadow: 0 0.25rem 0.5rem var(--shadow-color);
border: none;
padding: 1rem 1.25rem;
}
.alert-success {
background-color: rgba(50, 205, 50, 0.15);
color: #32cd32;
}
.alert-danger {
background-color: rgba(220, 20, 60, 0.15);
color: #dc143c;
}
.alert-warning {
background-color: rgba(255, 179, 71, 0.15);
color: #ffb347;
}
/* Footer */
footer {
background-color: var(--card-bg);
border-top: 1px solid var(--border-color);
color: var(--text-color);
padding: 2rem 0;
margin-top: 3rem;
}
/* Input validation */
.is-invalid {
border-color: var(--danger-color) !important;
box-shadow: 0 0 0 0.25rem rgba(244, 67, 54, 0.25) !important;
}
.invalid-feedback {
color: var(--danger-color);
font-size: 0.875rem;
}
/* Button group spacing */
.btn-group .btn {
margin-right: 8px;
}
/* Icon sizes */
.bi {
width: 1em;
height: 1em;
}
.bi-lg {
width: 1.5em;
height: 1.5em;
}
/* Table adjustments */
.table th {
border-top: none;
font-weight: 700;
}
.table td, .table th {
vertical-align: middle;
padding: 0.75rem;
}
/* List group */
.list-group-item {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
color: var(--text-color);
border-radius: 8px !important;
margin-bottom: 0.5rem;
transition: all 0.3s ease;
}
.list-group-item:hover {
background-color: var(--accent-color);
transform: translateX(5px);
}
.list-group-item:first-child {
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.list-group-item:last-child {
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
margin-bottom: 0;
}
/* Pagination */
.pagination .page-link {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
color: var(--text-color);
border-radius: 8px;
margin: 0 2px;
transition: all 0.3s ease;
}
.pagination .page-link:hover {
background-color: var(--accent-color);
transform: translateY(-2px);
}
.pagination .active .page-link {
background: linear-gradient(135deg, var(--header-gradient-start), var(--header-gradient-end));
border-color: var(--header-bg);
color: #333333;
}
/* Form labels */
.form-label {
font-weight: 500;
margin-bottom: 0.5rem;
color: var(--text-color);
}
/* Card headers */
.card-header {
background-color: transparent;
border-bottom: 1px solid var(--border-color);
font-weight: 700;
padding: 1.25rem 1.5rem;
border-radius: 12px 12px 0 0 !important;
}
/* Chat styles */
.chat-container {
height: 400px;
display: flex;
flex-direction: column;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1rem;
background-color: var(--accent-color);
border-radius: 8px;
margin-bottom: 1rem;
}
.message {
margin-bottom: 1rem;
max-width: 80%;
}
.message.sent {
margin-left: auto;
}
.message.received {
margin-right: auto;
}
.message-content {
padding: 0.75rem 1rem;
border-radius: 12px;
word-wrap: break-word;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
animation: float 0.3s ease;
}
.message.sent .message-content {
background-color: var(--chat-user-bubble);
color: #333333;
border-bottom-right-radius: 0;
}
.message.received .message-content {
background-color: var(--chat-doctor-bubble);
color: #333333;
border-bottom-left-radius: 0;
}
.message-time {
font-size: 0.75rem;
color: var(--secondary-color);
margin-top: 0.25rem;
text-align: right;
}
.chat-container .card-footer {
padding: 1rem 1.25rem;
}
/* Form checks */
.form-check {
margin-bottom: 0.5rem;
}
.form-check-input:checked {
background-color: #ff6b6b;
border-color: #ff6b6b;
}
@keyframes float {
0% { transform: translateY(10px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
@keyframes chartHover {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}