Files
HydroFlux/css/style.css
2026-02-04 20:56:57 +11:00

641 lines
13 KiB
CSS

:root {
/* Futuristic Palette */
--bg-dark: #050508;
--bg-panel: rgba(20, 20, 35, 0.4);
--primary-cyan: #00f3ff;
--secondary-purple: #bc13fe;
--text-main: #e0e0e0;
--text-muted: #8a8a9b;
--glass-border: rgba(255, 255, 255, 0.08);
--neon-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
/* Spacing */
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
/* Font */
--font-heading: 'Orbitron', sans-serif;
--font-body: 'Outfit', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
/* Remove mobile tap highlight */
}
body {
background-color: var(--bg-dark);
color: var(--text-main);
font-family: var(--font-body);
height: 100vh;
overflow: hidden;
background-image:
radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.1) 0%, transparent 40%),
radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.08) 0%, transparent 40%);
}
#app {
display: flex;
flex-direction: column;
height: 100%;
}
/* Typography */
h1,
h2,
h3 {
font-family: var(--font-heading);
letter-spacing: 1px;
}
.glow-text {
text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}
.highlight {
color: var(--primary-cyan);
}
/* Glassmorphism Utilities */
.glass-header {
background: rgba(5, 5, 8, 0.7);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
padding: var(--spacing-md);
border-bottom: 1px solid var(--glass-border);
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 10;
}
.glass-panel {
background: var(--bg-panel);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--glass-border);
border-radius: 20px;
padding: var(--spacing-lg);
margin: var(--spacing-md);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.glass-nav {
background: rgba(10, 10, 16, 0.8);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-top: 1px solid var(--glass-border);
padding: var(--spacing-md) var(--spacing-lg);
display: flex;
justify-content: space-around;
position: fixed;
bottom: 0;
width: 100%;
padding-bottom: max(16px, env(safe-area-inset-bottom));
/* Safe area for iOS */
}
/* Content Area */
#main-content {
flex: 1;
overflow-y: auto;
padding-bottom: 80px;
/* Space for nav */
}
/* Interactive Elements */
.nav-btn {
background: none;
border: none;
color: var(--text-muted);
padding: 10px;
border-radius: 50%;
transition: all 0.3s ease;
cursor: pointer;
}
.nav-btn.active {
color: var(--primary-cyan);
background: rgba(0, 243, 255, 0.1);
box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}
.nav-btn svg {
display: block;
}
/* Animations */
@keyframes pulse-glow {
0% {
box-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}
50% {
box-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
}
100% {
box-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}
}
/* --- Water Tracker Module Styles --- */
.water-tracker-container {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--spacing-lg);
}
.circle-container {
position: relative;
width: 250px;
height: 250px;
border-radius: 50%;
border: 4px solid var(--bg-panel);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
overflow: hidden;
/* Clips the wave */
background: rgba(0, 0, 0, 0.3);
}
.water-circle {
width: 100%;
height: 100%;
position: relative;
}
/* Wave Animation */
.wave {
position: absolute;
top: 100%;
/* Dynamic */
left: -50%;
width: 200%;
height: 200%;
background: rgba(0, 243, 255, 0.4);
border-radius: 40%;
animation: rotate 6s linear infinite;
transition: top 1s ease-in-out;
}
.wave::before {
content: "";
position: absolute;
top: 5px;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 243, 255, 0.3);
/* Lighter top layer */
border-radius: 40%;
animation: rotate 10s linear infinite reverse;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.circle-content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 2;
/* Above wave */
pointer-events: none;
}
.water-percentage {
font-family: var(--font-heading);
font-size: 3rem;
font-weight: 700;
color: #fff;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.water-label {
font-size: 0.8rem;
letter-spacing: 2px;
color: rgba(255, 255, 255, 0.7);
margin-top: -5px;
}
.stats-row {
font-family: var(--font-heading);
font-size: 1.2rem;
color: var(--primary-cyan);
}
/* Controls */
.controls-area {
width: 100%;
display: flex;
flex-direction: column;
gap: var(--spacing-md);
align-items: center;
}
.bottle-selector {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.9rem;
color: var(--text-muted);
}
.bottle-selector input {
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--primary-cyan);
color: var(--primary-cyan);
padding: 10px;
border-radius: 12px;
font-family: var(--font-heading);
width: 80px;
text-align: center;
font-size: 1.1rem;
outline: none;
box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}
.bottle-selector input:focus {
box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}
.action-buttons {
display: flex;
align-items: center;
gap: 20px;
margin-top: 10px;
}
.icon-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--glass-border);
color: var(--text-muted);
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-btn.secondary {
border-color: rgba(255, 50, 50, 0.3);
color: #ff4d4d;
}
.icon-btn:active {
transform: scale(0.9);
}
.glow-btn {
position: relative;
background: rgba(0, 243, 255, 0.1);
border: 1px solid var(--primary-cyan);
color: var(--primary-cyan);
font-family: var(--font-heading);
font-size: 1.1rem;
font-weight: 700;
padding: 0 40px;
height: 60px;
border-radius: 30px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 0 10px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
text-transform: uppercase;
letter-spacing: 2px;
overflow: hidden;
}
.glow-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), transparent);
transition: 0.5s;
}
.glow-btn:hover {
background: rgba(0, 243, 255, 0.2);
box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
color: #fff;
text-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
}
.glow-btn:hover::before {
left: 100%;
}
.glow-btn:active {
transform: scale(0.98);
}
.glow-btn svg {
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}
/* --- Streak Module Styles --- */
.streak-container {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--spacing-lg);
text-align: center;
}
.section-title {
font-size: 1.2rem;
color: var(--secondary-purple);
letter-spacing: 4px;
margin-bottom: 20px;
}
.streak-counter {
background: radial-gradient(circle, rgba(188, 19, 254, 0.1) 0%, transparent 70%);
padding: 40px;
border-radius: 50%;
margin-bottom: 20px;
}
.streak-days {
font-family: var(--font-heading);
font-size: 6rem;
color: white;
line-height: 1;
text-shadow: 0 0 20px rgba(188, 19, 254, 0.6);
}
.streak-label {
font-size: 1.5rem;
color: var(--text-muted);
letter-spacing: 5px;
}
.streak-detail {
font-size: 1rem;
color: var(--primary-cyan);
margin-top: 10px;
}
.quote-card {
background: rgba(255, 255, 255, 0.05);
border-left: 3px solid var(--primary-cyan);
padding: 20px;
font-style: italic;
color: #dedede;
margin: 20px 0;
line-height: 1.6;
max-width: 300px;
}
.danger-btn {
position: relative;
background: rgba(255, 50, 50, 0.1);
border: 1px solid #ff4d4d;
color: #ff4d4d;
font-family: var(--font-heading);
padding: 15px 40px;
border-radius: 30px;
cursor: pointer;
font-size: 1rem;
letter-spacing: 2px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
margin-top: 30px;
box-shadow: 0 0 10px rgba(255, 50, 50, 0.2), inset 0 0 20px rgba(255, 50, 50, 0.1);
text-transform: uppercase;
font-weight: 700;
}
.danger-btn:hover {
background: rgba(255, 50, 50, 0.2);
box-shadow: 0 0 30px rgba(255, 50, 50, 0.6);
color: #fff;
text-shadow: 0 0 8px rgba(255, 50, 50, 0.8);
transform: translateY(-2px);
}
.danger-btn:active {
transform: scale(0.95);
}
/* --- Connect Button (Neon Cyan Variant) --- */
.connect-glow-btn {
position: relative;
background: rgba(0, 243, 255, 0.1);
border: 1px solid var(--primary-cyan);
color: var(--primary-cyan);
font-family: var(--font-heading);
padding: 8px 24px;
border-radius: 20px;
cursor: pointer;
font-size: 0.9rem;
letter-spacing: 1px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 0 10px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
text-transform: uppercase;
font-weight: 700;
}
.connect-glow-btn:hover {
background: rgba(0, 243, 255, 0.2);
box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
color: #fff;
text-shadow: 0 0 5px rgba(0, 243, 255, 0.8);
transform: translateY(-1px);
}
.connect-glow-btn:active {
transform: scale(0.95);
}
/* --- Concentric Rings --- */
.rings-wrapper {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 20px;
background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
padding: 20px;
border-radius: 50%;
}
.concentric-svg {
width: 200px;
height: 200px;
transform: rotate(-90deg);
}
.ring-bg {
fill: none;
stroke: rgba(255, 255, 255, 0.05);
/* Proper track color */
}
.ring-progress {
fill: none;
stroke-linecap: round;
transition: stroke-dashoffset 1.5s ease-in-out;
}
.ring-progress.cyan {
stroke: var(--primary-cyan);
filter: drop-shadow(0 0 5px var(--primary-cyan));
}
.ring-progress.purple {
stroke: var(--secondary-purple);
filter: drop-shadow(0 0 5px var(--secondary-purple));
}
.rings-legend {
display: flex;
gap: 20px;
margin-top: 15px;
}
.legend-item {
font-size: 0.8rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 8px;
letter-spacing: 1px;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.dot.cyan {
background: var(--primary-cyan);
box-shadow: 0 0 5px var(--primary-cyan);
}
.dot.purple {
background: var(--secondary-purple);
box-shadow: 0 0 5px var(--secondary-purple);
}
/* --- Combined Stat Card & Charts --- */
.stat-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.stat-label {
font-size: 0.8rem;
color: var(--text-muted);
letter-spacing: 2px;
margin-bottom: 5px;
display: block;
}
.stat-value {
font-family: var(--font-heading);
font-size: 2rem;
color: #fff;
line-height: 1;
}
.stat-sub {
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.5);
margin-top: 5px;
}
.icon-box {
width: 40px;
height: 40px;
border-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
}
.cyan-box {
background: rgba(0, 243, 255, 0.1);
color: var(--primary-cyan);
}
.purple-box {
background: rgba(188, 19, 254, 0.1);
color: var(--secondary-purple);
}
.chart-divider {
height: 1px;
background: rgba(255, 255, 255, 0.1);
margin: 20px 0;
}
/* Re-using chart styles but refining for the box */
.chart-container.small {
height: 100px;
margin-top: 0;
border-bottom: none;
padding-bottom: 0;
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.chart-column {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.chart-bar {
width: 6px;
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
transition: height 1s ease-out;
}
.chart-bar.cyan {
background: var(--primary-cyan);
box-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}
.chart-bar.purple {
background: var(--secondary-purple);
box-shadow: 0 0 5px rgba(188, 19, 254, 0.3);
}
.chart-day {
margin-top: 8px;
font-size: 0.6rem;
color: var(--text-muted);
}