-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (88 loc) · 6.99 KB
/
style.css
File metadata and controls
107 lines (88 loc) · 6.99 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
:root {
--bg-color: #fcfaf8;
--card-bg: #ffffff;
--primary: #d4a373;
--primary-light: #faedcd;
--text-main: #343a40;
--text-muted: #6c757d;
--border: #e9ecef;
--fertile-high: #83c5be;
--fertile-moderate: #f5a623;
--fertile-low: #5b9bd5;
--period: #e29578;
--unknown: #e9ecef;
--shadow: 0 4px 24px rgba(0,0,0,0.04);
--shadow-hover: 0 8px 32px rgba(0,0,0,0.08);
--radius: 20px;
--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background: var(--bg-color); color: var(--text-main); line-height: 1.5; padding-bottom: 2rem; -webkit-tap-highlight-color: transparent; }
header { padding: 2rem 1.5rem 1.5rem; background: var(--card-bg); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.5rem; position: sticky; top: 0; z-index: 100; }
.header-content h1 { font-size: 1.8rem; font-weight: 600; color: var(--text-main); }
.header-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; background: var(--bg-color); padding: 0.5rem; border-radius: 12px; }
.calendar-nav button { background: none; border: none; font-size: 1.2rem; font-weight: 600; padding: 0.5rem 1rem; cursor: pointer; color: var(--text-main); transition: var(--transition); border-radius: 8px; }
.calendar-nav button:hover:not(:disabled) { background: var(--primary-light); color: var(--text-main); }
.calendar-nav button:disabled { color: var(--border); cursor: not-allowed; opacity: 0.5; }
.calendar-nav h2 { font-size: 1.1rem; font-weight: 500; cursor: pointer; transition: var(--transition); border-radius: 8px; padding: 0.5rem 1rem; }
.calendar-nav h2:hover { background: var(--primary-light); }
.sex-indicator { width: 8px; height: 8px; background: #e91e63; border-radius: 50%; display: none; margin-left: 8px; animation: pulse 2s infinite; }
.sex-indicator.visible { display: inline-block; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
main { padding: 0 1.5rem; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.card { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: 1rem; font-weight: 600; font-size: 1.2rem; }
.insight-card { display: flex; flex-direction: column; gap: 1rem; border-top: 4px solid var(--unknown); transition: border-color 0.4s ease; }
.insight-header { display: flex; align-items: center; gap: 1rem; }
.insight-header h3 { margin-bottom: 0; line-height: 1.2; }
.fertility-indicator { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: var(--unknown); box-shadow: 0 0 0 4px rgba(0,0,0,0.03); transition: background-color 0.4s ease; transform: translateY(1px); }
#insightMessage { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; font-weight: 500; color: var(--text-main); }
.form-group input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; outline: none; transition: var(--transition); background: var(--bg-color); color: var(--text-main); }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); background: var(--card-bg); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option-btn { padding: 0.7rem 1rem; background: var(--bg-color); border: 1px solid var(--border); border-radius: 10px; font-size: 0.9rem; cursor: pointer; transition: var(--transition); color: var(--text-main); flex: 1 1 auto; text-align: center; font-weight: 400; }
.option-btn.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3); font-weight: 500; }
.save-btn { width: 100%; padding: 1rem; border: none; border-radius: 12px; background: var(--primary); color: white; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: var(--transition); margin-top: 0.5rem; }
.save-btn:hover { background: #c5915d; box-shadow: 0 6px 16px rgba(212, 163, 115, 0.4); transform: translateY(-2px); }
.save-btn:active { transform: translateY(0); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-bottom: 0.5rem; }
.stat-box { background: var(--bg-color); padding: 0.75rem; border-radius: 10px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid transparent; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; font-weight: 600; }
.stat-value { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: #343a40; color: white; padding: 0.8rem 1.5rem; border-radius: 30px; font-size: 0.9rem; font-weight: 500; opacity: 0; transition: var(--transition); z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.15); pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.settings-card { margin-top: 0.5rem; }
.settings-actions { display: flex; gap: 1rem; }
.faq-card { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--bg-color); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; transition: var(--transition); }
.faq-item[open] { border-color: var(--primary); box-shadow: 0 4px 12px rgba(212, 163, 115, 0.1); }
.faq-question { font-weight: 500; font-size: 1rem; color: var(--text-main); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--primary); transition: transform 0.3s ease; line-height: 0.8; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
@media (max-width: 400px) {
.stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #121212;
--card-bg: #1e1e1e;
--primary: #d4a373;
--primary-light: #2c2111;
--text-main: #e0e0e0;
--text-muted: #a0a0a0;
--border: #333333;
--fertile-high: #3a7a73;
--fertile-moderate: #b8860b;
--fertile-low: #3a6b9e;
--period: #8c4e36;
--unknown: #333333;
--shadow: 0 4px 24px rgba(0,0,0,0.2);
--shadow-hover: 0 8px 32px rgba(0,0,0,0.3);
}
}