e629a20cec
CSS: - Dark background (#0a0a0f, #0d0d12, #15151b) - Orange accent (#ff6b35) - Muted text (#a1a1aa, #71717a) - Inter font from Google Fonts - Workout type colors (push/pull/legs/etc) Dashboard: - Calendar dots are CSS circles, not emoji - Coach avatar uses SVG icon - All emojis replaced with Icons.jsx SVGs - Navigation uses proper icons WorkoutPage: - Warmup exercises without emojis - Check icons instead of emoji checkmarks - Arrow icons for navigation - Fire icon for warmup section Professional fitness app aesthetic inspired by Nike/FITBOD
1786 lines
28 KiB
CSS
1786 lines
28 KiB
CSS
.app {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.app.loading {
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
background: var(--bg-secondary);
|
|
padding: 1rem 1.25rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.week-selector {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.week-selector button {
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
font-size: 1.1rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.week-selector button:hover:not(:disabled) {
|
|
background: var(--accent);
|
|
}
|
|
|
|
.week-selector button:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.week-selector span {
|
|
font-weight: 600;
|
|
min-width: 80px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Main */
|
|
.main {
|
|
flex: 1;
|
|
padding: 1rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Program Info */
|
|
.program-info {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.program-info h2 {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.program-info p {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Days List */
|
|
.days-list h3 {
|
|
font-size: 1rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.day-card {
|
|
background: var(--bg-card);
|
|
border-radius: 12px;
|
|
padding: 1rem;
|
|
margin-bottom: 0.75rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.day-card:hover {
|
|
background: var(--bg-card-hover);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.day-card:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.day-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.day-number {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.day-name {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.day-exercises {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.exercise-tag {
|
|
background: var(--bg-secondary);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.exercise-tag.more {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.day-action {
|
|
text-align: right;
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Workout View */
|
|
.workout-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.back-btn {
|
|
background: none;
|
|
color: var(--accent);
|
|
font-size: 0.9rem;
|
|
padding: 0.25rem 0;
|
|
}
|
|
|
|
.header-title h1 {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.header-subtitle {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Exercise Card */
|
|
.exercise-card {
|
|
background: var(--bg-card);
|
|
border-radius: 12px;
|
|
margin-bottom: 0.75rem;
|
|
overflow: hidden;
|
|
border: 1px solid transparent;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.exercise-card.expanded {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.exercise-header {
|
|
padding: 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.exercise-info h3 {
|
|
font-size: 1rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.muscle-group {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.exercise-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.sets-info {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.progress-badge {
|
|
background: var(--bg-secondary);
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 10px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.progress-badge.complete {
|
|
background: var(--success);
|
|
color: var(--bg-primary);
|
|
}
|
|
|
|
/* Exercise Body */
|
|
.exercise-body {
|
|
padding: 0 1rem 1rem;
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.progression-hint {
|
|
background: rgba(233, 69, 96, 0.1);
|
|
border: 1px solid var(--accent);
|
|
border-radius: 8px;
|
|
padding: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.progression-hint strong {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Sets List */
|
|
.sets-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.set-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.set-row.completed {
|
|
background: rgba(78, 204, 163, 0.15);
|
|
border: 1px solid var(--success);
|
|
}
|
|
|
|
.set-number {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
min-width: 45px;
|
|
}
|
|
|
|
.set-inputs {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.weight-input,
|
|
.reps-input {
|
|
width: 70px;
|
|
padding: 0.6rem;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.weight-input:focus,
|
|
.reps-input:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.input-separator {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.complete-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 50%;
|
|
background: var(--bg-card);
|
|
color: var(--text-secondary);
|
|
font-size: 1.25rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.complete-btn:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.complete-btn.done {
|
|
background: var(--success);
|
|
color: var(--bg-primary);
|
|
}
|
|
|
|
/* Mobile optimizations */
|
|
@media (max-width: 480px) {
|
|
.header {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.main {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.weight-input,
|
|
.reps-input {
|
|
width: 60px;
|
|
padding: 0.5rem;
|
|
}
|
|
}
|
|
|
|
/* Safe area for notched phones */
|
|
@supports (padding: env(safe-area-inset-bottom)) {
|
|
.main {
|
|
padding-bottom: calc(1rem + env(safe-area-inset-bottom));
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
DASHBOARD STYLES
|
|
============================================ */
|
|
|
|
.dashboard {
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.dashboard.loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Dashboard Header */
|
|
.dashboard-header {
|
|
background: var(--bg-secondary);
|
|
padding: 1rem 1.25rem;
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-top h1 {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.nav-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.nav-btn:hover,
|
|
.nav-btn.active {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-btn.logout {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Dashboard Main */
|
|
.dashboard-main {
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Coach Greeting */
|
|
.coach-greeting {
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
|
|
border-radius: 16px;
|
|
color: white;
|
|
}
|
|
|
|
.coach-avatar {
|
|
width: 52px;
|
|
height: 52px;
|
|
background: rgba(255,255,255,0.15);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
color: rgba(255,255,255,0.9);
|
|
}
|
|
|
|
.coach-message {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.coach-message p {
|
|
font-size: 1.1rem;
|
|
font-weight: 500;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Week Calendar */
|
|
.week-calendar {
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
padding: 1rem;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.calendar-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.calendar-title {
|
|
font-weight: 600;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.calendar-nav {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.calendar-nav:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.calendar-days {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.calendar-day {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0.5rem;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.calendar-day:hover {
|
|
background: var(--bg);
|
|
}
|
|
|
|
.calendar-day.today {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
|
|
.day-name {
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.calendar-day.today .day-name {
|
|
color: rgba(255,255,255,0.8);
|
|
}
|
|
|
|
.day-date {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.day-dot {
|
|
width: 4px;
|
|
height: 4px;
|
|
border-radius: 50%;
|
|
background: var(--success);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.calendar-day.today .day-dot {
|
|
background: rgba(255,255,255,0.8);
|
|
}
|
|
|
|
/* Today's Workout */
|
|
.todays-workout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.todays-workout h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.workout-card {
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
padding: 1.25rem;
|
|
border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.workout-card:hover {
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.workout-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.workout-card-header h3 {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.workout-duration {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.workout-exercises {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.exercise-preview {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.exercise-preview:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.exercise-name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.exercise-sets {
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.start-workout-btn {
|
|
width: 100%;
|
|
background: var(--accent);
|
|
color: white;
|
|
border: none;
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.start-workout-btn:hover {
|
|
background: var(--accent-hover);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
/* Rest Day Card */
|
|
.rest-day-card {
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
border: 1px solid var(--border);
|
|
text-align: center;
|
|
}
|
|
|
|
.rest-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.rest-day-card h3 {
|
|
font-size: 1.2rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.rest-day-card p {
|
|
color: var(--text-muted);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.rest-tips {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.rest-tips span {
|
|
background: var(--bg);
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Quick Stats */
|
|
.quick-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
padding: 1rem;
|
|
text-align: center;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.stat-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Brand title with icon */
|
|
.brand-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Upcoming Workouts */
|
|
.upcoming-workouts h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.upcoming-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.upcoming-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
background: var(--bg-secondary);
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.upcoming-item:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.upcoming-day {
|
|
font-weight: 600;
|
|
width: 40px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.upcoming-name {
|
|
flex: 1;
|
|
}
|
|
|
|
.upcoming-arrow {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ============================================
|
|
PROFILE PAGE STYLES
|
|
============================================ */
|
|
|
|
.profile-page,
|
|
.progress-page {
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.profile-page.loading,
|
|
.progress-page.loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Page Header */
|
|
.page-header {
|
|
background: var(--bg-secondary);
|
|
padding: 1rem 1.25rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.back-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--accent);
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
padding: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
/* Page Main */
|
|
.page-main {
|
|
padding: 1rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
/* Profile Section */
|
|
.profile-section {
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
padding: 1.25rem;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.edit-btn {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Info Grid */
|
|
.info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Edit Form */
|
|
.edit-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select {
|
|
padding: 0.75rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.cancel-btn {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
}
|
|
|
|
.save-btn {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
border: none;
|
|
background: var(--accent);
|
|
color: white;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.save-btn:disabled {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Measurements Grid */
|
|
.measurements-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.measurement-card {
|
|
background: var(--bg);
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.measurement-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.measurement-value {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.measurement-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Strength Grid */
|
|
.strength-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.strength-card {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 1rem;
|
|
background: var(--bg);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.strength-exercise {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.strength-value {
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.no-data {
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* ============================================
|
|
PROGRESS PAGE STYLES
|
|
============================================ */
|
|
|
|
.progress-tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
background: var(--bg-secondary);
|
|
padding: 0.5rem;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.tab-btn:hover:not(.active) {
|
|
background: var(--bg);
|
|
}
|
|
|
|
/* Chart Section */
|
|
.chart-section {
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
padding: 1.25rem;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.chart-section h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.chart-container {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.line-chart {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.chart-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
/* Strength Charts */
|
|
.strength-charts {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.strength-chart-item h3 {
|
|
font-size: 1rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
/* Progress Stats */
|
|
.progress-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 0.5rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.progress-stats .stat-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.progress-stats .stat-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.progress-stats .stat-value {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.trend-up {
|
|
color: #10b981;
|
|
}
|
|
|
|
.trend-down {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.trend-neutral {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 3rem;
|
|
display: block;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.empty-state p {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-hint {
|
|
font-size: 0.85rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* ============================================
|
|
WORKOUT PAGE STYLES
|
|
============================================ */
|
|
|
|
.workout-page {
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.workout-page .page-header {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.workout-page .header-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.workout-page .header-center h1 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.workout-page .header-subtitle {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.workout-page .header-progress {
|
|
background: var(--accent);
|
|
color: white;
|
|
padding: 0.4rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.workout-page .workout-main {
|
|
padding-bottom: 2rem;
|
|
}
|
|
|
|
/* Progress Bar */
|
|
.workout-progress-bar {
|
|
height: 4px;
|
|
background: var(--border);
|
|
border-radius: 2px;
|
|
margin-bottom: 1.5rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.workout-progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--accent), var(--success));
|
|
border-radius: 2px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
/* Uppvärmningssektion */
|
|
.warmup-section {
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
border: 1px solid var(--border);
|
|
margin-bottom: 1.5rem;
|
|
overflow: hidden;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.warmup-section.completed {
|
|
border-color: var(--success);
|
|
background: rgba(78, 204, 163, 0.05);
|
|
}
|
|
|
|
.warmup-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.25rem;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.warmup-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.warmup-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.warmup-title h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.warmup-progress {
|
|
background: var(--bg);
|
|
padding: 0.25rem 0.6rem;
|
|
border-radius: 12px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.expand-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--text-muted);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.expand-icon.expanded {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.warmup-content {
|
|
padding: 0 1.25rem 1.25rem;
|
|
}
|
|
|
|
.warmup-category {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.warmup-category:last-of-type {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.warmup-category h3 {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.warmup-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.warmup-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
background: var(--bg);
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.warmup-item:hover {
|
|
background: var(--bg-card-hover, var(--bg));
|
|
}
|
|
|
|
.warmup-item.done {
|
|
background: rgba(78, 204, 163, 0.15);
|
|
}
|
|
|
|
.warmup-item.done .warmup-name {
|
|
text-decoration: line-through;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.warmup-check {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
background: var(--bg-secondary);
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.warmup-item.done .warmup-check {
|
|
background: var(--success);
|
|
color: white;
|
|
}
|
|
|
|
.warmup-item-icon {
|
|
font-size: 1.1rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.warmup-name {
|
|
flex: 1;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.warmup-duration {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.warmup-done-btn {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
background: var(--bg);
|
|
border: 2px dashed var(--border);
|
|
border-radius: 12px;
|
|
color: var(--text-muted);
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.warmup-done-btn:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.warmup-done-btn.completed {
|
|
background: var(--success);
|
|
border: none;
|
|
color: white;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Övningssektion */
|
|
.exercises-section {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.exercises-section h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Exercise Card utökad */
|
|
.exercise-card.all-done {
|
|
border-color: var(--success);
|
|
background: rgba(78, 204, 163, 0.05);
|
|
}
|
|
|
|
.exercise-card.all-done .exercise-info h3::after {
|
|
content: ' ✓';
|
|
color: var(--success);
|
|
}
|
|
|
|
/* Avsluta pass knapp */
|
|
.finish-workout-btn {
|
|
width: 100%;
|
|
padding: 1.25rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
color: var(--text-muted);
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.finish-workout-btn:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.finish-workout-btn.ready {
|
|
background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
|
|
border: none;
|
|
color: white;
|
|
font-weight: 600;
|
|
animation: pulse-glow 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse-glow {
|
|
0%, 100% {
|
|
box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.4);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 20px 5px rgba(233, 69, 96, 0.2);
|
|
}
|
|
}
|
|
|
|
/* Mobile optimeringar för WorkoutPage */
|
|
@media (max-width: 480px) {
|
|
.workout-page .page-header {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.workout-page .header-center h1 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.warmup-item {
|
|
padding: 0.6rem;
|
|
}
|
|
|
|
.warmup-name {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
WORKOUT LIST (when no today's workout)
|
|
============================================ */
|
|
|
|
.workout-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.workout-card.compact {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.workout-card.compact .workout-card-header {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.workout-card.compact .workout-card-header h3 {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.workout-day {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
background: var(--bg);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.workout-exercises.compact {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.exercise-tag {
|
|
background: var(--bg);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.exercise-tag.more {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
/* ============================================
|
|
DASHBOARD COACH SECTION (redesigned)
|
|
============================================ */
|
|
|
|
.coach-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.today-action {
|
|
/* Container for workout card or rest tips */
|
|
}
|
|
|
|
.today-workout-card {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
|
|
border-radius: 16px;
|
|
padding: 1.25rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
color: white;
|
|
}
|
|
|
|
.today-workout-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.workout-info h3 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.workout-meta {
|
|
font-size: 0.85rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.workout-action {
|
|
background: rgba(255,255,255,0.2);
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.action-arrow {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* Rest Day Section */
|
|
.rest-day-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.rest-tips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.tip-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.add-workout-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
background: var(--bg-secondary);
|
|
border: 2px dashed var(--border);
|
|
border-radius: 16px;
|
|
padding: 1.25rem;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
transition: all 0.2s;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.add-workout-btn:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
background: var(--bg);
|
|
}
|
|
|
|
.add-icon {
|
|
font-size: 1.5rem;
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* ============================================
|
|
WORKOUT SELECT PAGE
|
|
============================================ */
|
|
|
|
.select-page {
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.select-page.loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.select-main {
|
|
padding: 1rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.select-intro {
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
margin-bottom: 1.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.workout-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.workout-select-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
background: var(--bg-secondary);
|
|
border: 2px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.workout-select-card:hover {
|
|
border-color: var(--workout-color, var(--accent));
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
.workout-select-card.selected {
|
|
border-color: var(--workout-color, var(--accent));
|
|
background: var(--bg);
|
|
}
|
|
|
|
.workout-icon {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.workout-details {
|
|
flex: 1;
|
|
}
|
|
|
|
.workout-details h3 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.workout-exercises-count {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.workout-preview {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.preview-exercise {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
background: var(--bg);
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.preview-more {
|
|
font-size: 0.75rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.selected-indicator {
|
|
position: absolute;
|
|
top: -8px;
|
|
right: -8px;
|
|
width: 28px;
|
|
height: 28px;
|
|
background: var(--workout-color, var(--accent));
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.select-action {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 1rem;
|
|
background: var(--bg);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.start-btn {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
display: block;
|
|
padding: 1rem;
|
|
background: var(--accent);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 12px;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.start-btn:hover {
|
|
background: var(--accent-hover);
|
|
transform: scale(1.02);
|
|
}
|