@import "search.css";

html, body {
    height: 100%;
    margin: 0;
    background-color: #AFE0CE;
}

.v-loading-indicator {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: auto;
    animation: fadein 0.3s ease-out 0.2s normal 1 both;
    z-index: 2147483647;
}

@keyframes fadein {
    0% { background: rgba(0,0,0,0); }
    100% { background: rgba(0,0,0,0.5); } /* Darkens the UI */
}

.v-loading-indicator:before {
    content: "";
    width: 76px; height: 76px;
    position: absolute;
    top: 50%; left: 50%;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    animation: bouncedelay 1.2s infinite ease-in-out;
    background-color: skyblue;
}

@keyframes bouncedelay {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.glass-card {
    border-radius: 16px;
    background: #EBF8FF; /* semi-transparent */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(14, 151, 242, 0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: var(--lumo-space-m);
}

/*.glass-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}*/

h2, h3 {
    margin-top: var(--lumo-space-m);
    margin-bottom: var(--lumo-space-s);
    color: var(--lumo-header-text-color);
}

.results-grid {
    border: 1px solid var(--lumo-contrast-10pct);
    border-radius: var(--lumo-border-radius-m);
    overflow: hidden;
}

vaadin-button {
    color: black;
}

vaadin-combo-box,
vaadin-select {
    --lumo-body-text-color: black;
    color: black;
}

vaadin-combo-box::part(input-field)::placeholder {
    color: black;   /* darker gray */
    opacity: 1;    /* ensure it’s not faded */
}

.search-button {
    background-color: #4ac600;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    padding: 0.5em 1.5em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.search-button:hover {
    background-color: #024e1f;
    color: white;
}