1:root {
2 --primary: #0284c7;
3 --bg: #030712;
4 --card: #111827;
5 --text: #f9fafb;
6 --text-muted: #9ca3af;
7 --border: #1f2937;
8 --danger: #ef4444;
9}
10
11body {
12 margin: 0;
13 font-family: system-ui, -apple-system, sans-serif;
14 background: var(--bg);
15 color: var(--text);
16 min-height: 100vh;
17 display: flex;
18 align-items: center;
19 justify-content: center;
20 padding: 1rem;
21}
22
23.weather-card {
24 background: var(--card);
25 border: 1px solid var(--border);
26 border-radius: 1.25rem;
27 max-width: 480px;
28 width: 100%;
29 padding: 2rem;
30 box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
31}
32
33.search-form {
34 display: flex;
35 gap: 0.5rem;
36 margin: 1.5rem 0;
37}
38
39.search-form input {
40 flex: 1;
41 padding: 0.75rem 1rem;
42 border-radius: 0.5rem;
43 border: 1px solid var(--border);
44 background: #1f2937;
45 color: var(--text);
46 font-size: 1rem;
47}
48
49.search-form button {
50 background: var(--primary);
51 color: white;
52 border: none;
53 padding: 0.75rem 1.25rem;
54 border-radius: 0.5rem;
55 font-weight: 600;
56 cursor: pointer;
57}
58
59.location-row {
60 display: flex;
61 justify-content: space-between;
62 align-items: center;
63}
64
65.badge {
66 background: rgba(2, 132, 199, 0.2);
67 color: #38bdf8;
68 padding: 0.25rem 0.75rem;
69 border-radius: 9999px;
70 font-size: 0.85rem;
71}
72
73.temp-val {
74 font-size: 4rem;
75 font-weight: 800;
76 margin: 1rem 0;
77 color: #38bdf8;
78}
79
80.metrics-grid {
81 display: grid;
82 grid-template-columns: 1fr 1fr;
83 gap: 1rem;
84 margin-top: 1.5rem;
85 padding-top: 1.5rem;
86 border-top: 1px solid var(--border);
87}
88
89.metric {
90 background: #1f2937;
91 padding: 1rem;
92 border-radius: 0.5rem;
93 display: flex;
94 flex-direction: column;
95 gap: 0.25rem;
96}
97
98.metric .label { font-size: 0.8rem; color: var(--text-muted); }
99.metric .val { font-size: 1.2rem; font-weight: 600; }
100
101.error-box {
102 background: rgba(239, 68, 68, 0.15);
103 color: var(--danger);
104 padding: 1rem;
105 border-radius: 0.5rem;
106 margin: 1rem 0;
107}
108
109.loader {
110 display: flex;
111 flex-direction: column;
112 align-items: center;
113 padding: 2rem 0;
114 color: var(--text-muted);
115}
116
117.spinner {
118 width: 40px;
119 height: 40px;
120 border: 4px solid var(--border);
121 border-top-color: var(--primary);
122 border-radius: 50%;
123 animation: spin 0.8s linear infinite;
124 margin-bottom: 0.75rem;
125}
126
127@keyframes spin { to { transform: rotate(360deg); } }
128.hidden { display: none !important; }