.search-container {
    display: flex;
}

.search-bar-container {
    width: 100%;
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    border: solid 1px #d4d4d8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-bar-container input {
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

/* Remove iOS Safari blue focus ring on search inputs */
.search-bar-container input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

.search-bar-container input[type="search"]::-webkit-search-decoration,
.search-bar-container input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-bar-container input:focus,
.search-bar-container input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background-color: inherit !important;
}

#microphone-button {
    border-radius: 0px;
    border-left: solid 1px #00000020;
}

#microphone-button:hover {
    background-color: #00000015;
}

.microphone-button-active {
    animation: micPulse 2s infinite;
}

.microphone-button-active img {
    filter: invert(1) brightness(100%);
}

@keyframes micPulse {
  0% { background-color: #22c55e; }
  50% { background-color: #4ade80; }
  100% { background-color: #22c55e; }
}

@media (prefers-color-scheme: dark) {
    .search-bar-container, .search-bar-container input {
        background-color: #3f3f46;
    }

    .search-bar-container {
        border-color: #71717a;
    }

    #microphone-button {
        border-left: solid 1px #52525b;
    }

    .search-bar-container input {
        color: #ffffff !important;
        caret-color: #ffffff !important;
    }

    .search-bar-container input::placeholder {
        color: #d4d4d8;
    }

    #microphone-button img {
        filter: invert(1) brightness(70%);
    }

    @keyframes micPulse {
        0% { background-color: #166534; }
        50% { background-color: #16a34a; }
        100% { background-color: #166534; }
    }

    .microphone-button-active img {
        filter: invert(1) brightness(100%)!important;
    }
}

#search-button {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-left: 12px;
    display: none;
}

@media (min-width: 768px) {
    #search-button {
        display: block;
    }
}

.ask-example-questions {
    margin-top: 64px;
}

.ask-example-questions ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    text-align: center;
}

.ask-example-questions ul li {
    text-align: center;
    padding: 4px 0 4px 0;
    color: #00000090;
}


.ask-results-header {
    text-align: center;
    margin-bottom: 24px;
}

.ask-results-header h3.title {
    margin: 0;
    padding: 0;
    font-weight: 400;
    font-size: 1.6rem;
}

.ask-results-header p.subtitle {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.loading-panel {
    min-height: 50vh;
}

.loading-panel h3 {
    text-align: center;
    padding: 20px 0 20px 0;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    animation: pulseColor 2s infinite;
}

@keyframes pulseColor {
  0% { color: #00000090; }
  50% { color: #000000ff; }
  100% { color: #00000090; }
}

@media (prefers-color-scheme: dark) {
    @keyframes pulseColor {
        0% { color: #ffffff90; }
        50% { color: #ffffffff; }
        100% { color: #ffffff90; }
    }
}

.error-panel h3 {
    margin: 12px 0;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #991b1b;
    text-align: center;
}

.error-panel p {
    margin: 8px 0;
    padding: 0;
    color: #991b1b;
    font-size: 0.8rem;
    text-align: center;
}

.code-panel pre {
    width: 100%;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (prefers-color-scheme: dark) {
    .ask-example-questions ul li {
        color: #ffffff90;
    }

    .error-panel h3 {
        color: #fca5a5;
    }

    .error-panel p {
        color: #fca5a5;
    }
}