NewsLetter / static /style.css
SmartHeal's picture
Upload 19 files
a19173c verified
/* Professional Newsletter Styles */
:root {
--primary-color: #1976d2;
--secondary-color: #764ba2;
--accent-color: #ff9800;
--success-color: #2e7d32;
--background-color: #f8f9fa;
--text-color: #333;
--border-color: #e0e0e0;
--shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 400;
margin-bottom: 0.5em;
line-height: 1.3;
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.2em; }
p {
margin-bottom: 1em;
}
a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: var(--secondary-color);
text-decoration: underline;
}
/* Layout Components */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.card {
background: white;
border-radius: 8px;
box-shadow: var(--shadow);
padding: 20px;
margin-bottom: 20px;
}
.btn {
display: inline-block;
padding: 12px 24px;
background: var(--primary-color);
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
transition: all 0.3s ease;
text-decoration: none;
}
.btn:hover {
background: var(--secondary-color);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn-secondary {
background: var(--accent-color);
}
.btn-success {
background: var(--success-color);
}
/* Professional Data Display */
.data-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin: 20px 0;
}
.metric-card {
background: white;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 20px;
text-align: center;
transition: transform 0.3s ease;
}
.metric-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.metric-value {
font-size: 2em;
font-weight: bold;
color: var(--primary-color);
margin-bottom: 5px;
}
.metric-label {
color: #666;
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Chart Styles */
.chart-wrapper {
background: white;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 20px;
margin: 20px 0;
}
.chart-title {
font-size: 1.2em;
font-weight: 500;
margin-bottom: 15px;
color: var(--text-color);
}
.chart-container {
position: relative;
height: 400px;
margin: 10px 0;
}
/* Research Source Indicators */
.source-badge {
display: inline-block;
background: #e3f2fd;
color: var(--primary-color);
padding: 4px 8px;
border-radius: 15px;
font-size: 0.8em;
margin: 2px;
border: 1px solid var(--primary-color);
}
.credibility-high {
background: #e8f5e8;
color: var(--success-color);
border-color: var(--success-color);
}
.credibility-medium {
background: #fff3e0;
color: var(--accent-color);
border-color: var(--accent-color);
}
.credibility-low {
background: #ffebee;
color: #d32f2f;
border-color: #d32f2f;
}
/* Professional Tables */
.data-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--shadow);
}
.data-table th {
background: var(--primary-color);
color: white;
padding: 15px;
text-align: left;
font-weight: 500;
}
.data-table td {
padding: 12px 15px;
border-bottom: 1px solid var(--border-color);
}
.data-table tr:hover {
background: #f5f5f5;
}
/* Status Indicators */
.status-indicator {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 8px;
border-radius: 20px;
font-size: 0.85em;
font-weight: 500;
}
.status-success {
background: #e8f5e8;
color: var(--success-color);
}
.status-warning {
background: #fff3e0;
color: var(--accent-color);
}
.status-error {
background: #ffebee;
color: #d32f2f;
}
.status-info {
background: #e3f2fd;
color: var(--primary-color);
}
/* Loading States */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
display: flex;
align-items: center;
gap: 10px;
color: #666;
font-style: italic;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 0 10px;
}
.data-grid {
grid-template-columns: 1fr;
}
.chart-container {
height: 300px;
}
.data-table {
font-size: 0.9em;
}
.data-table th,
.data-table td {
padding: 8px 10px;
}
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
}
@media (max-width: 480px) {
.btn {
padding: 10px 20px;
font-size: 0.9em;
}
.metric-value {
font-size: 1.5em;
}
.chart-container {
height: 250px;
}
}
/* Animation and Transitions */
.fade-in {
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.slide-in {
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
/* Accessibility */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
/* Focus styles for keyboard navigation */
.btn:focus,
a:focus {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
:root {
--primary-color: #000;
--secondary-color: #000;
--text-color: #000;
--border-color: #000;
}
}
/* Print styles */
@media print {
.btn, .loading, .status-indicator {
display: none;
}
.card, .chart-wrapper {
box-shadow: none;
border: 1px solid #ccc;
}
a {
color: #000;
text-decoration: underline;
}
}