Spaces:
Paused

yaz / static /css /main.css
anaselamr's picture
fix: resolve merge conflicts and clean up stale stash artifacts
07612e2
Raw History Blame Contribute Delete
11.8 kB
/* YAZ Care Platform - Modern UI Styles */
:root {
/* Color Palette */
--yaz-primary: #2563eb;
--yaz-primary-50: #eff6ff;
--yaz-primary-100: #dbeafe;
--yaz-primary-500: #3b82f6;
--yaz-primary-600: #2563eb;
--yaz-primary-700: #1d4ed8;
--yaz-primary-900: #1e3a8a;
--yaz-secondary: #64748b;
--yaz-accent: #059669;
--yaz-warning: #f59e0b;
--yaz-error: #ef4444;
--yaz-success: #10b981;
/* Neutral Colors */
--yaz-gray-50: #f8fafc;
--yaz-gray-100: #f1f5f9;
--yaz-gray-200: #e2e8f0;
--yaz-gray-300: #cbd5e1;
--yaz-gray-400: #94a3b8;
--yaz-gray-500: #64748b;
--yaz-gray-600: #475569;
--yaz-gray-700: #334155;
--yaz-gray-800: #1e293b;
--yaz-gray-900: #0f172a;
--yaz-gray-950: #020617;
/* Spacing */
--yaz-spacing-xs: 0.25rem;
--yaz-spacing-sm: 0.5rem;
--yaz-spacing-md: 1rem;
--yaz-spacing-lg: 1.5rem;
--yaz-spacing-xl: 2rem;
--yaz-spacing-2xl: 3rem;
/* Typography */
--yaz-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--yaz-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
/* Shadows */
--yaz-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--yaz-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
--yaz-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--yaz-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
/* Borders */
--yaz-border-radius: 0.5rem;
--yaz-border-radius-lg: 0.75rem;
--yaz-border-radius-xl: 1rem;
/* Transitions */
--yaz-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
--yaz-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Base Styles */
* {
box-sizing: border-box;
}
html {
font-family: var(--yaz-font-sans);
line-height: 1.6;
scroll-behavior: smooth;
}
body {
margin: 0;
color: var(--yaz-gray-900);
background-color: var(--yaz-gray-50);
font-size: 0.875rem;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Layout Components */
.yaz-shell-light {
min-height: 100vh;
background: linear-gradient(135deg, var(--yaz-gray-50) 0%, var(--yaz-primary-50) 100%);
}
.yaz-shell-dark {
min-height: 100vh;
background: linear-gradient(135deg, var(--yaz-gray-950) 0%, var(--yaz-gray-900) 100%);
color: var(--yaz-gray-100);
}
/* Navigation */
.yaz-nav {
backdrop-filter: blur(12px);
background: rgba(255, 255, 255, 0.8);
border-bottom: 1px solid var(--yaz-gray-200);
position: sticky;
top: 0;
z-index: 50;
transition: var(--yaz-transition);
}
.yaz-nav-dark {
background: rgba(15, 23, 42, 0.9);
border-bottom: 1px solid var(--yaz-gray-800);
}
.yaz-nav-link {
padding: 0.5rem 1rem;
border-radius: var(--yaz-border-radius);
color: var(--yaz-gray-600);
text-decoration: none;
font-weight: 500;
transition: var(--yaz-transition);
position: relative;
overflow: hidden;
}
.yaz-nav-link:hover {
color: var(--yaz-primary-600);
background: var(--yaz-primary-50);
transform: translateY(-1px);
}
.yaz-nav-link.active {
color: var(--yaz-primary-600);
background: var(--yaz-primary-100);
font-weight: 600;
}
.yaz-nav-link.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background: var(--yaz-primary-600);
}
/* Sidebar */
.yaz-sidebar {
background: var(--yaz-gray-900);
width: 16rem;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
transition: var(--yaz-transition);
}
.yaz-sidebar-link {
display: block;
padding: 0.75rem 1rem;
margin: 0.125rem 0.75rem;
border-radius: var(--yaz-border-radius);
color: var(--yaz-gray-300);
text-decoration: none;
font-weight: 500;
transition: var(--yaz-transition);
position: relative;
}
.yaz-sidebar-link:hover {
background: var(--yaz-gray-800);
color: var(--yaz-gray-100);
transform: translateX(4px);
}
.yaz-sidebar-link.active {
background: var(--yaz-primary-600);
color: white;
font-weight: 600;
box-shadow: var(--yaz-shadow-md);
}
.yaz-sidebar-link.active::before {
content: '';
position: absolute;
left: -0.75rem;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 2rem;
background: var(--yaz-primary-400);
border-radius: 0 2px 2px 0;
}
/* Cards */
.yaz-card {
background: white;
border-radius: var(--yaz-border-radius-lg);
box-shadow: var(--yaz-shadow-sm);
border: 1px solid var(--yaz-gray-200);
transition: var(--yaz-transition);
overflow: hidden;
}
.yaz-card:hover {
box-shadow: var(--yaz-shadow-md);
transform: translateY(-2px);
border-color: var(--yaz-primary-200);
}
.yaz-card-dark {
background: var(--yaz-gray-800);
border-color: var(--yaz-gray-700);
}
.yaz-card-dark:hover {
background: var(--yaz-gray-750);
border-color: var(--yaz-primary-600);
}
.yaz-card-header {
padding: 1.5rem 1.5rem 1rem;
border-bottom: 1px solid var(--yaz-gray-100);
background: var(--yaz-gray-50);
}
.yaz-card-body {
padding: 1.5rem;
}
.yaz-card-footer {
padding: 1rem 1.5rem;
background: var(--yaz-gray-50);
border-top: 1px solid var(--yaz-gray-100);
}
/* Metrics & KPIs */
.yaz-metric {
font-size: 2rem;
font-weight: 700;
line-height: 1.2;
color: var(--yaz-gray-900);
margin: 0.5rem 0;
}
.yaz-metric-dark {
color: var(--yaz-gray-100);
}
.yaz-metric-label {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--yaz-gray-500);
margin-bottom: 0.25rem;
}
.yaz-metric-delta {
font-size: 0.875rem;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.25rem;
margin-top: 0.25rem;
}
.yaz-delta-positive {
color: var(--yaz-success);
}
.yaz-delta-negative {
color: var(--yaz-error);
}
.yaz-delta-neutral {
color: var(--yaz-gray-500);
}
/* Status Indicators */
.yaz-status {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.025em;
}
.yaz-status-success {
background: var(--yaz-success);
color: white;
}
.yaz-status-warning {
background: var(--yaz-warning);
color: white;
}
.yaz-status-error {
background: var(--yaz-error);
color: white;
}
.yaz-status-info {
background: var(--yaz-primary-500);
color: white;
}
/* Progress Bars */
.yaz-progress {
width: 100%;
height: 0.5rem;
background: var(--yaz-gray-200);
border-radius: 9999px;
overflow: hidden;
}
.yaz-progress-fill {
height: 100%;
border-radius: 9999px;
transition: var(--yaz-transition-slow);
position: relative;
overflow: hidden;
}
.yaz-progress-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-image: linear-gradient(
45deg,
rgba(255, 255, 255, 0.2) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.2) 50%,
rgba(255, 255, 255, 0.2) 75%,
transparent 75%,
transparent
);
background-size: 1rem 1rem;
animation: progress-shine 1s linear infinite;
}
@keyframes progress-shine {
0% { transform: translateX(-1rem); }
100% { transform: translateX(1rem); }
}
/* Forms */
.yaz-input {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid var(--yaz-gray-300);
border-radius: var(--yaz-border-radius);
background: white;
color: var(--yaz-gray-900);
font-size: 0.875rem;
transition: var(--yaz-transition);
}
.yaz-input:focus {
outline: none;
border-color: var(--yaz-primary-500);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.yaz-input-dark {
background: var(--yaz-gray-800);
border-color: var(--yaz-gray-700);
color: var(--yaz-gray-100);
}
.yaz-input-dark:focus {
border-color: var(--yaz-primary-400);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.yaz-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
border: none;
border-radius: var(--yaz-border-radius);
font-size: 0.875rem;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: var(--yaz-transition);
position: relative;
overflow: hidden;
}
.yaz-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.yaz-button-primary {
background: var(--yaz-primary-600);
color: white;
}
.yaz-button-primary:hover:not(:disabled) {
background: var(--yaz-primary-700);
transform: translateY(-1px);
box-shadow: var(--yaz-shadow-md);
}
.yaz-button-secondary {
background: var(--yaz-gray-600);
color: white;
}
.yaz-button-secondary:hover:not(:disabled) {
background: var(--yaz-gray-700);
}
.yaz-button-outline {
background: transparent;
border: 1px solid var(--yaz-gray-300);
color: var(--yaz-gray-700);
}
.yaz-button-outline:hover:not(:disabled) {
background: var(--yaz-gray-50);
border-color: var(--yaz-gray-400);
}
/* Tables */
.yaz-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: var(--yaz-border-radius);
overflow: hidden;
box-shadow: var(--yaz-shadow-sm);
}
.yaz-table-dark {
background: var(--yaz-gray-800);
}
.yaz-table th {
background: var(--yaz-gray-50);
padding: 1rem;
text-align: left;
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--yaz-gray-600);
border-bottom: 1px solid var(--yaz-gray-200);
}
.yaz-table-dark th {
background: var(--yaz-gray-900);
color: var(--yaz-gray-300);
border-color: var(--yaz-gray-700);
}
.yaz-table td {
padding: 1rem;
border-bottom: 1px solid var(--yaz-gray-100);
font-size: 0.875rem;
}
.yaz-table-dark td {
border-color: var(--yaz-gray-700);
color: var(--yaz-gray-200);
}
.yaz-table tbody tr:hover {
background: var(--yaz-gray-50);
}
.yaz-table-dark tbody tr:hover {
background: var(--yaz-gray-750);
}
/* Connection Status */
.connection-status {
width: 0.75rem;
height: 0.75rem;
border-radius: 50%;
border: 2px solid white;
transition: var(--yaz-transition);
}
.status-connected {
background: var(--yaz-success);
box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.status-disconnected {
background: var(--yaz-error);
box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.status-connecting {
background: var(--yaz-warning);
animation: pulse 2s infinite;
}
/* Animations */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.5s ease-out;
}
@keyframes slideIn {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
.animate-slide-in {
animation: slideIn 0.3s ease-out;
}
/* Responsive Design */
@media (max-width: 768px) {
.yaz-sidebar {
transform: translateX(-100%);
position: fixed;
z-index: 40;
}
.yaz-sidebar.open {
transform: translateX(0);
}
.yaz-nav-link {
padding: 0.5rem;
font-size: 0.8rem;
}
.yaz-card {
margin: 0.5rem;
}
.yaz-metric {
font-size: 1.5rem;
}
}
/* Print Styles */
@media print {
.yaz-nav,
.yaz-sidebar {
display: none !important;
}
.yaz-card {
box-shadow: none;
border: 1px solid #ccc;
break-inside: avoid;
}
}
/* Dark Mode Specific */
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
}
}
/* High Contrast Mode */
@media (prefers-contrast: high) {
:root {
--yaz-gray-100: #ffffff;
--yaz-gray-900: #000000;
}
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}