-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (109 loc) · 9.67 KB
/
style.css
File metadata and controls
129 lines (109 loc) · 9.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/* --- Basic Reset, Fonts --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; /* More modern font */ background-color: #f4f5f7; color: #333; display: flex; min-height: 100vh; font-size: 14px; }
/* Dashboard Container & Sidebar (Adapt previous styles, perhaps change colors) */
.dashboard-container { display: flex; width: 100%; }
.sidebar { width: 230px; background-color: #1e293b; /* Dark blue/slate */ color: #cbd5e1; /* Lighter text */ display: flex; flex-direction: column; min-height: 100vh; position: fixed; left: 0; top: 0; bottom: 0; padding-top: 15px; transition: width 0.3s ease; }
.sidebar-header { padding: 15px 20px; text-align: left; border-bottom: 1px solid #334155; margin-bottom: 15px; }
.sidebar-header h3 { margin: 0; font-size: 1.2em; color: #ffffff; font-weight: 600;}
.sidebar-header i { margin-right: 8px; color: #38bdf8; /* Light blue icon */}
.nav-links { list-style: none; padding: 0; flex-grow: 1; }
.nav-links li a { display: flex; align-items: center; color: #cbd5e1; text-decoration: none; padding: 11px 20px; font-size: 0.95rem; transition: all 0.2s ease; border-radius: 6px; margin: 4px 10px; font-weight: 500; }
.nav-links li a i { margin-right: 12px; width: 18px; text-align: center; font-size: 1rem; color: #94a3b8; /* Grey icon */}
.nav-links li a:hover { background-color: #334155; color: #ffffff; }
.nav-links li a.active { background-color: #0ea5e9; /* Brighter blue */ color: #ffffff; font-weight: 600; }
.nav-links li a.active i { color: #ffffff; }
/* Main Content & Header */
.main-content { flex-grow: 1; padding: 25px 30px; margin-left: 230px; background-color: #f4f5f7; transition: margin-left 0.3s ease; }
.main-header { background-color: #ffffff; padding: 15px 25px; margin: -25px -30px 25px -30px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.main-header h1 { color: #1e293b; margin: 0; font-size: 1.5em; font-weight: 600; }
.main-header p { font-size: 0.85em; color: #64748b; margin: 0; }
/* Content Sections */
.content-section { background-color: #ffffff; padding: 25px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); margin-top: 20px; }
.content-section.active { display: block; } /* Keep simple */
.content-section h2 { color: #1e293b; margin-bottom: 20px; font-size: 1.3em; font-weight: 600; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
/* Notification (Use previous styles) */
.notification { position: fixed; top: 80px; right: 20px; padding: 12px 18px; border-radius: 5px; color: #fff; font-weight: bold; z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; min-width: 220px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); font-size: 0.9rem;}
.notification.show { opacity: 1; visibility: visible; }
.notification.success { background-color: #10b981; } /* Green */
.notification.error { background-color: #ef4444; } /* Red */
/* Dashboard Stats Grid & Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); padding: 20px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); text-align: center; border-top: 5px solid #0ea5e9; /* Blue top border */ transition: transform 0.2s ease, box-shadow 0.2s ease;}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); }
/* Specific card colors */
.stat-card.calories-today { border-top-color: #f97316; } /* Orange */
.stat-card.calories-today .stat-icon { color: #f97316; }
.stat-card.streak { border-top-color: #10b981; } /* Green */
.stat-card.streak .stat-icon { color: #10b981; }
.stat-card.next-workout { border-top-color: #6366f1; } /* Indigo */
.stat-card.next-workout .stat-icon { color: #6366f1; }
.stat-icon { font-size: 2em; color: #0ea5e9; margin-bottom: 10px; }
.stat-card h4 { margin-bottom: 8px; color: #475569; font-size: 0.9em; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px;}
.stat-value { font-size: 2em; font-weight: 700; color: #1e293b; line-height: 1.1;}
.stat-value.small-text { font-size: 1.2em; line-height: 1.3;} /* For longer text like plan names */
.stat-card small { font-size: 0.75em; color: #94a3b8; display: block; margin-top: 3px;}
/* Today's Focus Section */
.today-focus { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 30px; }
.today-focus h3 { margin-top: 0; margin-bottom: 15px; color: #1e293b; font-size: 1.1em; font-weight: 600; }
.today-workout-info p { color: #64748b; }
.today-workout-info strong { color: #0ea5e9; }
/* Chart Placeholder */
.chart-container { margin-top: 30px; background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.chart-container h3 { margin-bottom: 15px; color: #1e293b; font-weight: 600; font-size: 1.1em; }
.chart-placeholder { border: 1px dashed #cbd5e1; padding: 50px 20px; text-align: center; color: #64748b; background-color: #f8fafc; border-radius: 6px; min-height: 220px; display: flex; align-items: center; justify-content: center; font-size: 0.9em;}
/* Workout Log Table */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9rem; }
thead { background-color: #f1f5f9; color: #475569; border-bottom: 2px solid #e2e8f0;}
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
tbody tr:hover { background-color: #f8fafc; }
th { font-weight: 600; }
td .btn { margin-right: 5px; }
td .notes-cell { max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #64748b;}
/* Workout Plans List */
.plans-list-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.plan-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; background-color: #f8fafc; transition: box-shadow 0.2s ease;}
.plan-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.plan-card h3 { margin-top: 0; margin-bottom: 10px; color: #1e293b; font-size: 1.1em; }
.plan-card p { font-size: 0.9em; color: #64748b; margin-bottom: 15px; }
.plan-card .plan-meta { font-size: 0.85em; color: #94a3b8; margin-bottom: 15px;}
.plan-card .plan-meta span { margin-right: 15px; }
.plan-card .plan-meta i { margin-right: 5px; }
/* Progress Section */
.progress-details { margin-top: 20px; }
.pb-tracker { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e2e8f0;}
.pb-tracker h3 { margin-bottom: 10px; font-size: 1.1em; color: #1e293b;}
/* Buttons (Adapt style) */
.btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background-color 0.2s ease, box-shadow 0.2s ease; line-height: 1.5; }
.btn i { line-height: 1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background-color: #0ea5e9; color: white; }
.btn-primary:hover { background-color: #0284c7;}
.btn-secondary { background-color: #e2e8f0; color: #334155; }
.btn-secondary:hover { background-color: #cbd5e1;}
.btn-success { background-color: #10b981; color: white; }
.btn-success:hover { background-color: #059669;}
.btn-danger { background-color: #ef4444; color: white; }
.btn-danger:hover { background-color: #dc2626;}
.btn-warning { background-color: #f59e0b; color: white; }
.btn-info { background-color: #3b82f6; color: white; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
/* Modal Styles (Adapt style) */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(15, 23, 42, 0.6); /* Darker overlay */ animation: fadeIn 0.3s ease-out; }
.modal-content { background-color: #ffffff; margin: 5% auto; padding: 0; border: none; width: 90%; max-width: 550px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); position: relative; animation: slideIn 0.3s ease-out; display: flex; flex-direction: column; }
.modal-content h2 { font-size: 1.2rem; font-weight: 600; color: #1e293b; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; text-align: center; margin: 0; }
.close-button { color: #94a3b8; position: absolute; top: 8px; right: 8px; font-size: 1.8em; font-weight: bold; cursor: pointer; background-color: #f1f5f9; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.close-button:hover, .close-button:focus { background-color: #e2e8f0; color: #1e293b; }
.modal-content form { padding: 25px; flex-grow: 1; overflow-y: auto; }
/* Form Styles */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #475569; font-size: 0.9rem; }
.form-group input[type="text"], .form-group input[type="date"], .form-group input[type="number"], .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.95rem; background-color: #ffffff; }
.form-group textarea { resize: vertical; min-height: 70px;}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); outline: none; }
.form-actions { margin-top: 25px; text-align: right; border-top: 1px solid #e2e8f0; padding: 16px 20px; background-color: #f8fafc; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;}
.form-actions .btn { margin-left: 10px; }
.form-row { display: flex; gap: 15px; }
.form-column { flex: 1; }
.form-group small { font-size: 0.8rem; color: #94a3b8; margin-top: 4px; display: block;}