/* --- DVC Lookup Tool Style (v10.0.0) --- */

/* Main Container */
#dvc-lookup-container {
    max-width: 960px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    border: 1px solid #e0e6f0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

/* Title */
#dvc-lookup-container .dvc-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

/* Search Bar */
.dvc-search-bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

/* Input Wrapper for Voice Button */
.dvc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dvc-input {
    width: 100%;
    padding: 12px 40px 12px 15px; /* Thêm khoảng trống bên phải cho nút micro */
    font-size: 16px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}
.dvc-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}

/* Voice Search Button */
.dvc-voice-button {
    position: absolute;
    right: 10px;
    height: 30px;
    width: 30px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #50575e;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}
.dvc-voice-button:hover {
    opacity: 1;
}
.dvc-voice-button.is-listening {
    color: #d63638;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


.dvc-select, .dvc-button {
    padding: 5px 15px;
    font-size: 16px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}
.dvc-button {
    background-color: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}
.dvc-button:hover {
    background-color: #005a87;
}

/* Results Area */
#dvc-results-wrapper { display: none; }
.dvc-filter-bar { margin-bottom: 15px; position: relative; }
#dvc-filter-input { width: 100%; padding: 10px 10px 10px 35px; font-size: 15px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238c8f94" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>'); background-repeat: no-repeat; background-position: 10px center; }
#dvc-results-container { border: 1px solid #e0e6f0; border-radius: 6px; min-height: 50px; max-height: var(--dvc-max-height, 500px); overflow-y: auto; background-color: #fff; }
#dvc-results-container p { padding: 15px; color: #50575e; }
#dvc-results-container table { width: 100%; border-collapse: collapse; }
#dvc-results-container th, #dvc-results-container td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e0e6f0; }
#dvc-results-container td { color: #3c434a; }
#dvc-results-container th { background-color: #f5f7fa; font-weight: 600; color: #50575e; position: sticky; top: 0; z-index: 1; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
#dvc-results-container tr:last-child td { border-bottom: none; }
#dvc-results-container tr:hover td { background-color: #f0f6fc; }

/* Responsive cho Mobile */
@media (max-width: 600px) {
    .dvc-search-bar { grid-template-columns: 1fr; }
    #dvc-lookup-container { padding: 15px; }
    #dvc-lookup-container .dvc-title { font-size: 20px; }
    #dvc-results-container { max-height: var(--dvc-max-height-mobile, 350px); }
}
