/* Container */
#sldict-container {
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Grid layout */
.sldict-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
}

/* Panels */
.sldict-left,
.sldict-right {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #0001;
}

/* Inputs & selects */
.sldict-left .sldict-input {
    width: 100% !important;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Dropdown appearance fix */
.sldict-left select.sldict-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Available signs list */
#sldict-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 6px;
    background: #fafafa;
}

/* Individual sign item */
.sldict-item {
    padding: 10px;
    background: #f7f7f7;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: background 0.2s, transform 0.1s;
}

.sldict-item:hover {
    background: #e7e7e7;
    transform: translateX(2px);
}

/* Category label in item */
.sldict-cat {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

/* Viewer panel */
#sldict-viewer video,
#sldict-viewer iframe {
    border-radius: 8px;
    margin: 10px 0;
    width: 100%;
    height: 330px;
}

/* Responsive */
@media(max-width:800px){
    .sldict-grid {
        grid-template-columns: 1fr;
    }
}
