Spaces:
Running
Running
| /* 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 ; /* prevent white when enabled */ | |
| border: 1px solid #283754; | |
| border-radius: 12px ; /* 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 ; | |
| border-color: #35527a; | |
| } | |
| /* Focus ring */ | |
| :host ::ng-deep .filters-card | |
| .mat-mdc-form-field.mat-focused .mat-mdc-text-field-wrapper { | |
| background-color: #10253f ; | |
| 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 ; | |
| border-color: #283754 ; | |
| opacity: 1; /* keep text readable */ | |
| } | |
| /* Label, value and arrow colors */ | |
| :host ::ng-deep .filters-card .mdc-floating-label { | |
| color: #a8bfd6 ; | |
| } | |
| :host ::ng-deep .filters-card .mat-mdc-select-value, | |
| :host ::ng-deep .filters-card .mat-mdc-select-value-text { | |
| color: #e6edf7 ; | |
| } | |
| :host ::ng-deep .filters-card .mat-mdc-select-arrow svg { | |
| fill: #cbd5e1 ; | |
| } | |
| :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 ; | |
| } | |
| :host ::ng-deep .filters-card | |
| .mat-mdc-form-field.mat-mdc-form-field-disabled .mat-mdc-select-arrow svg { | |
| fill: #7f93ad ; | |
| } | |
| /* Select panel (overlay) */ | |
| :host ::ng-deep .cdk-overlay-container .mat-mdc-select-panel { | |
| background: #0c1526 ; | |
| color: #e6edf7 ; | |
| 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) ; | |
| } | |
| :host ::ng-deep .cdk-overlay-container .mat-mdc-option:hover { | |
| background: rgba(96, 165, 250, 0.28) ; | |
| } | |
| /* Run button (unchanged, shown for completeness) */ | |
| .run-btn { | |
| width: 100%; | |
| height: 48px; | |
| font-weight: 700; | |
| color: #fff; | |
| 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 ; /* text color */ | |
| } | |
| :host ::ng-deep .chipbar .mat-mdc-chip .mdc-evolution-chip__text-label { | |
| color: #fff ; /* ensure label inside is white */ | |
| } | |
| :host ::ng-deep .chipbar .mat-mdc-chip .mat-icon { | |
| color: #fff ; /* 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 ; /* 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 ; | |
| 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 ; | |
| 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 ; | |
| transition: background-color 9999s ease-out; | |
| } | |