/* Asset Field - Design System Style */
.asset-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.asset-field__label {
    font-size: 11px;
    color: #999;
}

/* Main content container */
.asset-field__content {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

/* Thumbnail Preview */
.asset-field__thumbnail {
    width: 44px;
    height: 44px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.asset-field__thumbnail:hover {
    border-color: #4a4a4a;
}

.asset-field__thumbnail.dragging {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.asset-field__thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.asset-field__thumbnail-icon {
    color: #555;
}

/* Right side container */
.asset-field__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Dropdown selector */
.asset-field__dropdown {
    display: flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.15s ease;
    min-width: 0;
}

.asset-field__dropdown:hover {
    border-color: #4a4a4a;
}

.asset-field__dropdown.dragging {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.asset-field__value {
    flex: 1;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

.asset-field__dropdown.has-value .asset-field__value {
    color: #ddd;
    font-style: normal;
}

.asset-field__dropdown-arrow {
    color: #666;
    flex-shrink: 0;
    margin-left: 4px;
}

/* Action buttons row */
.asset-field__actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.asset-field__btn {
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: #888;
    cursor: pointer;
    transition: all 0.15s ease;
}

.asset-field__btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #ccc;
}

.asset-field__btn--clear:hover {
    background: #4a2020;
    border-color: #5a3030;
    color: #f87171;
}

/* Disabled state */
.asset-field[disabled] {
    opacity: 0.6;
    pointer-events: none;
}
