-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
165 lines (145 loc) · 3.13 KB
/
Copy pathstyle.css
File metadata and controls
165 lines (145 loc) · 3.13 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
163
164
165
/* CSS Reset & Variables */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
:root {
--primary-color: #4f46e5;
--primary-hover: #4338ca;
--bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--card-bg: #ffffff;
--text-main: #1f2937;
--text-muted: #6b7280;
--border-color: #e5e7eb;
--input-bg: #f9fafb;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-gradient);
padding: 1.25rem;
}
/* Card Container */
.converter-card {
background: var(--card-bg);
width: 100%;
max-width: 480px;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.converter-header {
text-align: center;
margin-bottom: 1.5rem;
}
.converter-header h1 {
font-size: 1.5rem;
color: var(--text-main);
margin-bottom: 0.25rem;
}
.converter-header p {
font-size: 0.875rem;
color: var(--text-muted);
}
/* Input Fields & Groups */
.input-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1.25rem;
}
label {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-main);
}
input[type="number"], select {
width: 100%;
padding: 0.75rem 1rem;
font-size: 1rem;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
background-color: var(--input-bg);
color: var(--text-main);
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="number"]:focus, select:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
/* Currency Row Grid Layout */
.currency-row {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: 0.5rem;
align-items: end;
margin-bottom: 1.5rem;
}
.swap-btn {
background: var(--input-bg);
border: 1px solid var(--border-color);
width: 42px;
height: 42px;
border-radius: 50%;
cursor: pointer;
font-size: 1.25rem;
color: var(--text-main);
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s, transform 0.2s;
margin-bottom: 2px;
}
.swap-btn:hover {
background-color: #f3f4f6;
transform: rotate(180deg);
}
/* Result Section */
.result-container {
background-color: #f8fafc;
border-left: 4px solid var(--primary-color);
padding: 1rem;
border-radius: 0.375rem;
margin-bottom: 1.5rem;
}
.rate-info {
display: block;
font-size: 0.875rem;
color: var(--text-muted);
margin-bottom: 0.25rem;
}
.converted-amount {
font-size: 1.5rem;
color: var(--text-main);
}
/* Submit Button */
.convert-btn {
width: 100%;
padding: 0.875rem;
background-color: var(--primary-color);
color: #ffffff;
border: none;
border-radius: 0.5rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
.convert-btn:hover {
background-color: var(--primary-hover);
}
/* Responsive adjust for narrow screens */
@media (max-width: 400px) {
.currency-row {
grid-template-columns: 1fr;
}
.swap-btn {
justify-self: center;
margin: 0.5rem 0;
}
}