189 lines
4.0 KiB
CSS
189 lines
4.0 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
:root {
|
|
/* Color Palette */
|
|
--bg-primary: #0f172a;
|
|
--bg-secondary: #1e293b;
|
|
--bg-tertiary: #334155;
|
|
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #94a3b8;
|
|
--text-muted: #64748b;
|
|
|
|
--accent-primary: #3b82f6; /* Blue for water / main */
|
|
--accent-secondary: #8b5cf6; /* Purple for aesthetic */
|
|
--accent-success: #10b981; /* Green for macros */
|
|
--accent-warning: #f59e0b; /* Orange */
|
|
--accent-danger: #ef4444; /* Red */
|
|
|
|
--macro-protein: #8b5cf6;
|
|
--macro-fat: #f59e0b;
|
|
--macro-carbs: #10b981;
|
|
--water-color: #3b82f6;
|
|
|
|
--border-color: rgba(255, 255, 255, 0.1);
|
|
--glass-bg: rgba(30, 41, 59, 0.7);
|
|
--glass-border: rgba(255, 255, 255, 0.05);
|
|
|
|
--font-family: 'Inter', sans-serif;
|
|
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 24px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family);
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#root {
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
background-color: var(--bg-primary);
|
|
box-shadow: none;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
#root {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
/* Utilities */
|
|
.glass-card {
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 20px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.flex-center {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.flex-between {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.text-gradient {
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
/* Form Elements */
|
|
input, select, button {
|
|
font-family: inherit;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.input-field {
|
|
width: 100%;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-md);
|
|
margin-bottom: 16px;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.input-field:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
color: white;
|
|
border: none;
|
|
padding: 14px 20px;
|
|
border-radius: var(--radius-md);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.btn-secondary {
|
|
width: 100%;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border: none;
|
|
padding: 14px 20px;
|
|
border-radius: var(--radius-md);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.animate-fade-in {
|
|
animation: fadeIn 0.5s ease forwards;
|
|
}
|
|
|
|
/* Page Container */
|
|
.page-container {
|
|
padding: 24px;
|
|
padding-bottom: 90px; /* Space for bottom nav on mobile */
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.page-container {
|
|
padding: 40px;
|
|
padding-left: 120px; /* Space for sidebar */
|
|
padding-bottom: 40px;
|
|
}
|
|
}
|
|
|
|
/* Typography */
|
|
h1 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
|
|
h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
|
|
h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
|
|
p { color: var(--text-secondary); margin-bottom: 12px; }
|