38671-vm/assets/css/custom.css
Flatlogic Bot 1cb0064488 mb v1
2026-02-21 16:48:44 +00:00

224 lines
4.8 KiB
CSS

:root {
--primary: #3b82f6;
--primary-hover: #2563eb;
--bg: #0f172a;
--surface: #1e293b;
--border: #334155;
--text: #f8fafc;
--text-muted: #94a3b8;
--success: #10b981;
--info: #06b6d4;
--warning: #f59e0b;
--radius: 16px;
--card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
* {
-webkit-tap-highlight-color: transparent;
box-sizing: border-box;
}
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background-color: var(--bg);
color: var(--text);
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
/* Prevent rubber-banding on iOS if needed, but usually better to let it be */
}
/* App Shell Structure */
.app-shell {
display: flex;
flex-direction: column;
min-height: 100vh;
max-width: 480px;
margin: 0 auto;
background: var(--bg);
position: relative;
}
.app-bar {
position: sticky;
top: 0;
z-index: 1000;
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
padding-top: calc(8px + env(safe-area-inset-top));
}
.app-content {
flex: 1;
padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
}
/* Bottom Navigation */
.bottom-nav {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
max-width: 480px;
height: calc(70px + env(safe-area-inset-bottom));
background: rgba(30, 41, 59, 0.95);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-top: 1px solid var(--border);
display: flex;
justify-content: space-around;
align-items: center;
padding-bottom: env(safe-area-inset-bottom);
z-index: 1050;
}
.bottom-nav .nav-item {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: var(--text-muted);
font-size: 0.65rem;
font-weight: 500;
transition: all 0.2s;
flex: 1;
padding: 8px 0;
}
.bottom-nav .nav-item svg {
margin-bottom: 4px;
width: 24px;
height: 24px;
transition: transform 0.2s ease;
}
.bottom-nav .nav-item.active {
color: var(--primary);
}
.bottom-nav .nav-item.active svg {
transform: translateY(-2px);
stroke: var(--primary);
}
/* Cards & Stats */
.card-stat {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 16px;
box-shadow: var(--card-shadow);
}
.stat-label {
font-size: 0.7rem;
color: var(--text-muted);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stat-value {
font-size: 1.75rem;
font-weight: 700;
margin: 4px 0;
color: var(--text);
}
.progress-thin {
height: 8px;
background-color: var(--border);
border-radius: 10px;
overflow: hidden;
margin-top: 8px;
}
.progress-bar-inner {
height: 100%;
background-color: var(--primary);
transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary-custom {
background-color: var(--primary);
color: white;
border: none;
border-radius: var(--radius);
padding: 16px 24px;
font-weight: 700;
width: 100%;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary-custom:active {
transform: scale(0.98);
}
.log-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
background: var(--surface);
border-radius: var(--radius);
margin-bottom: 10px;
border: 1px solid var(--border);
}
.modal-content {
background-color: var(--surface);
border-radius: 24px;
border: 1px solid var(--border);
}
.form-control {
background-color: var(--bg);
border-radius: 12px;
border: 1px solid var(--border);
padding: 14px 16px;
color: var(--text);
font-size: 1rem; /* Prevent zoom on iOS */
}
/* Custom Utilities */
.x-small { font-size: 0.75rem; }
.text-info { color: var(--info) !important; }
.text-warning { color: var(--warning) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-warning { background-color: var(--warning) !important; }
#reminders-row::-webkit-scrollbar { display: none; }
/* Supplement buttons */
.supplement-toggle-btn {
border-radius: 12px !important;
font-weight: 600 !important;
padding: 8px 16px !important;
}
/* Gallery adjustments */
#gallery-container .card {
border-radius: var(--radius);
overflow: hidden;
border: 1px solid var(--border);
background: var(--surface);
}
/* Hide Bootstrap Tab Nav as we use Bottom Nav now */
#mainTab {
display: none !important;
}
@media (min-width: 481px) {
body {
background-color: #000;
}
.app-shell {
box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
}