Repository navigation
Expand file tree
/
Copy pathstylesheet.css
More file actions
162 lines (141 loc) · 3.14 KB
/
Copy pathstylesheet.css
File metadata and controls
162 lines (141 loc) · 3.14 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* Universal Box Sizing */
* { box-sizing: border-box; }
/* Page Background & Font */
body {
font-family: Arial, sans-serif;
background: #f4f6f8;
margin: 0;
padding: 24px;
}
/* The Card Container */
.card-form {
max-width: 460px;
margin: 0 auto;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 20px;
display: flex;
flex-direction: column;
gap: 14px;
}
/* Input Group Spacing */
.field {
display: flex;
flex-direction: column;
gap: 6px;
}
label {
font-size: 14px;
font-weight: 600;
}
/* Input Fields */
input, select, textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid #cbd5e1;
border-radius: 8px;
font-size: 14px;
}
/* Accessibility: Focus States */
input:focus, select:focus, textarea:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
/* Primary Button */
button[type="submit"] {
border: none;
border-radius: 8px;
padding: 11px 14px;
background: #2563eb;
color: #fff;
font-weight: 700;
cursor: pointer;
}
/* Interaction: Hover State */
button[type="submit"]:hover {
background: #1d4ed8;
}
.success-container {
text-align: center;
padding: 10px 0;
animation: fadeIn 0.5s ease-in;
}
.success-container h2 {
color: #2563eb; /* Matches your primary button color */
margin-bottom: 8px;
}
.success-container p {
color: #475569; /* A soft dark gray for readability */
line-height: 1.5;
font-size: 15px;
}
/* Subtle fade-in animation */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Theme Toggle Button Style */
.theme-btn {
background: #e5e7eb;
color: #374151;
border: none;
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 12px;
align-self: flex-end; /* Puts it in the top right of your card */
transition: background 0.3s;
}
/* Dark Mode Variables */
body.dark-mode {
background: #111827; /* Dark background */
}
body.dark-mode .card-form {
background: #1f2937; /* Darker card */
border-color: #374151;
color: #f9fafb;
}
body.dark-mode input,
body.dark-mode select {
background: #374151;
border-color: #4b5563;
color: #fff;
}
body.dark-mode label {
color: #d1d5db;
}
body.dark-mode .theme-btn {
background: #374151;
color: #f9fafb;
}
/* When the body has the .dark-mode class, change these specific elements */
body.dark-mode {
background-color: #111827;
color: #f9fafb;
}
body.dark-mode .card-form {
background-color: #1f2937;
border-color: #374151;
}
body.dark-mode label {
color: #d1d5db;
}
body.dark-mode input,
body.dark-mode select {
background-color: #374151;
border-color: #4b5563;
color: #ffffff;
}
.description-box {
font-size: 13px;
color: #64748b;
background: #f8fafc;
padding: 10px;
border-radius: 6px;
border-left: 4px solid #2563eb; /* Uses your primary blue */
margin-top: 8px;
display: none; /* Hidden by default until a choice is made */
line-height: 1.4;
}