File size: 6,232 Bytes
9d4cd83
 
 
 
 
 
 
 
 
df4a76e
 
9d4cd83
 
 
 
 
 
 
 
 
 
 
 
df4a76e
9d4cd83
df4a76e
 
 
 
9d4cd83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eb50c6c
9d4cd83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
/* Page background */
.tools-page {
  height: 100vh;
  display: flex;
  flex-direction:column;
  justify-content:center;
  gap:2vw;
  place-items: center; 
  color: #e6edf7;  
  background: url('../../../public/globe.png') no-repeat;
 /* background-size: cover;*/
}

.filters-content {
  display: flex;
  gap: 2vw;
  margin-top: 5vw;
}

/* Card */
.filters-card {
  width: 30vw;
  padding: 1vw;
  background: rgba(10, 12, 16, 0.92);
  border-radius: 1vw;
  box-shadow: 0 12px 12px -6px rgba(255,255,255,0.6), /* bottom */
  0 -12px 12px -6px rgba(255,255,255,0.6), /* top */
  12px 0 12px -6px rgba(255,255,255,0.6), /* right */
  -12px 0 12px -6px rgba(255,255,255,0.6); /* left */
}


.title {
  text-align: center; 
  color: #38bdf8;
  font-size:1.5vw;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1vw;
}

/* β€”β€”β€”β€”β€” Angular Material (MDC) field styling β€”β€”β€”β€”β€” */

/* Base look for all filled fields (enabled state) */
:host ::ng-deep .filters-card
.mat-mdc-form-field-appearance-fill .mat-mdc-text-field-wrapper,
:host ::ng-deep .filters-card
.mat-mdc-form-field .mdc-text-field--filled {
  background-color: #2a3a52 !important; /* prevent white when enabled */
  border: 1px solid #283754;
  border-radius: 12px !important; /* equal radius */
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Remove Material underline for filled variant */
:host ::ng-deep .filters-card .mdc-line-ripple {
  display: none;
}

/* Hover (only when not disabled) */
:host ::ng-deep .filters-card
.mat-mdc-form-field:not(.mat-mdc-form-field-disabled):hover
.mat-mdc-text-field-wrapper {
  background-color: #12243a !important;
  border-color: #35527a;
}

/* Focus ring */
:host ::ng-deep .filters-card
.mat-mdc-form-field.mat-focused .mat-mdc-text-field-wrapper {
  background-color: #10253f !important;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

/* Disabled state: darker but readable, same radius */
:host ::ng-deep .filters-card
.mat-mdc-form-field.mat-mdc-form-field-disabled .mat-mdc-text-field-wrapper {
  background-color: #111a2a !important;
  border-color: #283754 !important;
  opacity: 1; /* keep text readable */
}

/* Label, value and arrow colors */
:host ::ng-deep .filters-card .mdc-floating-label {
  color: #a8bfd6 !important;
}

:host ::ng-deep .filters-card .mat-mdc-select-value,
:host ::ng-deep .filters-card .mat-mdc-select-value-text {
  color: #e6edf7 !important;
}

:host ::ng-deep .filters-card .mat-mdc-select-arrow svg {
  fill: #cbd5e1 !important;
}

:host ::ng-deep .filters-card
.mat-mdc-form-field.mat-mdc-form-field-disabled .mdc-floating-label,
:host ::ng-deep .filters-card
.mat-mdc-form-field.mat-mdc-form-field-disabled .mat-mdc-select-value,
:host ::ng-deep .filters-card
.mat-mdc-form-field.mat-mdc-form-field-disabled .mat-mdc-select-value-text {
  color: #7f93ad !important;
}

:host ::ng-deep .filters-card
.mat-mdc-form-field.mat-mdc-form-field-disabled .mat-mdc-select-arrow svg {
  fill: #7f93ad !important;
}

/* Select panel (overlay) */
:host ::ng-deep .cdk-overlay-container .mat-mdc-select-panel {
  background: #0c1526 !important;
  color: #e6edf7 !important;
  border: 1px solid #283754;
  border-radius: 12px;
}

:host ::ng-deep .cdk-overlay-container .mat-mdc-option.mdc-list-item--selected {
  background: rgba(96, 165, 250, 0.18) !important;
}

:host ::ng-deep .cdk-overlay-container .mat-mdc-option:hover {
  background: rgba(96, 165, 250, 0.28) !important;
}

/* Run button (unchanged, shown for completeness) */
.run-btn {
  width: 100%;
  height: 48px;
  font-weight: 700;
  color: #fff!important;
  border-radius: 12px;
  background: linear-gradient(90deg, #7c3aed, #22c55e);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}

.run-btn[disabled] {
  opacity: 0.6;
  box-shadow: none;
}

/* Loading overlay */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2vw;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
}

.hint {
  color: #e5e7eb;
  font-size: 1.5vw;
  opacity: .9;
}

.ticker-search {
  margin-bottom: 6px;
}

.search-result {
  margin-top: -4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #0f1b2d;
  border: 1px solid #283754;
  border-radius: 10px;
}

.sr-symbol {
  font-weight: 700;
}

.sr-name {
  opacity: 0.85;
  font-size: 13px;
}

.ticker-search {
  margin-bottom: 6px;
}

.chipbar {
  margin-top: -4px;
  display: block;
}

:host ::ng-deep .chipbar .mat-mdc-chip {
  background: #0f1b2d;
  border: 1px solid #283754;
  color: #e6edf7;
}
/* Make chip text and close icon white */
:host ::ng-deep .chipbar .mat-mdc-chip {
  color: #fff !important; /* text color */
}

:host ::ng-deep .chipbar .mat-mdc-chip .mdc-evolution-chip__text-label {
  color: #fff !important; /* ensure label inside is white */
}

:host ::ng-deep .chipbar .mat-mdc-chip .mat-icon {
  color: #fff !important; /* close icon color */
  opacity: 0.95;
}

/* Optional: nicer hover focus */
:host ::ng-deep .chipbar .mat-mdc-chip:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

/* 1) Regular inputs inside your form field */
:host ::ng-deep .filters-card .mat-mdc-input-element,
:host ::ng-deep .filters-card .mdc-text-field__input {
  color: #fff !important; /* typed text */
  caret-color: #fff; /* cursor */
}



/* 2) Search input inside the mat-select overlay panel */
:host ::ng-deep .cdk-overlay-container .mat-mdc-select-panel input.mat-mdc-input-element,
:host ::ng-deep .cdk-overlay-container .mat-mdc-select-panel .mdc-text-field__input {
  color: #fff !important;
  caret-color: #fff;
}

:host ::ng-deep .cdk-overlay-container .mat-mdc-select-panel input.mat-mdc-input-element::placeholder,
:host ::ng-deep .cdk-overlay-container .mat-mdc-select-panel .mdc-text-field__input::placeholder {
  color: #cbd5e1 !important;
  opacity: 1;
}

/* (Optional) Handle Chrome autofill turning text dark */
:host ::ng-deep .filters-card input.mat-mdc-input-element:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  transition: background-color 9999s ease-out;
}