/* CSS cho container và input */
.vnistock-container {
    max-width: 600px;
    margin: 20px auto;
}
.vnistock-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.vnistock-output {
    margin-top: 20px;
}

/* CSS cho thông báo */
.loading, .error {
    text-align: center;
    padding: 10px;
}
.loading {
    color: #0073aa;
}
.error {
    color: #dc3232;
}

/* CSS cho overlay phóng to ảnh */
.vnistock-image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vnistock-image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
    margin: auto;
    cursor: pointer;
}
.vnistock-image-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* CSS cho ảnh có thể nhấp */
#chat-output img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
}

.stock-suggestions {
    border: 1px solid #ccc;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    z-index: 9999;
    position: absolute;
    width: calc(100% - 22px);
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.stock-suggestions li {
    padding: 8px 12px;
    cursor: pointer;
}

.stock-suggestions li:hover {
    background-color: #f0f0f0;
}